upgrade min deps (#4934)
* upgrade min deps * unused * replace torchvision and torchtext * loggers * freeze pip Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com> Co-authored-by: Jirka Borovec <jirka.borovec@seznam.cz> Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
This commit is contained in:
parent
1176df70e6
commit
563f9214fa
|
@ -36,7 +36,8 @@ jobs:
|
|||
|
||||
- name: Update Pip
|
||||
run: |
|
||||
pip install --quiet "pip>=20.1" --upgrade --user # needed for get pip cacher folder
|
||||
# todo: unfreeze PIP after resolving minimal dependencies
|
||||
pip install --quiet "pip==20.1" --upgrade --user # needed for get pip cacher folder
|
||||
|
||||
# Github Actions: Run step on specific OS: https://stackoverflow.com/a/57948488/4521646
|
||||
- name: Setup macOS
|
||||
|
@ -56,12 +57,15 @@ jobs:
|
|||
if: runner.os == 'macOS' && matrix.requires == 'minimal'
|
||||
run : |
|
||||
python -c "fname = 'requirements.txt' ; req = open(fname).read().replace('torch>=1.3', 'torch>=1.4') ; open(fname, 'w').write(req)"
|
||||
python -c "fname = 'requirements/examples.txt' ; req = open(fname).read().replace('torchvision>=0.4.1', 'torchvision>=0.5.0') ; open(fname, 'w').write(req)"
|
||||
python -c "fname = 'requirements/extra.txt' ; req = open(fname).read().replace('torchtext>=0.3.1', 'torchtext>=0.5.0') ; open(fname, 'w').write(req)"
|
||||
|
||||
- name: Set min. dependencies
|
||||
if: matrix.requires == 'minimal'
|
||||
run: |
|
||||
python -c "fname = 'requirements.txt' ; req = open(fname).read().replace('>=', '==') ; open(fname, 'w').write(req)"
|
||||
python -c "fname = 'requirements/extra.txt' ; req = open(fname).read().replace('>=', '==') ; open(fname, 'w').write(req)"
|
||||
python -c "fname = 'requirements/loggers.txt' ; req = open(fname).read().replace('>=', '==') ; open(fname, 'w').write(req)"
|
||||
python -c "fname = 'requirements/test.txt' ; req = open(fname).read().replace('>=', '==') ; open(fname, 'w').write(req)"
|
||||
python -c "fname = 'requirements/examples.txt' ; req = open(fname).read().replace('>=', '==') ; open(fname, 'w').write(req)"
|
||||
# remove Fairscale from requirements
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# the default package dependencies
|
||||
|
||||
numpy>=1.16.4
|
||||
numpy>=1.16.6
|
||||
torch>=1.3
|
||||
future>=0.17.1 # required for builtins in setup.py
|
||||
# pyyaml>=3.13
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
matplotlib>=3.1.1
|
||||
horovod>=0.20.2 # no need to install with [pytorch] as pytorch is already installed
|
||||
omegaconf>=2.0.0
|
||||
omegaconf>=2.0.1
|
||||
# scipy>=0.13.3
|
||||
scikit-learn>=0.22.2
|
||||
torchtext>=0.3.1, <0.7 # TODO: temporary fix fix for compatibility
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
coverage>=5.0
|
||||
codecov>=2.1
|
||||
pytest>=5.0
|
||||
pytest-cov
|
||||
pytest-flake8
|
||||
# pytest-cov
|
||||
# pytest-flake8
|
||||
flake8>=3.6
|
||||
flake8-black
|
||||
check-manifest
|
||||
|
@ -12,5 +12,5 @@ black>=20.8b1
|
|||
isort>=5.6.4
|
||||
pre-commit>=1.0
|
||||
|
||||
cloudpickle>=1.2
|
||||
cloudpickle>=1.3
|
||||
nltk>=3.3
|
||||
|
|
Loading…
Reference in New Issue