Skip to content

Commit a629426

Browse files
andrewkhoandrewkh
andauthored
[Release] update CI python versions (meta-pytorch#1319)
* update CI python versions * straggler * update setup.py * update pyproject.toml, README.md * update mypy and pre-commit * revert precommit version change * update build test upload wheel version --------- Co-authored-by: andrewkh <[email protected]>
1 parent 8b6e903 commit a629426

10 files changed

Lines changed: 14 additions & 16 deletions

File tree

.github/workflows/_build_test_upload.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ jobs:
6363
os:
6464
- windows-latest
6565
python-version:
66-
- 3.8
6766
- 3.9
6867
- "3.10"
6968
- "3.11"
@@ -224,7 +223,6 @@ jobs:
224223
os:
225224
- windows-latest
226225
python-version:
227-
- 3.8
228226
- 3.9
229227
- "3.10"
230228
- "3.11"
@@ -366,10 +364,10 @@ jobs:
366364
needs: [get_release_type, wheel_upload, conda_upload]
367365
runs-on: ubuntu-latest
368366
steps:
369-
- name: Setup Python 3.8
367+
- name: Setup Python 3.9
370368
uses: actions/setup-python@v4
371369
with:
372-
python-version: 3.8
370+
python-version: 3.9
373371
- name: Checkout
374372
uses: actions/checkout@v3
375373
with:

.github/workflows/aistore_ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
- macos-latest
2525
- ubuntu-latest
2626
python-version:
27-
- 3.8
2827
- 3.9
2928
steps:
3029
- name: Get PyTorch Channel

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ jobs:
2525
- ubuntu-latest
2626
- windows-latest
2727
python-version:
28-
- 3.8
2928
- 3.9
3029
- "3.10"
30+
- "3.11"
31+
- "3.12"
3132
steps:
3233
- name: Get PyTorch Channel
3334
shell: bash

.github/workflows/domain_ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ jobs:
6464
- ubuntu-latest
6565
# - windows-latest
6666
python-version:
67-
- 3.8
6867
- 3.9
6968
steps:
7069
- name: Setup Python ${{ matrix.python-version }}

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: "3.8"
18+
python-version: "3.9"
1919
- name: Check out source repository
2020
uses: actions/checkout@v3
2121
- name: Install lint utilities
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup Python environment
4646
uses: actions/setup-python@v4
4747
with:
48-
python-version: 3.8
48+
python-version: 3.9
4949
- name: Check out source repository
5050
uses: actions/checkout@v3
5151
- name: Install PyTorch
@@ -81,7 +81,7 @@ jobs:
8181
- name: Setup Python
8282
uses: actions/setup-python@v4
8383
with:
84-
python-version: "3.8"
84+
python-version: "3.9"
8585
- name: Check out source repository
8686
uses: actions/checkout@v3
8787
- name: Check if documentation is complete

.github/workflows/stateful_dataloader_ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ jobs:
2525
- ubuntu-latest
2626
- windows-latest
2727
python-version:
28-
- 3.8
2928
- 3.9
3029
- "3.10"
30+
- "3.11"
31+
- "3.12"
3132
steps:
3233
- name: Get PyTorch Channel
3334
shell: bash

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following is the corresponding `torchdata` versions and supported Python ver
4343

4444
| `torch` | `torchdata` | `python` |
4545
| -------------------- | ------------------ | ----------------- |
46-
| `master` / `nightly` | `main` / `nightly` | `>=3.8`, `<=3.12` |
46+
| `master` / `nightly` | `main` / `nightly` | `>=3.9`, `<=3.12` |
4747
| `2.4.0` | `0.8.0` | `>=3.8`, `<=3.12` |
4848
| `2.0.0` | `0.6.0` | `>=3.8`, `<=3.11` |
4949
| `1.13.1` | `0.5.1` | `>=3.7`, `<=3.10` |

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ files = torchdata
1010

1111
exclude = examples, test, packaging
1212

13-
python_version = 3.8
13+
python_version = 3.9
1414

1515
#
1616
# Third party dependencies that don't have types.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ first_party_detection = false
55
[tool.black]
66

77
line-length = 120
8-
target-version = ["py37"]
8+
target-version = ["py39"]
99

1010
[build-system]
1111
requires = [

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,17 @@ def remove_extension(pattern):
164164
author_email="[email protected]",
165165
license="BSD",
166166
install_requires=requirements,
167-
python_requires=">=3.8",
167+
python_requires=">=3.9",
168168
classifiers=[
169169
"Intended Audience :: Developers",
170170
"Intended Audience :: Science/Research",
171171
"License :: OSI Approved :: BSD License",
172172
"Operating System :: MacOS :: MacOS X",
173173
"Operating System :: Microsoft :: Windows",
174-
"Programming Language :: Python :: 3.8",
175174
"Programming Language :: Python :: 3.9",
176175
"Programming Language :: Python :: 3.10",
177176
"Programming Language :: Python :: 3.11",
177+
"Programming Language :: Python :: 3.12",
178178
"Programming Language :: Python :: Implementation :: CPython",
179179
"Topic :: Scientific/Engineering :: Artificial Intelligence",
180180
],

0 commit comments

Comments
 (0)