Skip to content

Commit

Permalink
[Release] update CI python versions (#1319)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
andrewkho and andrewkh authored Sep 25, 2024
1 parent 8b6e903 commit a629426
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 16 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/_build_test_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ jobs:
os:
- windows-latest
python-version:
- 3.8
- 3.9
- "3.10"
- "3.11"
Expand Down Expand Up @@ -224,7 +223,6 @@ jobs:
os:
- windows-latest
python-version:
- 3.8
- 3.9
- "3.10"
- "3.11"
Expand Down Expand Up @@ -366,10 +364,10 @@ jobs:
needs: [get_release_type, wheel_upload, conda_upload]
runs-on: ubuntu-latest
steps:
- name: Setup Python 3.8
- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.9
- name: Checkout
uses: actions/checkout@v3
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/aistore_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
- macos-latest
- ubuntu-latest
python-version:
- 3.8
- 3.9
steps:
- name: Get PyTorch Channel
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ jobs:
- ubuntu-latest
- windows-latest
python-version:
- 3.8
- 3.9
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Get PyTorch Channel
shell: bash
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/domain_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ jobs:
- ubuntu-latest
# - windows-latest
python-version:
- 3.8
- 3.9
steps:
- name: Setup Python ${{ matrix.python-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.9"
- name: Check out source repository
uses: actions/checkout@v3
- name: Install lint utilities
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Setup Python environment
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.9
- name: Check out source repository
uses: actions/checkout@v3
- name: Install PyTorch
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.9"
- name: Check out source repository
uses: actions/checkout@v3
- name: Check if documentation is complete
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/stateful_dataloader_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ jobs:
- ubuntu-latest
- windows-latest
python-version:
- 3.8
- 3.9
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Get PyTorch Channel
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The following is the corresponding `torchdata` versions and supported Python ver

| `torch` | `torchdata` | `python` |
| -------------------- | ------------------ | ----------------- |
| `master` / `nightly` | `main` / `nightly` | `>=3.8`, `<=3.12` |
| `master` / `nightly` | `main` / `nightly` | `>=3.9`, `<=3.12` |
| `2.4.0` | `0.8.0` | `>=3.8`, `<=3.12` |
| `2.0.0` | `0.6.0` | `>=3.8`, `<=3.11` |
| `1.13.1` | `0.5.1` | `>=3.7`, `<=3.10` |
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ files = torchdata

exclude = examples, test, packaging

python_version = 3.8
python_version = 3.9

#
# Third party dependencies that don't have types.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ first_party_detection = false
[tool.black]

line-length = 120
target-version = ["py37"]
target-version = ["py39"]

[build-system]
requires = [
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,17 @@ def remove_extension(pattern):
author_email="[email protected]",
license="BSD",
install_requires=requirements,
python_requires=">=3.8",
python_requires=">=3.9",
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
Expand Down

0 comments on commit a629426

Please sign in to comment.