From 5284f536d379f14478479524005f73dd24a107c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Sat, 17 Aug 2024 07:57:22 -0600 Subject: [PATCH] Support Python 3.13 (#595) Co-authored-by: J. Nick Koston --- .github/workflows/ci-cd.yml | 2 ++ CHANGES/595.packaging.rst | 1 + CONTRIBUTORS.txt | 1 + setup.cfg | 1 + tests/test_frozenlist.py | 7 ++++++- 5 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 CHANGES/595.packaging.rst diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 1b85309e..989dee55 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -165,6 +165,7 @@ jobs: strategy: matrix: pyver: + - 3.13 - 3.12 - 3.11 - >- @@ -215,6 +216,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.pyver }} + allow-prereleases: true cache: pip cache-dependency-path: requirements/*.txt - name: Install dependencies diff --git a/CHANGES/595.packaging.rst b/CHANGES/595.packaging.rst new file mode 100644 index 00000000..d7e2dd07 --- /dev/null +++ b/CHANGES/595.packaging.rst @@ -0,0 +1 @@ +Declared Python 3.13 supported officially in the distribution package metadata. diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index caf7b7a5..0abae2ea 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -1,6 +1,7 @@ - Contributors - ---------------- Andrew Svetlov +Edgar Ramírez-Mondragón Marcin Konowalczyk Martijn Pieters Pau Freixes diff --git a/setup.cfg b/setup.cfg index b83dfda9..65238324 100644 --- a/setup.cfg +++ b/setup.cfg @@ -39,6 +39,7 @@ classifiers = 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/tests/test_frozenlist.py b/tests/test_frozenlist.py index c0d91b5d..f7429ee6 100644 --- a/tests/test_frozenlist.py +++ b/tests/test_frozenlist.py @@ -11,7 +11,12 @@ class FrozenListMixin: FrozenList = NotImplemented - SKIP_METHODS = {"__abstractmethods__", "__slots__"} + SKIP_METHODS = { + "__abstractmethods__", + "__slots__", + "__static_attributes__", + "__firstlineno__", + } def test___class_getitem__(self) -> None: assert self.FrozenList[str] is not None