Skip to content

Commit

Permalink
Add 'cryptography' requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
ValueRaider committed Dec 18, 2022
1 parent b47adf0 commit f24dab2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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`)

Expand Down
2 changes: 2 additions & 0 deletions meta.yaml
Expand Up @@ -22,6 +22,7 @@ requirements:
- multitasking >=0.0.7
- lxml >=4.9.1
- appdirs >= 1.4.4
- cryptography >= 3.3.2
- pip
- python

Expand All @@ -32,6 +33,7 @@ requirements:
- multitasking >=0.0.7
- lxml >=4.9.1
- appdirs >= 1.4.4
- cryptography >= 3.3.2
- python

test:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Expand Up @@ -4,3 +4,4 @@ requests>=2.26
multitasking>=0.0.7
lxml>=4.9.1
appdirs>=1.4.4
cryptography>=3.3.2
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions yfinance/utils.py
Expand Up @@ -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:
Expand Down

0 comments on commit f24dab2

Please sign in to comment.