Skip to content

Commit a40d9d2

Browse files
committed
Drop support for Python 3.7
1 parent 3001c7c commit a40d9d2

File tree

21 files changed

+60
-76
lines changed

21 files changed

+60
-76
lines changed

.github/checkgroup.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ subprojects:
2626
- "pl-cpu (ubuntu-20.04, pytorch, 3.9, 1.11)"
2727
- "pl-cpu (ubuntu-20.04, pytorch, 3.10, 1.12)"
2828
- "pl-cpu (ubuntu-20.04, pytorch, 3.10, 1.13)"
29-
- "pl-cpu (ubuntu-20.04, pytorch, 3.7, 1.10, oldest)"
29+
- "pl-cpu (ubuntu-20.04, pytorch, 3.8, 1.10, oldest)"
3030
- "pl-cpu (windows-2022, pytorch, 3.9, 1.11)"
3131
- "pl-cpu (windows-2022, pytorch, 3.10, 1.12)"
3232
- "pl-cpu (windows-2022, pytorch, 3.10, 1.13)"
33-
- "pl-cpu (windows-2022, pytorch, 3.7, 1.10, oldest)"
34-
- "pl-cpu (slow, macOS-11, pytorch, 3.7, 1.11)"
35-
- "pl-cpu (slow, ubuntu-20.04, pytorch, 3.7, 1.11)"
36-
- "pl-cpu (slow, windows-2022, pytorch, 3.7, 1.11)"
33+
- "pl-cpu (windows-2022, pytorch, 3.8, 1.10, oldest)"
34+
- "pl-cpu (slow, macOS-11, pytorch, 3.8, 1.11)"
35+
- "pl-cpu (slow, ubuntu-20.04, pytorch, 3.8, 1.11)"
36+
- "pl-cpu (slow, windows-2022, pytorch, 3.8, 1.11)"
3737
- "pl-cpu (macOS-11, lightning, 3.8, 1.13)"
3838
- "pl-cpu (ubuntu-20.04, lightning, 3.8, 1.13)"
3939
- "pl-cpu (windows-2022, lightning, 3.8, 1.13)"
@@ -164,7 +164,7 @@ subprojects:
164164
- "build-pl (3.9, 1.11, 11.3.1)"
165165
- "build-pl (3.9, 1.12, 11.6.1)"
166166
- "build-pl (3.9, 1.13, 11.7.1)"
167-
- "build-xla (3.7, 1.12)"
167+
- "build-xla (3.8, 1.12)"
168168

169169
# SECTION: lightning_fabric
170170

