From ab2a4f0ce07a87b0d4e2a9d07f072485d30ab285 Mon Sep 17 00:00:00 2001 From: Daniel Townsend Date: Fri, 18 Oct 2024 12:46:11 +0100 Subject: [PATCH 1/3] add Python 3.13 to `setup.py` and CI --- .github/workflows/release.yaml | 2 +- .github/workflows/tests.yaml | 16 ++++++++-------- setup.py | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 60f0b83b1..4d70f80a5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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" diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 26690051f..86267ca77 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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 @@ -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.13"] postgres-version: [14] services: postgres: @@ -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: [11, 12, 13, 14, 15, 16] # Service containers to run with `container-job` @@ -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 @@ -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 @@ -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' diff --git a/setup.py b/setup.py index 0996a1297..315dc5e6e 100644 --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ def extras_require() -> t.Dict[str, t.List[str]]: long_description_content_type="text/markdown", author="Daniel Townsend", author_email="dan@dantownsend.co.uk", - python_requires=">=3.8.0", + python_requires=">=3.9.0", url="https://github.com/piccolo-orm/piccolo", packages=find_packages(exclude=("tests",)), package_data={ @@ -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", From 6a2d8ee8f4532e2676fc8f2053247112d024944f Mon Sep 17 00:00:00 2001 From: Daniel Townsend Date: Sun, 20 Oct 2024 06:48:55 +0100 Subject: [PATCH 2/3] upgrade `asyncpg` --- requirements/extras/postgres.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/extras/postgres.txt b/requirements/extras/postgres.txt index 864747fa4..1b54800e6 100644 --- a/requirements/extras/postgres.txt +++ b/requirements/extras/postgres.txt @@ -1 +1 @@ -asyncpg>=0.21.0 +asyncpg>=0.30.0 From b3d820e4d249addfd7c5a80b0fa6a2a2cb25e358 Mon Sep 17 00:00:00 2001 From: Daniel Townsend Date: Sun, 20 Oct 2024 07:13:54 +0100 Subject: [PATCH 3/3] run integration tests on Python 3.12 for now --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 688d24374..0d71446a3 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -40,7 +40,7 @@ jobs: matrix: # These tests are slow, so we only run on the latest Python # version. - python-version: ["3.13"] + python-version: ["3.12"] postgres-version: [17] services: postgres: