From 0688aeab36b05e53cd7633279c94fe69cb8802d1 Mon Sep 17 00:00:00 2001 From: Vadim Laletin Date: Sat, 3 Oct 2026 11:46:05 +0200 Subject: [PATCH 1/3] Drop Python 3.9 and 3.10, both end of life --- .github/workflows/build.yaml | 2 -- README.md | 4 ++-- pyproject.toml | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 27767c7..08429a5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,8 +10,6 @@ jobs: strategy: matrix: include: - - python-version: "3.9" - - python-version: "3.10" - python-version: "3.11" - python-version: "3.12" diff --git a/README.md b/README.md index 64885af..53363be 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ [![build status](https://github.com/Aidbox/aidbox-python-sdk/actions/workflows/build.yaml/badge.svg)](https://github.com/Aidbox/aidbox-python-sdk/actions/workflows/build.yaml) [![pypi](https://img.shields.io/pypi/v/aidbox-python-sdk.svg)](https://pypi.org/project/aidbox-python-sdk/) -[![Supported Python version](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/release/python-390/) +[![Supported Python version](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/release/python-3110/) # aidbox-python-sdk -1. Create a python 3.9+ environment `pyenv ` +1. Create a python 3.11+ environment `pyenv ` 2. Set env variables and activate virtual environment `source activate_settings.sh` 2. Install the required packages with `pipenv install --dev` 3. Make sure the app's settings are configured correctly (see `activate_settings.sh` and `aidbox_python_sdk/settings.py`). You can also diff --git a/pyproject.toml b/pyproject.toml index 6c4420e..d8064df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,14 +76,12 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules", ] -requires-python = ">=3.9" +requires-python = ">=3.11" [project.optional-dependencies] test = [ From 228877c24789934e5e915d46a2970f44a020e3bd Mon Sep 17 00:00:00 2001 From: Vadim Laletin Date: Sat, 3 Oct 2026 11:46:05 +0200 Subject: [PATCH 2/3] Give the subscription test's Appointment a participant actor Aidbox evaluates the app-1 invariant: a participant SHALL carry a type or an actor. --- tests/test_sdk.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_sdk.py b/tests/test_sdk.py index 5b70b46..0174812 100644 --- a/tests/test_sdk.py +++ b/tests/test_sdk.py @@ -70,11 +70,13 @@ async def test_appointment_sub(sdk, aidbox_client, safe_db): f.set_result("") appointment_sub.return_value = f was_appointment_sub_triggered = sdk.was_subscription_triggered("Appointment") + patient = aidbox_client.resource("Patient") + await patient.save() resource = aidbox_client.resource( "Appointment", **{ "status": "proposed", - "participant": [{"status": "accepted"}], + "participant": [{"status": "accepted", "actor": patient}], }, ) await resource.save() @@ -84,7 +86,9 @@ async def test_appointment_sub(sdk, aidbox_client, safe_db): expected = { "resource": { "status": "proposed", - "participant": [{"status": "accepted"}], + "participant": [ + {"status": "accepted", "actor": {"id": patient.id, "resourceType": "Patient"}} + ], "resourceType": "Appointment", }, "action": "create", From 94c5ac72dc5c94c027869d4e0024326314e961af Mon Sep 17 00:00:00 2001 From: Vadim Laletin Date: Sat, 3 Oct 2026 11:46:05 +0200 Subject: [PATCH 3/3] Bump to 0.3.0 --- CHANGELOG.md | 5 +++++ aidbox_python_sdk/__init__.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 888223e..bb392a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.3.0 + +- Drop Python 3.9 and 3.10, both end of life + + ## 0.2.2 - Revert BaseFHIRError exceptions from fhir-py in operation handlers diff --git a/aidbox_python_sdk/__init__.py b/aidbox_python_sdk/__init__.py index e664b4f..731a807 100644 --- a/aidbox_python_sdk/__init__.py +++ b/aidbox_python_sdk/__init__.py @@ -1,5 +1,5 @@ __title__ = "aidbox-python-sdk" -__version__ = "0.2.3" +__version__ = "0.3.0" __author__ = "beda.software" __license__ = "None" __copyright__ = "Copyright 2026 beda.software"