@@ -183,16 +183,16 @@ subprojects:
183183
- "fabric-cpu (macOS-11, fabric, 3.8, 1.11)"
184184
- "fabric-cpu (macOS-11, fabric, 3.9, 1.12)"
185185
- "fabric-cpu (macOS-11, fabric, 3.10, 1.13)"
186-
- "fabric-cpu (macOS-11, fabric, 3.7, 1.10, oldest)"
186+
- "fabric-cpu (macOS-11, fabric, 3.8, 1.10, oldest)"
187187
- "fabric-cpu (ubuntu-20.04, fabric, 3.8, 1.10)"
188188
- "fabric-cpu (ubuntu-20.04, fabric, 3.9, 1.11)"
189189
- "fabric-cpu (ubuntu-20.04, fabric, 3.10, 1.12)"
190190
- "fabric-cpu (ubuntu-20.04, fabric, 3.10, 1.13)"
191-
- "fabric-cpu (ubuntu-20.04, fabric, 3.7, 1.10, oldest)"
191+
- "fabric-cpu (ubuntu-20.04, fabric, 3.8, 1.10, oldest)"
192192
- "fabric-cpu (windows-2022, fabric, 3.9, 1.11)"
193193
- "fabric-cpu (windows-2022, fabric, 3.10, 1.12)"
194194
- "fabric-cpu (windows-2022, fabric, 3.10, 1.13)"
195-
- "fabric-cpu (windows-2022, fabric, 3.7, 1.10, oldest)"
195+
- "fabric-cpu (windows-2022, fabric, 3.8, 1.10, oldest)"
196196
- "fabric-cpu (macOS-11, lightning, 3.8, 1.13)"
197197
- "fabric-cpu (ubuntu-20.04, lightning, 3.8, 1.13)"
198198
- "fabric-cpu (windows-2022, lightning, 3.8, 1.13)"
@@ -343,35 +343,35 @@ subprojects:
343343
- "!*.md"
344344
- "!**/*.md"
345345
checks:
346-
- "install-pkg (ubuntu-22.04, app, 3.7)"
346+
- "install-pkg (ubuntu-22.04, app, 3.8)"
347347
- "install-pkg (ubuntu-22.04, app, 3.10)"
348-
- "install-pkg (ubuntu-22.04, fabric, 3.7)"
348+
- "install-pkg (ubuntu-22.04, fabric, 3.8)"
349349
- "install-pkg (ubuntu-22.04, fabric, 3.10)"
350-
- "install-pkg (ubuntu-22.04, pytorch, 3.7)"
350+
- "install-pkg (ubuntu-22.04, pytorch, 3.8)"
351351
- "install-pkg (ubuntu-22.04, pytorch, 3.10)"
352-
- "install-pkg (ubuntu-22.04, lightning, 3.7)"
352+
- "install-pkg (ubuntu-22.04, lightning, 3.8)"
353353
- "install-pkg (ubuntu-22.04, lightning, 3.10)"
354-
- "install-pkg (ubuntu-22.04, notset, 3.7)"
354+
- "install-pkg (ubuntu-22.04, notset, 3.8)"
355355
- "install-pkg (ubuntu-22.04, notset, 3.10)"
356-
- "install-pkg (macOS-12, app, 3.7)"
356+
- "install-pkg (macOS-12, app, 3.8)"
357357
- "install-pkg (macOS-12, app, 3.10)"
358-
- "install-pkg (macOS-12, fabric, 3.7)"
358+
- "install-pkg (macOS-12, fabric, 3.8)"
359359
- "install-pkg (macOS-12, fabric, 3.10)"
360-
- "install-pkg (macOS-12, pytorch, 3.7)"
360+
- "install-pkg (macOS-12, pytorch, 3.8)"
361361
- "install-pkg (macOS-12, pytorch, 3.10)"
362-
- "install-pkg (macOS-12, lightning, 3.7)"
362+
- "install-pkg (macOS-12, lightning, 3.8)"
363363
- "install-pkg (macOS-12, lightning, 3.10)"
364-
- "install-pkg (macOS-12, notset, 3.7)"
364+
- "install-pkg (macOS-12, notset, 3.8)"
365365
- "install-pkg (macOS-12, notset, 3.10)"
366-
- "install-pkg (windows-2022, app, 3.7)"
366+
- "install-pkg (windows-2022, app, 3.8)"
367367
- "install-pkg (windows-2022, app, 3.10)"
368-
- "install-pkg (windows-2022, fabric, 3.7)"
368+
- "install-pkg (windows-2022, fabric, 3.8)"
369369
- "install-pkg (windows-2022, fabric, 3.10)"
370-
- "install-pkg (windows-2022, pytorch, 3.7)"
370+
- "install-pkg (windows-2022, pytorch, 3.8)"
371371
- "install-pkg (windows-2022, pytorch, 3.10)"
372-
- "install-pkg (windows-2022, lightning, 3.7)"
372+
- "install-pkg (windows-2022, lightning, 3.8)"
373373
- "install-pkg (windows-2022, lightning, 3.10)"
374-
- "install-pkg (windows-2022, notset, 3.7)"
374+
- "install-pkg (windows-2022, notset, 3.8)"
375375
- "install-pkg (windows-2022, notset, 3.10)"
376376

377377
- id: "link-check"

.github/workflows/ci-dockers-pytorch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
fail-fast: false
6666
matrix:
6767
# the config used in '.github/workflows/tpu-tests.yml'
68-
python_version: ["3.7"]
68+
python_version: ["3.8"]
6969
xla_version: ["1.12"]
7070
steps:
7171
- uses: actions/checkout@v3

