From 5c8e6884365736e83393f36395abcb3ee4280f7d Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Fri, 10 May 2024 09:22:49 +0000 Subject: [PATCH] feat(workflows): enable Python 3.12 build --- .github/workflows/build.yml | 6 +++--- CHANGELOG.md | 2 +- pyproject.toml | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 57857770..365e8a6e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,7 +56,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.8 - 3.11" # sync with requires-python in pyproject.toml + python-version: "3.8 - 3.12" # sync with requires-python in pyproject.toml update-environment: true - name: Set __release__ @@ -155,7 +155,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["3.9", "3.10", "3.11"] # sync with requires-python in pyproject.toml + python-version: ["3.9", "3.10", "3.11", "3.12"] # sync with requires-python in pyproject.toml fail-fast: false timeout-minutes: 60 steps: @@ -249,7 +249,7 @@ jobs: uses: actions/setup-python@v5 if: startsWith(github.ref, 'refs/tags/') with: - python-version: "3.8 - 3.11" # sync with requires-python in pyproject.toml + python-version: "3.8 - 3.12" # sync with requires-python in pyproject.toml update-environment: true - name: Set __release__ diff --git a/CHANGELOG.md b/CHANGELOG.md index 70b44628..8c9b1611 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- +- Enable CI workflow to build CXX/CUDA extension for Python 3.12 by [@XuehaiPan](https://github.com/XuehaiPan) in [#216](https://github.com/metaopt/torchopt/pull/216). ### Changed diff --git a/pyproject.toml b/pyproject.toml index 17d14b05..9f891437 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ authors = [ license = { text = "Apache License, Version 2.0" } keywords = [ "PyTorch", - "functorch", + "FuncTorch", "JAX", "Meta-Learning", "Optimizer", @@ -38,6 +38,8 @@ classifiers = [ "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", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Operating System :: MacOS", @@ -179,7 +181,7 @@ test-command = """ line-length = 100 skip-string-normalization = true # Sync with requires-python -target-version = ["py38", "py39", "py310", "py311"] +target-version = ["py38"] [tool.isort] atomic = true