From 6cd3e4553b79125a4e3f56a7ef2cb15a7f36f29d Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Wed, 9 Oct 2024 10:08:55 +0300 Subject: [PATCH 1/2] Add Python 3.13 support --- .github/workflows/build.yml | 3 ++- CHANGES.rst | 2 +- appveyor.yml | 1 + setup.py | 1 + tox.ini | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c80c94c..2199bdb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,8 @@ jobs: - "3.10" - "3.11" - "3.12" - - "pypy-3.7" + - "3.13" + - "pypy3.10" vcs: - bzr - git diff --git a/CHANGES.rst b/CHANGES.rst index 50ae609..31e05dd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,7 @@ Changelog 0.50 (unreleased) ----------------- -- Add Python 3.12 support. +- Add Python 3.12 and 3.13 support. 0.49 (2022-12-05) diff --git a/appveyor.yml b/appveyor.yml index 3ac23e8..a86dee3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,6 +10,7 @@ environment: - PYTHON: "C:\\Python310" - PYTHON: "C:\\Python311" - PYTHON: "C:\\Python312" + - PYTHON: "C:\\Python313" init: - "echo %PYTHON%" diff --git a/setup.py b/setup.py index 9dd35b4..33f3402 100755 --- a/setup.py +++ b/setup.py @@ -50,6 +50,7 @@ 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', ], diff --git a/tox.ini b/tox.ini index a94ace2..b5ba500 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py37,py38,py39,py310,py311,py312,pypy3,flake8 + py37,py38,py39,py310,py311,py312,py313,pypy3,flake8 [testenv] passenv = From 457a08718cbc2a61e9d568c0e2bd3d9b5f2522e7 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Wed, 9 Oct 2024 10:48:20 +0300 Subject: [PATCH 2/2] Add 'make update-github-branch-protection-rules' This is pretty terrible, and it uses the deprecated 'contexts' instead of the 'checks', but the API has an endpoint for setting just contexts, and it doesn't have an endpoint for setting checks. --- Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/Makefile b/Makefile index 9dd488d..a0862f0 100755 --- a/Makefile +++ b/Makefile @@ -42,6 +42,54 @@ isort: ##: check for incorrect import ordering mypy: ##: check for type errors tox -e mypy +##: GitHub maintenance + +.PHONY: update-github-branch-protection-rules + +update-github-branch-protection-rules: ##: update GitHub branch protection rules + gh api -X PUT -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + /repos/mgedmin/check-manifest/branches/master/protection/required_status_checks/contexts \ + -f "contexts[]=check-manifest" \ + -f "contexts[]=check-python-versions" \ + -f "contexts[]=flake8" \ + -f "contexts[]=isort" \ + -f "contexts[]=mypy" \ + -f "contexts[]=Python 3.7, bzr" \ + -f "contexts[]=Python 3.7, git" \ + -f "contexts[]=Python 3.7, hg" \ + -f "contexts[]=Python 3.7, svn" \ + -f "contexts[]=Python 3.8, bzr" \ + -f "contexts[]=Python 3.8, git" \ + -f "contexts[]=Python 3.8, hg" \ + -f "contexts[]=Python 3.8, svn" \ + -f "contexts[]=Python 3.9, bzr" \ + -f "contexts[]=Python 3.9, git" \ + -f "contexts[]=Python 3.9, hg" \ + -f "contexts[]=Python 3.9, svn" \ + -f "contexts[]=Python 3.10, bzr" \ + -f "contexts[]=Python 3.10, git" \ + -f "contexts[]=Python 3.10, hg" \ + -f "contexts[]=Python 3.10, svn" \ + -f "contexts[]=Python 3.11, bzr" \ + -f "contexts[]=Python 3.11, git" \ + -f "contexts[]=Python 3.11, hg" \ + -f "contexts[]=Python 3.11, svn" \ + -f "contexts[]=Python 3.12, bzr" \ + -f "contexts[]=Python 3.12, git" \ + -f "contexts[]=Python 3.12, hg" \ + -f "contexts[]=Python 3.12, svn" \ + -f "contexts[]=Python 3.13, bzr" \ + -f "contexts[]=Python 3.13, git" \ + -f "contexts[]=Python 3.13, hg" \ + -f "contexts[]=Python 3.13, svn" \ + -f "contexts[]=Python pypy3.10, bzr" \ + -f "contexts[]=Python pypy3.10, git" \ + -f "contexts[]=Python pypy3.10, hg" \ + -f "contexts[]=Python pypy3.10, svn" \ + -f "contexts[]=continuous-integration/appveyor/branch" \ + -f "contexts[]=continuous-integration/appveyor/pr" + ##: Releasing .PHONY: distcheck