Skip to content

Commit 77ea4be

Browse files
307 Python 3.13 support (#306)
* update dependecies * remove Python 3.8 * revert dependency changes * remove extra changes for now * fix mypy error for now --------- Co-authored-by: sinisaos <[email protected]>
1 parent bc7eefa commit 77ea4be

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313

1414
steps:
1515
- uses: "actions/checkout@v4"
16-
- uses: "actions/setup-python@v4"
16+
- uses: "actions/setup-python@v5"
1717
with:
18-
python-version: 3.12
18+
python-version: 3.13
1919
- name: "Install dependencies"
2020
run: "pip install -r requirements/dev-requirements.txt"
2121
- name: "Publish to PyPI"

.github/workflows/tests.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- name: Set up Python
15-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v5
1616
with:
17-
python-version: 3.12
17+
python-version: 3.13
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
strategy:
3333
matrix:
34-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
34+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3535

3636
# Service containers to run with `container-job`
3737
services:
@@ -54,7 +54,7 @@ jobs:
5454
steps:
5555
- uses: actions/checkout@v4
5656
- name: Set up Python ${{ matrix.python-version }}
57-
uses: actions/setup-python@v2
57+
uses: actions/setup-python@v5
5858
with:
5959
python-version: ${{ matrix.python-version }}
6060
- name: Install dependencies
@@ -72,18 +72,18 @@ jobs:
7272
PG_PASSWORD: postgres
7373
- name: Upload coverage
7474
uses: codecov/codecov-action@v1
75-
if: matrix.python-version == '3.12'
75+
if: matrix.python-version == '3.13'
7676

7777
test_sqlite:
7878
runs-on: ubuntu-latest
7979
strategy:
8080
matrix:
81-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
81+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
8282

8383
steps:
8484
- uses: actions/checkout@v4
8585
- name: Set up Python ${{ matrix.python-version }}
86-
uses: actions/setup-python@v4
86+
uses: actions/setup-python@v5
8787
with:
8888
python-version: ${{ matrix.python-version }}
8989
- name: Install dependencies
@@ -97,4 +97,4 @@ jobs:
9797
run: ./scripts/test-sqlite.sh
9898
- name: Upload coverage
9999
uses: codecov/codecov-action@v3
100-
if: matrix.python-version == '3.12'
100+
if: matrix.python-version == '3.13'

piccolo_api/token_auth/tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def authenticate(cls, token: str) -> First:
6060
return cls.select(cls.user.id).where(cls.token == token).first()
6161

6262
@classmethod
63-
async def authenticate_sync(cls, token: str) -> t.Optional[int]:
63+
async def authenticate_sync(cls, token: str) -> First:
6464
return run_sync(cls.authenticate(token))
6565

6666
@classmethod

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def extras_require() -> t.Dict[str, t.List[str]]:
6969
long_description_content_type="text/markdown",
7070
author="Daniel Townsend",
7171
author_email="[email protected]",
72-
python_requires=">=3.8.0",
72+
python_requires=">=3.9.0",
7373
url="https://github.com/piccolo-orm/piccolo_api",
7474
packages=find_packages(exclude=("tests",)),
7575
package_data={
@@ -85,11 +85,11 @@ def extras_require() -> t.Dict[str, t.List[str]]:
8585
"License :: OSI Approved :: MIT License",
8686
"Programming Language :: Python",
8787
"Programming Language :: Python :: 3",
88-
"Programming Language :: Python :: 3.8",
8988
"Programming Language :: Python :: 3.9",
9089
"Programming Language :: Python :: 3.10",
9190
"Programming Language :: Python :: 3.11",
9291
"Programming Language :: Python :: 3.12",
92+
"Programming Language :: Python :: 3.13",
9393
"Programming Language :: Python :: Implementation :: CPython",
9494
],
9595
)

0 commit comments

Comments
 (0)