From 9fa06a20db6925b68136f78db9ecc593a0306f82 Mon Sep 17 00:00:00 2001 From: Antti Soininen Date: Wed, 8 Jan 2025 12:49:08 +0200 Subject: [PATCH] Remove Python version upper limit psycopg2 binaries should now be available for Python 3.13 Re spine-tools/Spine-Toolbox#2986 --- .github/workflows/run_unit_tests.yml | 13 ++++++------- CHANGELOG.md | 2 ++ pyproject.toml | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/run_unit_tests.yml b/.github/workflows/run_unit_tests.yml index 68108117..fc879644 100644 --- a/.github/workflows/run_unit_tests.yml +++ b/.github/workflows/run_unit_tests.yml @@ -2,7 +2,6 @@ name: Unit tests -# Run workflow on every push on: push: paths: @@ -17,8 +16,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-22.04, windows-latest] - python-version: ["3.9", "3.10", "3.11", "3.12"] + os: [ubuntu-latest, windows-latest] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 with: @@ -61,7 +60,7 @@ jobs: name: Toolbox unit tests uses: spine-tools/Spine-Toolbox/.github/workflows/unit_tests.yml@master with: - host-os: ubuntu-22.04 + host-os: ubuntu-latest python-version: 3.9 repository: spine-tools/Spine-Toolbox coverage: false @@ -71,7 +70,7 @@ jobs: name: Toolbox execution tests uses: spine-tools/Spine-Toolbox/.github/workflows/execution_tests.yml@master with: - host-os: ubuntu-22.04 + host-os: ubuntu-latest python-version: 3.9 repository: spine-tools/Spine-Toolbox post-installation-command: python -m pip install git+${{ github.server_url }}/${{ github.repository }}.git@${{ github.ref_name }} @@ -80,9 +79,9 @@ jobs: name: SpineInterface.jl test uses: spine-tools/SpineInterface.jl/.github/workflows/Test.yml@master with: - host-os: ubuntu-22.04 + host-os: ubuntu-latest julia-version: "1" - python-version: "3.12" + python-version: "3.13" repository: spine-tools/SpineInterface.jl spinedb-api-ref-name: ${{ github.ref_name }} coverage: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 37c55165..c0908fea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Support for Python 3.13. + ### Changed ### Deprecated diff --git a/pyproject.toml b/pyproject.toml index c339860e..f0f43ad7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ classifiers = [ "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Operating System :: OS Independent", ] -requires-python = ">=3.9, <3.13" +requires-python = ">=3.9" dependencies = [ # v1.4 does not pass tests "SQLAlchemy >=1.3, <1.4", @@ -25,7 +25,7 @@ dependencies = [ "ijson >=3.1.4", "chardet >=4.0.0", "PyMySQL >=1.0.2", - "psycopg2", + "psycopg2-binary", ] [project.urls]