Skip to content

Commit

Permalink
1094 Add Python 3.13 support (#1104)
Browse files Browse the repository at this point in the history
* add Python 3.13 to `setup.py` and CI

* upgrade `asyncpg`

* run integration tests on Python 3.12 for now
  • Loading branch information
dantownsend authored Oct 20, 2024
1 parent e2fa8f8 commit 265b0c2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v1"
with:
python-version: 3.12
python-version: 3.13
- name: "Install dependencies"
run: "pip install -r requirements/dev-requirements.txt"
- name: "Publish to PyPI"
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v3
Expand All @@ -40,7 +40,7 @@ jobs:
matrix:
# These tests are slow, so we only run on the latest Python
# version.
python-version: ["3.10"]
python-version: ["3.12"]
postgres-version: [17]
services:
postgres:
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
postgres-version: [12, 13, 14, 15, 16, 17]

# Service containers to run with `container-job`
Expand Down Expand Up @@ -134,14 +134,14 @@ jobs:
PG_PASSWORD: postgres
- name: Upload coverage
uses: codecov/codecov-action@v1
if: matrix.python-version == '3.12'
if: matrix.python-version == '3.13'

cockroach:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
cockroachdb-version: ["v24.1.0"]
steps:
- uses: actions/checkout@v3
Expand All @@ -168,14 +168,14 @@ jobs:
PG_DATABASE: piccolo
- name: Upload coverage
uses: codecov/codecov-action@v1
if: matrix.python-version == '3.12'
if: matrix.python-version == '3.13'

sqlite:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v3
Expand All @@ -193,4 +193,4 @@ jobs:
run: ./scripts/test-sqlite.sh
- name: Upload coverage
uses: codecov/codecov-action@v1
if: matrix.python-version == '3.12'
if: matrix.python-version == '3.13'
2 changes: 1 addition & 1 deletion requirements/extras/postgres.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
asyncpg>=0.21.0
asyncpg>=0.30.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def extras_require() -> t.Dict[str, t.List[str]]:
long_description_content_type="text/markdown",
author="Daniel Townsend",
author_email="[email protected]",
python_requires=">=3.8.0",
python_requires=">=3.9.0",
url="https://github.com/piccolo-orm/piccolo",
packages=find_packages(exclude=("tests",)),
package_data={
Expand All @@ -84,11 +84,11 @@ def extras_require() -> t.Dict[str, t.List[str]]:
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Framework :: AsyncIO",
"Typing :: Typed",
Expand Down

0 comments on commit 265b0c2

Please sign in to comment.