From d8775f33d80e19d2576333de9396fc9b1569380e Mon Sep 17 00:00:00 2001 From: Jonathan Perron Date: Sun, 22 Feb 2026 17:39:06 +0100 Subject: [PATCH] BREAKING: drop support of python 3.10 and 3.11 Python 3.12 is the lowest supported version --- .github/workflows/pre-commit_ci.yaml | 4 ++-- .github/workflows/pre-release.yaml | 2 +- .github/workflows/release.yaml | 2 +- .github/workflows/tests.yaml | 4 ++-- CHANGELOG.md | 27 +++++++++++++++++++++++++++ README.md | 4 ++-- pyproject.toml | 7 +++---- 7 files changed, 38 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pre-commit_ci.yaml b/.github/workflows/pre-commit_ci.yaml index 4ff2b78..a147b9a 100644 --- a/.github/workflows/pre-commit_ci.yaml +++ b/.github/workflows/pre-commit_ci.yaml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python 3.12 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.12' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 63ff109..85b7f93 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -18,7 +18,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.20" - name: Build release distributions run: | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 94e6daa..6646f71 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,7 +18,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Build release distributions run: | diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 16e2f05..e147913 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -11,10 +11,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python 3.12 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.12' - name: Install dependencies and project run: | python -m pip install --upgrade pip diff --git a/CHANGELOG.md b/CHANGELOG.md index 976e3d6..f5dfbfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.0.0] - 2026-02-22 + +### ⚠️ BREAKING CHANGES + +This release drops support for Python 3.10 and 3.11. The minimum supported Python version is now 3.12. + +**Migration Guide:** + +To upgrade to v3.0: + +1. Ensure you are using Python 3.12 or higher: + ```bash + python --version # Should be 3.12 or higher + ``` + +2. Update your project's Python version requirements if needed + +3. Test your application with Python 3.12+ to ensure compatibility + +### Changed + +- **Python Version Support**: Dropped support for Python 3.10 and 3.11 + - Minimum supported version is now Python 3.12 + - This allows the project to leverage newer Python features and improvements + +--- + ## [2.0.0] - 2025-11-11 ### ⚠️ BREAKING CHANGES diff --git a/README.md b/README.md index fdbf792..193d78d 100644 --- a/README.md +++ b/README.md @@ -145,8 +145,8 @@ Few tips on how to use the Navitia APIs are available [here](docs/few_tips.md). ##  Dependencies -* Python >= 3.10 -* requests>=2.31 +* Python >= 3.12 +* requests>=2.32 Additional dependencies are described in the [pyproject.toml file](pyproject.toml). diff --git a/pyproject.toml b/pyproject.toml index 138e5ff..c52c332 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,13 +12,12 @@ description = "Python library to use with Navitia APIs" classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", ] -version = "2.0.2" -requires-python = ">=3.10" +version = "3.0.0" +requires-python = ">=3.12" dependencies = [ "requests>=2.32, < 3", ]