From ac3bb83ecfad4643b3eb2173291e59eb7a9c1a77 Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Sat, 3 Aug 2024 00:14:56 -0400 Subject: [PATCH] Publish wheels for Python 3.13 Now that Python 3.13 is ABI stable, document that it is supported and begin to publish wheels for it. Signed-off-by: Matt Wozniski --- .github/ISSUE_TEMPLATE/---bug-report.yaml | 1 + .github/workflows/build_wheels.yml | 1 - Dockerfile | 5 ++++- setup.py | 1 + src/pystack/_pystack/version.cpp | 2 ++ 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/---bug-report.yaml b/.github/ISSUE_TEMPLATE/---bug-report.yaml index 6d7a1220..b1901fe1 100644 --- a/.github/ISSUE_TEMPLATE/---bug-report.yaml +++ b/.github/ISSUE_TEMPLATE/---bug-report.yaml @@ -53,6 +53,7 @@ body: - "3.10" - "3.11" - "3.12" + - "3.13" validations: required: true - type: dropdown diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 4556f51d..5f397388 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -308,7 +308,6 @@ jobs: mv dist/sdist/*.tar.gz dist/ mv dist/*-wheels/*.whl dist/ rmdir dist/{sdist,*-wheels} - rm -f dist/*cp313* ls -R dist - uses: pypa/gh-action-pypi-publish@release/v1 with: diff --git a/Dockerfile b/Dockerfile index a7b6fcf1..db03fdd1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,6 +63,9 @@ RUN apt-get update \ python3.12-dev \ python3.12-dbg \ python3.12-venv \ + python3.13-dev \ + python3.13-dbg \ + python3.13-venv \ make \ cmake \ gdb \ @@ -93,7 +96,7 @@ ENV PYTHON=python3.12 \ COPY ["requirements-test.txt", "requirements-extra.txt", "requirements-docs.txt", "/tmp/"] # Install Python packages -RUN python3.12 -m venv $VIRTUAL_ENV \ +RUN $PYTHON -m venv $VIRTUAL_ENV \ && pip install -U pip wheel setuptools cython pkgconfig \ && pip install -U -r /tmp/requirements-test.txt -r /tmp/requirements-extra.txt diff --git a/setup.py b/setup.py index 065c119a..161852ad 100644 --- a/setup.py +++ b/setup.py @@ -115,6 +115,7 @@ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Debuggers", ], diff --git a/src/pystack/_pystack/version.cpp b/src/pystack/_pystack/version.cpp index 78d1a4b6..342a6810 100644 --- a/src/pystack/_pystack/version.cpp +++ b/src/pystack/_pystack/version.cpp @@ -337,6 +337,8 @@ python_v python_v3_12 = { py_cframe(), }; +// ---- Python 3.13 ------------------------------------------------------------ + python_v python_v3_13 = { py_type(), py_codev311(),