Skip to content

Commit 48822c8

Browse files
Bordalexierule
authored andcommitted
adding explain notes for requirements (#13872)
* adding explain notes for requirements * Apply suggestions from code review Co-authored-by: Rohit Gupta <[email protected]> (cherry picked from commit e513638)
1 parent 9b8776c commit 48822c8

File tree

7 files changed

+29
-1
lines changed

7 files changed

+29
-1
lines changed

requirements/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Project Requirements
2+
3+
This root requirements folder branches into sub-folders depending on the python package.
4+
Within the folder, we have grouped requirements files/lists per focus, which shall closely match package extra
5+
So, for example, when you install PL as `pip install pytorch-lightning[loggers]`, this list is stored in `requirements/pytorch/loggers.txt`.
6+
The only exceptional requirement file is `devel.txt`, which aggregated all the needed requirements for development.
7+
8+
## CI/CD upper bounds
9+
10+
For Ci stability, we have set for all package versions upper bounds (the latest version), so with any sudden release, we won't put our development on fire.
11+
The continues updated of these upper bounds are managed by dependabot.
12+
Note that these upper bounds are lifters when installing a package from the source or as a package.
13+
If you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment.

requirements/app/cloud.txt

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

requirements/pytorch/base.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
2+
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
3+
14
numpy>=1.17.2, <1.23.1
25
torch>=1.9.*, <=1.12.0
36
tqdm>=4.57.0, <=4.63.0

requirements/pytorch/examples.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
2+
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
3+
14
torchvision>=0.10.*, <=0.12.0
25
gym[classic_control]>=0.17.0, <0.24.2
36
ipython[all] <=8.1.1

requirements/pytorch/extra.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
2+
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
3+
14
# extended list of package dependencies to reach full functionality
25
matplotlib>3.1, <3.5.3
36
torchtext>=0.10.*, <=0.12.0

requirements/pytorch/loggers.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
2+
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
3+
14
# all supported loggers
25

36
neptune-client>=0.10.0, <0.16.4

requirements/pytorch/strategies.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
2+
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
3+
14
fairscale>=0.4.5, <=0.4.6
25
deepspeed<0.6.0
36
# no need to install with [pytorch] as pytorch is already installed

0 commit comments

Comments
 (0)