Use cryptography instead of pycryptodome (#246)
* Use cryptography instad of pycryptodome * Use cryptography instad of pycryptodome
This commit is contained in:
parent
45e26fda23
commit
38a40c5a19
3 changed files with 49 additions and 39 deletions
9
setup.py
9
setup.py
|
|
@ -2,15 +2,16 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import re
|
||||
from setuptools import setup, find_packages
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
try:
|
||||
import pyaes
|
||||
import cryptography
|
||||
dynamic_requires = ['cryptography>=2.1.1']
|
||||
except ImportError:
|
||||
dynamic_requires = ["pyaes==1.6.0"]
|
||||
except ImportError as e:
|
||||
dynamic_requires = ['pycryptodome==3.6.6']
|
||||
|
||||
# For Hysen thermostatic heating controller
|
||||
dynamic_requires.append('PyCRC')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue