Skip to content

Commit

Permalink
Reduce lightning data's dependencies (#19026)
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca authored Nov 17, 2023
1 parent 6e10642 commit 4e72dcc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .azure/gpu-tests-fabric.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ pr:
- "tests/tests_fabric/run_standalone_*.sh"
- "tests/tests_pytorch/run_standalone_tests.sh" # used by fabric through a symlink
- "requirements/fabric/**"
- "src/lightning/__about__.py"
- "src/lightning/__init__.py"
- "src/lightning/__main__.py"
- "src/lightning/__setup__.py"
- "src/lightning/__version__.py"
- "src/lightning/fabric/**"
Expand Down
2 changes: 0 additions & 2 deletions .azure/gpu-tests-pytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ pr:
- "examples/pytorch/basics/backbone_image_classifier.py"
- "examples/pytorch/basics/autoencoder.py"
- "requirements/pytorch/**"
- "src/lightning/__about__.py"
- "src/lightning/__init__.py"
- "src/lightning/__main__.py"
- "src/lightning/__setup__.py"
- "src/lightning/__version__.py"
- "src/lightning/pytorch/**"
Expand Down
9 changes: 3 additions & 6 deletions .github/checkgroup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ subprojects:
- "examples/pytorch/basics/backbone_image_classifier.py"
- "examples/pytorch/basics/autoencoder.py"
- "requirements/pytorch/**"
- "src/lightning/__about__.py"
- "src/lightning/__init__.py"
- "src/lightning/__main__.py"
- "src/lightning/__setup__.py"
- "src/lightning/__version__.py"
- "src/lightning/pytorch/**"
Expand Down Expand Up @@ -166,6 +164,9 @@ subprojects:
- "requirements/data/**"
- "src/lightning/data/**"
- "src/lightning_data/*"
- "src/lightning/__init__.py"
- "src/lightning/__setup__.py"
- "src/lightning/__version__.py"
- "tests/tests_data/**"
- "examples/data/**"
- "pyproject.toml" # includes pytest config
Expand Down Expand Up @@ -227,9 +228,7 @@ subprojects:
- "tests/tests_fabric/run_standalone_*.sh"
- "tests/tests_pytorch/run_standalone_tests.sh" # used by Fabric through a symlink
- "requirements/fabric/**"
- "src/lightning/__about__.py"
- "src/lightning/__init__.py"
- "src/lightning/__main__.py"
- "src/lightning/__setup__.py"
- "src/lightning/__version__.py"
- "src/lightning/fabric/**"
Expand Down Expand Up @@ -318,9 +317,7 @@ subprojects:
- id: "lightning: Store"
paths:
- ".github/workflows/ci-tests-store.yml"
- "src/lightning/__about__.py"
- "src/lightning/__init__.py"
- "src/lightning/__main__.py"
- "src/lightning/__setup__.py"
- "src/lightning/__version__.py"
- "src/lightning/store/**"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-tests-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- ".actions/*"
- "requirements/data/**"
- "src/lightning/data/**"
- "src/lightning/__init__.py"
- "src/lightning/__setup__.py"
- "src/lightning/__version__.py"
- "tests/tests_data/**"
- "pyproject.toml" # includes pytest config
- ".github/workflows/ci-tests-data.yml"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci-tests-store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ on:
paths:
- ".actions/*"
- "requirements/store/**"
- "src/lightning/__about__.py"
- "src/lightning/__init__.py"
- "src/lightning/__main__.py"
- "src/lightning/__setup__.py"
- "src/lightning/__version__.py"
- "src/lightning/store/**"
Expand Down
1 change: 1 addition & 0 deletions requirements/data/data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
lightning-utilities >=0.8.0, <0.10.0
# to be able to include also PL 2.0 and preserve `>` needed for CI min version bypass
torch >0.14.0, <2.2.0
lightning-cloud
1 change: 0 additions & 1 deletion src/lightning/__setup__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def _prepare_extras() -> Dict[str, Any]:
extras["app-extra"] = extras["app-app"] + extras["app-cloud"] + extras["app-ui"] + extras["app-components"]
extras["app-all"] = extras["app-extra"]
extras["app-dev"] = extras["app-all"] + extras["app-test"]
extras["data-data"] += extras["app-app"] # todo: consider cutting/leaning this dependency
extras["data-all"] = extras["data-data"] + extras["data-cloud"] + extras["data-examples"]
extras["data-dev"] = extras["data-all"] + extras["data-test"]
extras["store-store"] = extras["app-app"] # todo: consider cutting/leaning this dependency
Expand Down

0 comments on commit 4e72dcc

Please sign in to comment.