From 9073923976869cb7744efc6e82b3eca9f06aa524 Mon Sep 17 00:00:00 2001 From: andrewkh Date: Wed, 25 Sep 2024 09:54:17 -0700 Subject: [PATCH 1/7] update CI python versions --- .github/workflows/aistore_ci.yml | 1 - .github/workflows/ci.yml | 3 ++- .github/workflows/lint.yml | 6 +++--- .github/workflows/stateful_dataloader_ci.yml | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/aistore_ci.yml b/.github/workflows/aistore_ci.yml index cb9bd7c74..f5b0abb2d 100644 --- a/.github/workflows/aistore_ci.yml +++ b/.github/workflows/aistore_ci.yml @@ -24,7 +24,6 @@ jobs: - macos-latest - ubuntu-latest python-version: - - 3.8 - 3.9 steps: - name: Get PyTorch Channel diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba0d1cb9f..d31b17556 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 247235682..af1bfaff4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/stateful_dataloader_ci.yml b/.github/workflows/stateful_dataloader_ci.yml index 56fe00671..07070038c 100644 --- a/.github/workflows/stateful_dataloader_ci.yml +++ b/.github/workflows/stateful_dataloader_ci.yml @@ -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 From cf740b890d8b5f10bd68d9a5ff2ad2218325e872 Mon Sep 17 00:00:00 2001 From: andrewkh Date: Wed, 25 Sep 2024 09:56:54 -0700 Subject: [PATCH 2/7] straggler --- .github/workflows/domain_ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/domain_ci.yml b/.github/workflows/domain_ci.yml index 4791f9333..c7c2961c7 100644 --- a/.github/workflows/domain_ci.yml +++ b/.github/workflows/domain_ci.yml @@ -64,7 +64,6 @@ jobs: - ubuntu-latest # - windows-latest python-version: - - 3.8 - 3.9 steps: - name: Setup Python ${{ matrix.python-version }} From 7adcb510237b15301fc9f1fd0349c8c8dba77b04 Mon Sep 17 00:00:00 2001 From: andrewkh Date: Wed, 25 Sep 2024 10:11:20 -0700 Subject: [PATCH 3/7] update setup.py --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 13cdc42e1..726b1da9d 100644 --- a/setup.py +++ b/setup.py @@ -164,17 +164,17 @@ def remove_extension(pattern): author_email="packages@pytorch.org", 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", ], From d16f8d780479fe6b53be51a22a13d6796fb54e5e Mon Sep 17 00:00:00 2001 From: andrewkh Date: Wed, 25 Sep 2024 10:14:06 -0700 Subject: [PATCH 4/7] update pyproject.toml, README.md --- README.md | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2dcbb0999..b083b40a9 100644 --- a/README.md +++ b/README.md @@ -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` | diff --git a/pyproject.toml b/pyproject.toml index 65ed1522b..136189c7d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ first_party_detection = false [tool.black] line-length = 120 -target-version = ["py37"] +target-version = ["py39"] [build-system] requires = [ From 11c2cfe5a1308256f03046e0941b7e3c24bd86d3 Mon Sep 17 00:00:00 2001 From: andrewkh Date: Wed, 25 Sep 2024 10:16:37 -0700 Subject: [PATCH 5/7] update mypy and pre-commit --- .pre-commit-config.yaml | 2 +- mypy.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4a3cf65a4..5cfac3fc3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: rev: v2.31.0 hooks: - id: pyupgrade - args: [--py37-plus] + args: [--py39-plus] - repo: https://github.com/omnilib/ufmt rev: v1.3.2 diff --git a/mypy.ini b/mypy.ini index b41e291aa..2ae34b73d 100644 --- a/mypy.ini +++ b/mypy.ini @@ -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. From c76de7736299edb2d25b0b20c4461a851fd10a3b Mon Sep 17 00:00:00 2001 From: andrewkh Date: Wed, 25 Sep 2024 10:41:18 -0700 Subject: [PATCH 6/7] revert precommit version change --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5cfac3fc3..4a3cf65a4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: rev: v2.31.0 hooks: - id: pyupgrade - args: [--py39-plus] + args: [--py37-plus] - repo: https://github.com/omnilib/ufmt rev: v1.3.2 From e1175059b486c6933a3d3d42db677e8a241d6c17 Mon Sep 17 00:00:00 2001 From: andrewkh Date: Wed, 25 Sep 2024 10:46:02 -0700 Subject: [PATCH 7/7] update build test upload wheel version --- .github/workflows/_build_test_upload.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/_build_test_upload.yml b/.github/workflows/_build_test_upload.yml index 82e53ec02..aa7f800e0 100644 --- a/.github/workflows/_build_test_upload.yml +++ b/.github/workflows/_build_test_upload.yml @@ -63,7 +63,6 @@ jobs: os: - windows-latest python-version: - - 3.8 - 3.9 - "3.10" - "3.11" @@ -224,7 +223,6 @@ jobs: os: - windows-latest python-version: - - 3.8 - 3.9 - "3.10" - "3.11" @@ -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: