From f5210a6f2465297e32224b25fa4e4a8c30357000 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Fri, 28 Feb 2025 18:07:44 +0200 Subject: [PATCH 1/2] Add support for Python 3.13 --- .github/workflows/integration.yml | 12 ++++++------ .github/workflows/release.yml | 6 +++--- README.rst | 2 +- tox.ini | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 1014fd6..f4d8b31 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -20,11 +20,11 @@ jobs: check: [rufflint, ruffformatcheck, doc8, docs, rstcheck, build-check] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.x' - name: Install tox run: | pip install --upgrade pip @@ -40,12 +40,12 @@ jobs: max-parallel: 6 matrix: os: [ubuntu-latest] - python-version: [3.8, 3.9, '3.10', 3.11, 3.12] + python-version: [3.8, 3.9, '3.10', 3.11, 3.12, 3.13] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} allow-prereleases: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e91f896..407ad27 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,12 +13,12 @@ jobs: id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.x' - name: Install build run: pip install build diff --git a/README.rst b/README.rst index ba74b8c..3105edb 100644 --- a/README.rst +++ b/README.rst @@ -112,7 +112,7 @@ Features - Feature-rich (e.g. get the five largest keys in a sorted dict: d.keys()[-5:]) - Pragmatic design (e.g. SortedSet is a Python set with a SortedList index) - Developed on Python 3.10 -- Tested with CPython 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 and PyPy3 +- Tested with CPython 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 and PyPy3 - Tested on Linux, Mac OSX, and Windows .. image:: https://github.com/grantjenks/python-sortedcontainers/workflows/integration/badge.svg diff --git a/tox.ini b/tox.ini index 35f51b2..b779751 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=rufflint,ruffformatcheck,doc8,docs,rstcheck,build-check,py{38,39,310,311,312,py3} +envlist=rufflint,ruffformatcheck,doc8,docs,rstcheck,build-check,py{38,39,310,311,312,313,py3} skip_missing_interpreters=True [testenv] From 836a0e13569ba2d28a5132853076bed024f5c7cd Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Fri, 28 Feb 2025 18:09:06 +0200 Subject: [PATCH 2/2] Fix lint --- docs/conf.py | 3 +-- src/sortedcontainers/sorteddict.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 54598bf..f486b24 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -176,8 +176,7 @@ 'SortedContainers Documentation', author, 'SortedContainers', - 'Python sorted collections library:' - ' sorted list, sorted dict, and sorted set.', + 'Python sorted collections library: sorted list, sorted dict, and sorted set.', 'Miscellaneous', ), ] diff --git a/src/sortedcontainers/sorteddict.py b/src/sortedcontainers/sorteddict.py index 273c9ce..0be576e 100644 --- a/src/sortedcontainers/sorteddict.py +++ b/src/sortedcontainers/sorteddict.py @@ -191,7 +191,7 @@ def iloc(self): return self._iloc except AttributeError: warnings.warn( - 'sorted_dict.iloc is deprecated.' ' Use SortedDict.keys() instead.', + 'sorted_dict.iloc is deprecated. Use SortedDict.keys() instead.', DeprecationWarning, stacklevel=2, )