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/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/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/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" 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 = [ 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",