diff --git a/README.md b/README.md index 7cf46b80b..2ab5363e0 100644 --- a/README.md +++ b/README.md @@ -279,6 +279,7 @@ To install `yfinance` using `conda`, see - [requests](http://docs.python-requests.org/en/master/) \>= 2.26 - [lxml](https://pypi.org/project/lxml/) \>= 4.9.1 - [appdirs](https://pypi.org/project/appdirs) \>= 1.4.4 +- [cryptography](https://pypi.org/project/cryptography) \>=3.3.2 ### Optional (if you want to use `pandas_datareader`) diff --git a/meta.yaml b/meta.yaml index 42bed9631..cd8a3b90f 100644 --- a/meta.yaml +++ b/meta.yaml @@ -22,6 +22,7 @@ requirements: - multitasking >=0.0.7 - lxml >=4.9.1 - appdirs >= 1.4.4 + - cryptography >= 3.3.2 - pip - python @@ -32,6 +33,7 @@ requirements: - multitasking >=0.0.7 - lxml >=4.9.1 - appdirs >= 1.4.4 + - cryptography >= 3.3.2 - python test: diff --git a/requirements.txt b/requirements.txt index acea07261..ee5730119 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ requests>=2.26 multitasking>=0.0.7 lxml>=4.9.1 appdirs>=1.4.4 +cryptography>=3.3.2 diff --git a/setup.py b/setup.py index f711684f0..9799ac17d 100644 --- a/setup.py +++ b/setup.py @@ -63,7 +63,8 @@ packages=find_packages(exclude=['contrib', 'docs', 'tests', 'examples']), install_requires=['pandas>=1.3.0', 'numpy>=1.16.5', 'requests>=2.26', 'multitasking>=0.0.7', - 'lxml>=4.9.1', 'appdirs>=1.4.4'], + 'lxml>=4.9.1', 'appdirs>=1.4.4' + 'cryptography>=3.3.2'], entry_points={ 'console_scripts': [ 'sample=sample:main', diff --git a/yfinance/utils.py b/yfinance/utils.py index b7a5e630f..7883b5524 100644 --- a/yfinance/utils.py +++ b/yfinance/utils.py @@ -36,6 +36,7 @@ usePycryptodome = False # slightly faster # usePycryptodome = True if usePycryptodome: + # NOTE: if decide to use 'pycryptodome', set min version to 3.6.6 from Crypto.Cipher import AES from Crypto.Util.Padding import unpad else: