From e7bb726d85e58cdafb5a13d34ed0f9716903db25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=B3pez=20Barr=C3=B3n?= Date: Sun, 12 Oct 2025 10:35:40 +1100 Subject: [PATCH 1/3] Add Python-3.14 to CI --- .github/workflows/python-package.yml | 8 ++++---- setup.cfg | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 0cc4cf6..dd19826 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -9,11 +9,11 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.13", "3.13t"] + python-version: ["3.9", "3.14", "3.14t"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set up Python ${{ matrix.python-version }} - uses: Quansight-Labs/setup-python@v5 # until https://github.com/actions/setup-python/issues/771 is resolved + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install @@ -23,7 +23,7 @@ jobs: python -m pip install . - name: Test run: | - pytest --cov . + PYTHONWARNINGS=error pytest --cov --durations=10 . # https://github.com/marketplace/actions/codecov - name: Codecov Report uses: codecov/codecov-action@v4 diff --git a/setup.cfg b/setup.cfg index 8145a24..1b2d32a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,13 +8,14 @@ keywords = pprint pformat ptree pretty print tree format formatting author_email = chris.gfz@gmail.com author = Christian López Barrón url = https://github.com/chrizzFTD/printree +# Try to align to https://devguide.python.org/versions/ classifiers = - 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.14 [options] packages = find: From 27f1752659cd594a85bbf761bbc3b72ec25c37dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=B3pez=20Barr=C3=B3n?= Date: Sun, 12 Oct 2025 10:37:50 +1100 Subject: [PATCH 2/3] update raw docstring --- tests/test_printree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_printree.py b/tests/test_printree.py index 18bcc33..1154622 100644 --- a/tests/test_printree.py +++ b/tests/test_printree.py @@ -31,7 +31,7 @@ def test_flat_list(self): self.assertEqual(actual, expected) def test_ascii_with_recursion(self): - """Confirm multiline key, value and recursion build a similar tree to: + r"""Confirm multiline key, value and recursion build a similar tree to: . |-- AB From 70ed6d6c5dcea566159662ad659c7ae3a9d6e1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=B3pez=20Barr=C3=B3n?= Date: Sun, 12 Oct 2025 10:39:41 +1100 Subject: [PATCH 3/3] add rtd sphinx conf key --- .readthedocs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index 8a2798d..cd9a39f 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -10,3 +10,6 @@ python: path: . extra_requirements: - docs + +sphinx: + configuration: docs/source/conf.py