Skip to content

Commit

Permalink
Merge pull request #1035 from ClearcodeHQ/python3.13
Browse files Browse the repository at this point in the history
Python3.13
  • Loading branch information
fizyk authored Dec 12, 2024
2 parents cddb3d4 + 1a5919e commit 3b7fdaa
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dockerised-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
python-versions:
description: 'Supported python versions'
default: '["3.8", "3.9", "3.10", "3.11", "3.12"]'
default: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
required: false
type: string
postgresql:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
uses: actions/checkout@v4
- uses: fizyk/actions-reuse/.github/actions/[email protected]
with:
python-version: "3.12"
python-version: "3.13"
command: tbump --dry-run --only-patch $(pipenv run tbump current-version)"-x"
towncrier:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: fizyk/actions-reuse/.github/actions/[email protected]
with:
python-version: "3.12"
python-version: "3.13"
command: towncrier check --compare-with origin/main
fetch-depth: 0
2 changes: 1 addition & 1 deletion .github/workflows/single-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
python-versions:
description: 'Supported python versions'
default: '["3.8", "3.9", "3.10", "3.11", "3.12"]'
default: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
required: false
type: string
postgresql:
Expand Down
54 changes: 27 additions & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,81 +7,81 @@ on:
branches: [ main ]

jobs:
postgresql_17:
uses: ./.github/workflows/single-postgres.yml
with:
postgresql: 17
postgresql_16:
needs: [postgresql_17]
uses: ./.github/workflows/single-postgres.yml
with:
postgresql: 16
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
postgresql_15:
needs: [postgresql_16]
uses: ./.github/workflows/single-postgres.yml
with:
postgresql: 15
python-versions: '["3.9", "3.10", "3.11", "3.12"]'
python-versions: '["3.11", "3.12", "3.13"]'
postgresql_14:
needs: [postgresql_15]
uses: ./.github/workflows/single-postgres.yml
with:
postgresql: 14
python-versions: '["3.10", "3.11", "3.12"]'
python-versions: '["3.13"]'
postgresql_13:
needs: [postgresql_14]
uses: ./.github/workflows/single-postgres.yml
with:
postgresql: 13
python-versions: '["3.12"]'
postgresql_12:
needs: [postgresql_13]
python-versions: '["3.13"]'
macos_postgres_17:
needs: [postgresql_17]
uses: ./.github/workflows/single-postgres.yml
with:
postgresql: 12
python-versions: '["3.12"]'
postgresql: 17
os: macos-latest
python-versions: '["3.11", "3.12", "3.13"]'
macos_postgres_16:
needs: [postgresql_16]
needs: [postgresql_16, macos_postgres_17]
uses: ./.github/workflows/single-postgres.yml
with:
postgresql: 16
os: macos-latest
python-versions: '["3.10", "3.11", "3.12"]'
python-versions: '["3.11", "3.12", "3.13"]'
macos_postgres_15:
needs: [postgresql_15, macos_postgres_16]
uses: ./.github/workflows/single-postgres.yml
with:
postgresql: 15
os: macos-latest
python-versions: '["3.10", "3.11", "3.12"]'
macos_postgres_14:
needs: [postgresql_14, macos_postgres_15]
uses: ./.github/workflows/single-postgres.yml
python-versions: '["3.12", "3.13"]'
docker_postgresql_17:
needs: [postgresql_17]
uses: ./.github/workflows/dockerised-postgres.yml
with:
postgresql: 14
os: macos-latest
python-versions: '["3.11", "3.12"]'
postgresql: 17
docker_postgresql_16:
needs: [postgresql_16]
needs: [postgresql_16, docker_postgresql_17]
uses: ./.github/workflows/dockerised-postgres.yml
with:
postgresql: 16
python-versions: '["3.10", "3.11", "3.12", "3.13"]'
docker_postgresql_15:
needs: [postgresql_15, docker_postgresql_16]
needs: [postgresql_15, docker_postgresql_17]
uses: ./.github/workflows/dockerised-postgres.yml
with:
postgresql: 15
python-versions: '["3.9", "3.10", "3.11", "3.12"]'
python-versions: '["3.11", "3.12", "3.13"]'
docker_postgresql_14:
needs: [postgresql_14, docker_postgresql_15]
uses: ./.github/workflows/dockerised-postgres.yml
with:
postgresql: 14
python-versions: '["3.10", "3.11", "3.12"]'
python-versions: '["3.12", "3.13"]'
docker_postgresql_13:
needs: [postgresql_13, docker_postgresql_14]
uses: ./.github/workflows/dockerised-postgres.yml
with:
postgresql: 13
python-versions: '["3.11", "3.12"]'
docker_postgresql_12:
needs: [postgresql_12, docker_postgresql_13]
uses: ./.github/workflows/dockerised-postgres.yml
with:
postgresql: 12
python-versions: '["3.12"]'
python-versions: '["3.13"]'
1 change: 1 addition & 0 deletions newsfragments/+08bdc5f7.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add PostgreSQL 17 to CI and drop 12
1 change: 1 addition & 0 deletions newsfragments/+98311d70.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mark Python 3.13 as supported.
1 change: 1 addition & 0 deletions newsfragments/+fb6c538e.break.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stop supporting Python 3.8 as it already reached EOL
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ classifiers = [
"Operating System :: OS Independent",
"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 :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Testing",
Expand All @@ -34,7 +34,7 @@ dependencies = [
"setuptools",
"psycopg >= 3.0.0"
]
requires-python = ">= 3.8"
requires-python = ">= 3.9"

[project.urls]
"Source" = "https://github.com/ClearcodeHQ/pytest-postgresql"
Expand Down Expand Up @@ -69,7 +69,6 @@ target-version = ['py39']
include = '.*\.pyi?$'

[tool.ruff]
# Decrease the maximum line length to 79 characters.
line-length = 100
select = [
"E", # pycodestyle
Expand Down

0 comments on commit 3b7fdaa

Please sign in to comment.