From b5db9c935021a54fb5d1a479457ce63ad94e2fe5 Mon Sep 17 00:00:00 2001 From: Benjamin Bossan Date: Thu, 24 Oct 2024 16:59:47 +0200 Subject: [PATCH] MNT: Enable Python 3.12 on CI (#2173) Python 3.8 was removed recently, adding 3.12 now. --- .github/workflows/tests.yml | 3 ++- setup.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a0026608fd..c09c96987b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,7 +34,7 @@ jobs: # TODO: remove 'fail-fast' line once timeout issue from the Hub is solved fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] os: ["ubuntu-latest", "macos-12", "windows-latest"] runs-on: ${{ matrix.os }} steps: @@ -48,6 +48,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip install setuptools # cpu version of pytorch pip install -e .[test] - name: Downgrade numpy on MacOS and Windows diff --git a/setup.py b/setup.py index c0d42bae8a..973dcba889 100644 --- a/setup.py +++ b/setup.py @@ -78,7 +78,10 @@ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering :: Artificial Intelligence", ], )