Use cryptography instead of pycryptodome (#246)

* Use cryptography instad of pycryptodome

* Use cryptography instad of pycryptodome
This commit is contained in:
Daniel Høyer Iversen 2019-05-27 20:57:32 +02:00 committed by GitHub
parent 45e26fda23
commit 38a40c5a19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 39 deletions

View file

@ -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')