From 0a81ac8655a0cb8eb746061e121a22ab5dfaf8ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andy=20M=C3=A9ry?= Date: Mon, 14 Apr 2025 14:46:08 +0200 Subject: [PATCH 1/2] chore: add compatibility with Python 3.13 --- .github/workflows/pytest.yml | 4 ++-- .github/workflows/python-publish.yml | 8 ++++---- .pre-commit-config.yaml | 2 +- CHANGELOG.md | 6 ++++++ pyproject.toml | 5 +++-- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 96b7f1f..2f02e5e 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -14,9 +14,9 @@ jobs: test: strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 77f1de3..648f268 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -10,21 +10,21 @@ permissions: jobs: deploy: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - - name: Set up python 3.12 + - name: Set up python 3.13 id: setup-python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Set up Poetry uses: ./.github/actions/setup-poetry with: groups: main - python-version: "3.12" + python-version: "3.13" - name: Publish package run: poetry publish --build diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 07d4c27..d41bd86 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ ci: # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks default_language_version: - python: python3.12 + python: python3.13 repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dac253..70ac1fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. +## [0.2.3] - 2025-04-14 + +### Changed + +- Add compatibility with Python 3.13 + ## [0.2.2] - 2024-11-27 ### Fixed diff --git a/pyproject.toml b/pyproject.toml index 3e8b29e..8ee3ab1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scaleway-functions-python" -version = "0.2.2" +version = "0.2.3" description = "Utilities for testing your Python handlers for Scaleway Serverless Functions." authors = ["Scaleway Serverless Team "] @@ -26,12 +26,13 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] include = ["CHANGELOG.md"] [tool.poetry.dependencies] -python = ">=3.9, <3.13" +python = ">=3.9, <3.14" flask = ">=2.2.2,<4.0.0" typing-extensions = { version = "^4.4.0", python = "<3.11" } From b0492dea6883cfd6b105f97979928b21a094acae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andy=20M=C3=A9ry?= Date: Mon, 14 Apr 2025 14:54:00 +0200 Subject: [PATCH 2/2] fix: lock deps --- poetry.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poetry.lock b/poetry.lock index 30e5f40..baec260 100644 --- a/poetry.lock +++ b/poetry.lock @@ -332,7 +332,7 @@ description = "Read metadata from Python packages" optional = false python-versions = ">=3.8" groups = ["main"] -markers = "python_version < \"3.10\"" +markers = "python_version == \"3.9\"" files = [ {file = "importlib_metadata-8.5.0-py3-none-any.whl", hash = "sha256:45e54197d28b7a7f1559e60b95e7c567032b602131fbd588f1497f47880aa68b"}, {file = "importlib_metadata-8.5.0.tar.gz", hash = "sha256:71522656f0abace1d072b9e5481a48f07c138e00f079c38c8f883823f9c26bd7"}, @@ -850,7 +850,7 @@ description = "Backport of pathlib-compatible object wrapper for zip files" optional = false python-versions = ">=3.9" groups = ["main"] -markers = "python_version < \"3.10\"" +markers = "python_version == \"3.9\"" files = [ {file = "zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931"}, {file = "zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4"}, @@ -866,5 +866,5 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.1" -python-versions = ">=3.9, <3.13" -content-hash = "bce96ceca96df4203abf0fb256dd45b1ec1e3b2df2c229eba6f89017f0783061" +python-versions = ">=3.9, <3.14" +content-hash = "a4e1f1ade585009122006199e23db766b44e91b2a284bcf308506487bbaf611f"