Skip to content

Commit 30e062a

Browse files
awaelchlipre-commit-ci[bot]carmoccaakihironitta
authored andcommitted
Freeze requirements for CI (#14007)
* free requirements * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * typo * typo * ui * mypy * todo * mypy Co-authored-by: Carlos Mocholí <[email protected]> * mypy Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Carlos Mocholí <[email protected]> Co-authored-by: Akihiro Nitta <[email protected]>
1 parent 91131e0 commit 30e062a

File tree

8 files changed

+40
-49
lines changed

8 files changed

+40
-49
lines changed

.github/workflows/code-checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
run: |
3535
pip install torch==1.11 --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
3636
python ./requirements/pytorch/adjust-versions.py requirements/pytorch/extra.txt
37+
# todo: adjust requirements for both code-bases
3738
pip install -r requirements/pytorch/devel.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
3839
pip list
3940

requirements/app/base.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
py
2-
jinja2==3.0.3
31
lightning-cloud==0.5.0
42
packaging
5-
deepdiff >= 5.7.0
3+
deepdiff>=5.7.0, <=5.8.1
64
starsessions
7-
fsspec==2022.01.0
8-
s3fs==2022.1.0
5+
fsspec>=2022.01.0, <=2022.7.1
6+
s3fs>=2022.1.0, <=2022.7.1
97
croniter # for now until we found something more robust.
108
traitlets < 5.2.0 # Traitlets 5.2.X fails: https://github.com/ipython/traitlets/issues/741

requirements/app/cloud.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
starsessions
22
redis==4.1.0
33
docker==5.0.3
4-
setuptools==59.5.0
5-
s3fs==2022.1.0
4+
# setuptools==59.5.0

requirements/app/docs.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
sphinx>=4.0,<5.0
2-
myst-parser>=0.15
3-
nbsphinx>=0.8.5
2+
myst-parser>=0.15,<0.17
3+
nbsphinx>=0.8.5, <=0.8.9
44
ipython[notebook]
55
ipython_genutils
6-
pandoc>=1.0
7-
docutils>=0.16
8-
sphinxcontrib-fulltoc>=1.0
6+
pandoc>=1.0, <=2.2
7+
docutils>=0.16, <0.19
8+
sphinxcontrib-fulltoc>=1.0, <=1.2.0
99
sphinxcontrib-mockautodoc
1010

1111
https://storage.googleapis.com/grid-packages/lightning-ai-sphinx-theme/build-31-rc1.zip
1212
sphinx-autodoc-typehints>=1.0,<1.15 # v1.15 failing on master (#11405)
13-
sphinx-paramlinks>=0.5.1
14-
sphinx-togglebutton>=0.2
15-
sphinx-copybutton>=0.3
13+
sphinx-paramlinks>=0.5.1, <=0.5.4
14+
sphinx-togglebutton>=0.2, <=0.3.2
15+
sphinx-copybutton>=0.3, <=0.5.0
1616
sphinx-autobuild
17-
typing-extensions # already in `requirements.txt` but the docs CI job does not install it
1817
jinja2>=3.0.0,<3.1.0

requirements/app/test.txt

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
coverage>=5.0
2-
codecov>=2.1
3-
pytest>=5.0
4-
pytest-timeout
5-
pytest-cov
1+
coverage>=6.4, <=6.4.2
2+
codecov>=2.1, <=2.1.12
3+
pytest>=7.0, <=7.1.2
4+
pytest-timeout <=2.1.0
5+
pytest-cov <=3.0.0
66
playwright==1.22.0
77
# pytest-flake8
8-
flake8>=3.0
9-
check-manifest
10-
twine>=3.2
11-
isort>=5.0
12-
mypy>=0.720
138
httpx
149
trio

requirements/app/ui.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
streamlit>=1.3.1
1+
streamlit>=1.3.1, <=1.11.1

requirements/pytorch/docs.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
sphinx>=4.0,<5.0
22
myst-parser>=0.15,<0.17
3-
nbsphinx>=0.8.5
3+
nbsphinx>=0.8.5, <=0.8.9
44
ipython[notebook]
5-
pandoc>=1.0
6-
docutils>=0.16
7-
sphinxcontrib-fulltoc>=1.0
5+
pandoc>=1.0, <=2.2
6+
docutils>=0.16, <0.19
7+
sphinxcontrib-fulltoc>=1.0, <=1.2.0
88
sphinxcontrib-mockautodoc
99
pt-lightning-sphinx-theme @ https://github.com/Lightning-AI/lightning_sphinx_theme/archive/master.zip
10-
sphinx-autodoc-typehints>=1.11,<1.15 # v1.15 failing on master (#11405)
11-
sphinx-paramlinks>=0.5.1
12-
sphinx-togglebutton>=0.2
13-
sphinx-copybutton>=0.3
10+
sphinx-autodoc-typehints>=1.11,<1.15 # strict; v1.15 failing on master (#11405)
11+
sphinx-paramlinks>=0.5.1, <=0.5.4
12+
sphinx-togglebutton>=0.2, <=0.3.2
13+
sphinx-copybutton>=0.3, <=0.5.0
1414
typing-extensions # already in `requirements.txt` but the docs CI job does not install it
1515
jinja2>=3.0.0,<3.1.0
1616

requirements/pytorch/test.txt

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
coverage>=6.4
2-
codecov>=2.1
3-
pytest>=7.0
4-
pytest-cov
5-
pytest-forked
1+
coverage>=6.4, <=6.4.2
2+
codecov>=2.1, <=2.1.12
3+
pytest>=7.0, <=7.1.2
4+
pytest-cov <=3.0.0
5+
pytest-forked <=1.4.0
66
pytest-rerunfailures>=10.2
7-
mypy>=0.920
8-
flake8>=3.9.2
97
pre-commit>=1.0
8+
mypy==0.971
109

1110
# needed in tests
12-
cloudpickle>=1.3
13-
scikit-learn>0.22.1
14-
onnxruntime
15-
psutil # for `DeviceStatsMonitor`
16-
pandas # needed in benchmarks
17-
fastapi
18-
uvicorn
11+
cloudpickle>=1.3, <=2.1.0
12+
scikit-learn>0.22.1, <=1.1.1
13+
onnxruntime<=1.12.0
14+
psutil<=5.9.1 # for `DeviceStatsMonitor`
15+
pandas>1.0, <=1.4.3 # needed in benchmarks
16+
fastapi<=0.79.0
17+
uvicorn<=0.18.2

0 commit comments

Comments
 (0)