.github/workflows/ci-pkg-install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
matrix:
4545
os: [ubuntu-22.04, macOS-12, windows-2022]
4646
pkg-name: ["app", "fabric", "pytorch", "lightning", "notset"]
47-
python-version: ["3.7" , "3.10"]
47+
python-version: ["3.8" , "3.10"]
4848
# TODO: add also install from source
4949
steps:
5050
- uses: actions/checkout@v3

.github/workflows/ci-tests-fabric.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ jobs:
5151
- {os: "ubuntu-20.04", pkg-name: "fabric", python-version: "3.10", pytorch-version: "1.13"}
5252
- {os: "windows-2022", pkg-name: "fabric", python-version: "3.10", pytorch-version: "1.13"}
5353
# "oldest" versions tests, only on minimum Python
54-
- {os: "macOS-11", pkg-name: "fabric", python-version: "3.7", pytorch-version: "1.10", requires: "oldest"}
55-
- {os: "ubuntu-20.04", pkg-name: "fabric", python-version: "3.7", pytorch-version: "1.10", requires: "oldest"}
56-
- {os: "windows-2022", pkg-name: "fabric", python-version: "3.7", pytorch-version: "1.10", requires: "oldest"}
54+
- {os: "macOS-11", pkg-name: "fabric", python-version: "3.8", pytorch-version: "1.10", requires: "oldest"}
55+
- {os: "ubuntu-20.04", pkg-name: "fabric", python-version: "3.8", pytorch-version: "1.10", requires: "oldest"}
56+
- {os: "windows-2022", pkg-name: "fabric", python-version: "3.8", pytorch-version: "1.10", requires: "oldest"}
5757
# "lightning" installs the monolithic package
5858
- {os: "macOS-11", pkg-name: "lightning", python-version: "3.8", pytorch-version: "1.13"}
5959
- {os: "ubuntu-20.04", pkg-name: "lightning", python-version: "3.8", pytorch-version: "1.13"}
@@ -118,8 +118,6 @@ jobs:
118118
--source_import="lightning_fabric" --target_import="lightning.fabric"
119119
120120
- name: Testing Warnings
121-
# the stacklevel can only be set on >=3.7
122-
if: matrix.python-version != '3.7'
123121
working-directory: tests/tests_fabric
124122
# needs to run outside of `pytest`
125123
run: python utilities/test_warnings.py

.github/workflows/ci-tests-pytorch.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,19 @@ jobs:
5555
- {os: "ubuntu-20.04", pkg-name: "pytorch", python-version: "3.10", pytorch-version: "1.13"}
5656
- {os: "windows-2022", pkg-name: "pytorch", python-version: "3.10", pytorch-version: "1.13"}
5757
# "oldest" versions tests, only on minimum Python
58-
- {os: "macOS-11", pkg-name: "pytorch", python-version: "3.8", pytorch-version: "1.10", requires: "oldest"} # 3.7 hangs
59-
- {os: "ubuntu-20.04", pkg-name: "pytorch", python-version: "3.7", pytorch-version: "1.10", requires: "oldest"}
60-
- {os: "windows-2022", pkg-name: "pytorch", python-version: "3.7", pytorch-version: "1.10", requires: "oldest"}
58+
- {os: "macOS-11", pkg-name: "pytorch", python-version: "3.8", pytorch-version: "1.10", requires: "oldest"}
59+
- {os: "ubuntu-20.04", pkg-name: "pytorch", python-version: "3.8", pytorch-version: "1.10", requires: "oldest"}
60+
- {os: "windows-2022", pkg-name: "pytorch", python-version: "3.8", pytorch-version: "1.10", requires: "oldest"}
6161
# run test under SLOW label
62-
- {type: "slow", os: "macOS-11", pkg-name: "pytorch", python-version: "3.7", pytorch-version: "1.11"}
63-
- {type: "slow", os: "ubuntu-20.04", pkg-name: "pytorch", python-version: "3.7", pytorch-version: "1.11"}
64-
- {type: "slow", os: "windows-2022", pkg-name: "pytorch", python-version: "3.7", pytorch-version: "1.11"}
62+
- {type: "slow", os: "macOS-11", pkg-name: "pytorch", python-version: "3.8", pytorch-version: "1.11"}
63+
- {type: "slow", os: "ubuntu-20.04", pkg-name: "pytorch", python-version: "3.8", pytorch-version: "1.11"}
64+
- {type: "slow", os: "windows-2022", pkg-name: "pytorch", python-version: "3.8", pytorch-version: "1.11"}
6565
# "lightning" installs the monolithic package
6666
- {os: "macOS-11", pkg-name: "lightning", python-version: "3.8", pytorch-version: "1.13"}
6767
- {os: "ubuntu-20.04", pkg-name: "lightning", python-version: "3.8", pytorch-version: "1.13"}
6868
- {os: "windows-2022", pkg-name: "lightning", python-version: "3.8", pytorch-version: "1.13"}
6969

