Skip to content

Commit

Permalink
Add explicit Python 3.13 support (#204)
Browse files Browse the repository at this point in the history
* Bumps matrices to include 3.13
* Drop matrix from release workflow; use latest to release
* Add individual trove classifiers for each supported version
  • Loading branch information
stefanvanburen authored Oct 23, 2024
1 parent f38903b commit 866e95e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
name: Upload PyPi Release
name: Upload PyPI Release

on:
release:
types: [published]

env:
PYTHON_VERSION: '3.7.17'

jobs:
build:
name: Build package
runs-on: ubuntu-latest
environment:
name: release
strategy:
matrix:
python-version: [ "3.11" ]
steps:
- name: Checkout source
uses: actions/checkout@v4
Expand All @@ -25,10 +19,10 @@ jobs:
run: |
VERSION=${{github.head_ref}}
echo "VERSION=${VERSION##*/}" >> $GITHUB_ENV
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.13"
- name: Install pypa/build
run: |
python -m pip install build
Expand All @@ -39,7 +33,7 @@ jobs:
path: dist/

publish:
name: Publish on PyPi
name: Publish on PyPI
runs-on: ubuntu-latest
environment:
name: release
Expand All @@ -56,7 +50,7 @@ jobs:
name: package
path: dist

- name: Publish on PyPi
- name: Publish on PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ license = { file = "LICENSE" }
keywords = ["validate", "protobuf", "protocol buffer"]
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"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 :: 3.13",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
Expand Down

0 comments on commit 866e95e

Please sign in to comment.