From 45cf545c57e125904c3db225c9e3fee513d83687 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 14 Oct 2024 09:02:27 +0800 Subject: [PATCH 1/3] Drop 3.8, add 3.13. --- .github/workflows/ci.yml | 5 +++-- pyproject.toml | 8 +++----- tox.ini | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 349a743..3542ecd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,10 +57,10 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] include: - experimental: false - # - python-version: "3.13-dev" + # - python-version: "3.14" # experimental: true steps: @@ -73,6 +73,7 @@ jobs: uses: actions/setup-python@v5.2.0 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Get packages uses: actions/download-artifact@v4.1.8 diff --git a/pyproject.toml b/pyproject.toml index c3e753c..4bf3631 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ dynamic = ["version"] name = "toga-chart" description = "A Toga matplotlib backend." readme = "README.rst" -requires-python = ">= 3.8" +requires-python = ">= 3.9" license.text = "New BSD" authors = [ {name="Russell Keith-Magee", email="russell@keith-magee.com"}, @@ -28,11 +28,11 @@ classifiers = [ "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development", "Topic :: Software Development :: User Interfaces", @@ -42,9 +42,7 @@ classifiers = [ # Extras used by developers *of* briefcase are pinned to specific versions to # ensure environment consistency. dev = [ - # Pre-commit 3.6.0 deprecated support for Python 3.8 - "pre-commit == 3.5.0 ; python_version < '3.9'", - "pre-commit == 4.0.1 ; python_version >= '3.9'", + "pre-commit == 4.0.1", "pytest == 8.3.3", "setuptools_scm == 8.1.0", "tox == 4.21.2", diff --git a/tox.ini b/tox.ini index 85e8548..a5c6507 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ extend-ignore = E203, [tox] -envlist = towncrier-check,docs{,-lint,-all},package,py{38,39,310,311,312} +envlist = towncrier-check,docs{,-lint,-all},package,py{39,310,311,312,313} skip_missing_interpreters = true [testenv] From c981f134627f12b6eb7fc3bfc75591c942b78f1e Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 14 Oct 2024 09:03:21 +0800 Subject: [PATCH 2/3] Bump pyupgrade version. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4bf3639..ee1a0f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: rev: v3.18.0 hooks: - id: pyupgrade - args: [--py38-plus] + args: [--py39-plus] - repo: https://github.com/psf/black-pre-commit-mirror rev: 24.10.0 hooks: From 207331fe48b251807af1f27378bd42c686a0affa Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 14 Oct 2024 09:05:00 +0800 Subject: [PATCH 3/3] Add changenotes. --- changes/183.feature.rst | 1 + changes/183.removal.rst | 1 + 2 files changed, 2 insertions(+) create mode 100644 changes/183.feature.rst create mode 100644 changes/183.removal.rst diff --git a/changes/183.feature.rst b/changes/183.feature.rst new file mode 100644 index 0000000..4ddcec9 --- /dev/null +++ b/changes/183.feature.rst @@ -0,0 +1 @@ +Support for Python 3.13 was added. diff --git a/changes/183.removal.rst b/changes/183.removal.rst new file mode 100644 index 0000000..e61e69e --- /dev/null +++ b/changes/183.removal.rst @@ -0,0 +1 @@ +Support for Python 3.8 was dropped.