70-
timeout-minutes: 70 # tests with macOS-11, py3.7 oldest takes much longer then expected
70+
timeout-minutes: 70
7171

7272
steps:
7373
- uses: actions/checkout@v3
@@ -151,8 +151,6 @@ jobs:
151151
--target_import="lightning.pytorch,lightning.fabric"
152152
153153
- name: Testing Warnings
154-
# the stacklevel can only be set on >=3.7
155-
if: matrix.python-version != '3.7'
156154
working-directory: tests/tests_pytorch
157155
# needs to run outside of `pytest`
158156
run: python utilities/test_warnings.py

.github/workflows/tpu-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
runs-on: ubuntu-22.04
4040
if: github.event.pull_request.draft == false
4141
env:
42-
PYTHON_VER: 3.7
42+
PYTHON_VER: 3.8
4343
strategy:
4444
fail-fast: false
4545
max-parallel: 1 # run sequential

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,13 @@ Lightning is rigorously tested across multiple CPUs, GPUs, TPUs, IPUs, and HPUs
9393

9494
| System / PyTorch ver. | 1.10 | 1.12 |
9595
| :------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
96-
| Linux py3.7 \[GPUs\*\*\] | - | - |
97-
| Linux py3.7 \[TPUs\*\*\*\] | - | - |
96+
| Linux py3.9 \[GPUs\*\*\] | - | - |
97+
| Linux py3.9 \[TPUs\*\*\*\] | - | - |
9898
| Linux py3.8 \[IPUs\] | - | - |
9999
| Linux py3.8 \[HPUs\] | [![Build Status](https://dev.azure.com/Lightning-AI/lightning/_apis/build/status/pytorch-lightning%20%28HPUs%29?branchName=master)](https://dev.azure.com/Lightning-AI/lightning/_build/latest?definitionId=26&branchName=master) | - |
100-
| Linux py3.{7,9} | - | [![Test](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg?branch=master&event=push)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) |
101-
| OSX py3.{7,9} | - | [![Test](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg?branch=master&event=push)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) |
102-
| Windows py3.{7,9} | - | [![Test](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg?branch=master&event=push)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) |
103-
104-
- _\*\* tests run on two NVIDIA P100_
105-
- _\*\*\* tests run on Google GKE TPUv2/3. TPU py3.7 means we support Colab and Kaggle env._
100+
| Linux py3.{8,9,10} | - | [![Test](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg?branch=master&event=push)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) |
101+
| OSX py3.{8,9,10} | - | [![Test](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg?branch=master&event=push)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) |
102+
| Windows py3.{8,9,10} | - | [![Test](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml/badge.svg?branch=master&event=push)](https://github.com/Lightning-AI/lightning/actions/workflows/ci-tests-pytorch.yml) |
106103

107104
</center>
108105
</details>

docs/source-pytorch/advanced/post_training_quantization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Installation
3333
Prerequisites
3434
=============
3535

36-
Python version: 3.7, 3.8, 3.9, 3.10
36+
Python version: 3.8, 3.9, 3.10
3737

3838
Install Intel® Neural Compressor
3939
================================

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ channels:
2626
- conda-forge
2727

2828
dependencies:
29-
- python>=3.7
29+
- python>=3.8
3030
- pip>20.1
3131
- numpy>=1.17.2
3232
- pytorch>=1.10.*

requirements/fabric/strategies.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package
22
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment
3-
deepspeed>=0.6.0, <=0.7.0; python_version>"3.7" and platform_system != "Windows"
3+
deepspeed>=0.6.0, <=0.7.0; platform_system != "Windows"

0 commit comments

Comments
 (0)