From b4ad1261b68145d759e0b8ca651b66a958795da3 Mon Sep 17 00:00:00 2001 From: Peter Boers Date: Tue, 7 Jan 2025 05:18:45 -0500 Subject: [PATCH] Add python 3.13 support and postgres 17 support (#789) --- .bumpversion.cfg | 2 +- .github/workflows/run-linting-tests.yml | 2 +- .github/workflows/run-unit-tests.yml | 4 ++-- orchestrator/__init__.py | 2 +- orchestrator/graphql/resolvers/subscription.py | 2 +- pyproject.toml | 9 +++++---- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 314ddd8c8..85109c821 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.9.0 +current_version = 2.9.1rc1 commit = False tag = False parse = (?P\d+)\.(?P\d+)\.(?P\d+)(rc(?P\d+))? diff --git a/.github/workflows/run-linting-tests.yml b/.github/workflows/run-linting-tests.yml index fcf45b2f7..950f549e7 100644 --- a/.github/workflows/run-linting-tests.yml +++ b/.github/workflows/run-linting-tests.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.11', '3.12'] + python-version: ['3.11', '3.12', '3.13'] fail-fast: false steps: diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index d27a4faee..9b9f03ee4 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -9,8 +9,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.11', '3.12'] - postgres-version: ['14', '15', '16'] + python-version: ['3.11', '3.12', '3.13'] + postgres-version: ['15', '16', '17'] fail-fast: false container: python:${{ matrix.python-version }}-slim services: diff --git a/orchestrator/__init__.py b/orchestrator/__init__.py index 2619b5340..69ffb0275 100644 --- a/orchestrator/__init__.py +++ b/orchestrator/__init__.py @@ -13,7 +13,7 @@ """This is the orchestrator workflow engine.""" -__version__ = "2.9.0" +__version__ = "2.9.1rc1" from orchestrator.app import OrchestratorCore from orchestrator.settings import app_settings diff --git a/orchestrator/graphql/resolvers/subscription.py b/orchestrator/graphql/resolvers/subscription.py index 0ff07f1ce..14bad60ee 100644 --- a/orchestrator/graphql/resolvers/subscription.py +++ b/orchestrator/graphql/resolvers/subscription.py @@ -147,7 +147,7 @@ async def resolve_subscriptions( graphql_subscriptions: list[SubscriptionInterface] = [] if is_querying_page_data(info): subscriptions = db.session.scalars(stmt).all() - graphql_subscriptions = list(await gather_nice((format_subscription(info, p) for p in subscriptions))) + graphql_subscriptions = list(await gather_nice((format_subscription(info, p) for p in subscriptions))) # type: ignore logger.info("Resolve subscriptions", filter_by=filter_by, total=total) return to_graphql_result_page( diff --git a/pyproject.toml b/pyproject.toml index 0e210860f..a6855bee0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ classifiers = [ "Intended Audience :: Telecommunications Industry", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.11", "Topic :: Internet :: WWW/HTTP :: HTTP Servers", @@ -60,15 +61,15 @@ dependencies = [ "structlog", "typer==0.12.5", "uvicorn[standard]~=0.32.0", - "nwa-stdlib~=1.8.3", - "oauth2-lib~=2.3.0", + "nwa-stdlib~=1.9.0", + "oauth2-lib~=2.4.0", "tabulate==0.9.0", "strawberry-graphql>=0.246.2", - "pydantic-forms~=1.1.1", + "pydantic-forms~=1.1.3", ] description-file = "README.md" -requires-python = ">=3.11,<3.13" +requires-python = ">=3.11,<3.14" [project.urls] Documentation = "https://workfloworchestrator.org/orchestrator-core/"