From 21a76833cd460a8d81a142b2c700b18205e46eef Mon Sep 17 00:00:00 2001 From: Kamforka Date: Fri, 4 Oct 2024 17:54:32 +0200 Subject: [PATCH] #347 - Add support for Python 3.13 --- .github/workflows/_build-package.yml | 6 +++++- .github/workflows/main-cicd.yml | 7 +++++-- pyproject.toml | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_build-package.yml b/.github/workflows/_build-package.yml index a690bc6..a0b00e8 100644 --- a/.github/workflows/_build-package.yml +++ b/.github/workflows/_build-package.yml @@ -1,6 +1,10 @@ name: build-package on: workflow_call: + inputs: + python_version: + type: string + required: true jobs: build: name: Build wheel and sdist @@ -10,7 +14,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.12 + python-version: ${{ inputs.python_version }} - name: Install build dependencies run: pip install --no-cache-dir -U pip .['build'] - name: Build package diff --git a/.github/workflows/main-cicd.yml b/.github/workflows/main-cicd.yml index a7bc0ac..d7295e5 100644 --- a/.github/workflows/main-cicd.yml +++ b/.github/workflows/main-cicd.yml @@ -6,7 +6,8 @@ on: tags: - "*" pull_request: - +env: + PYTHON: 3.13 jobs: static-checks: uses: ./.github/workflows/_static-checks.yml @@ -16,11 +17,13 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} build-package: uses: ./.github/workflows/_build-package.yml + with: + python_version: 3.13 build-docs: uses: ./.github/workflows/_build-docs.yml upload-package: - uses: ./.github/workflows/_upload-package.yml if: startsWith(github.ref, 'refs/tags/') + uses: ./.github/workflows/_upload-package.yml needs: [static-checks, integration-tests, build-package, build-docs] secrets: PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 7ddc903..e0a87f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "License :: OSI Approved :: MIT License", ] authors = [{ name = "Szabolcs Antal", email = "antalszabolcs01@gmail.com" }]