From b8241b454b50d0a23e7991582e205c2c32e508fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=B3pez=20Barr=C3=B3n?= Date: Sun, 12 Oct 2025 10:49: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 451bb6e..7fe0376 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -10,11 +10,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: Set up Graphviz @@ -26,7 +26,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 f36b45d..e5fb95a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,13 +8,14 @@ keywords = naming convention cg author_email = chris.gfz@gmail.com author = Christian López Barrón url = https://github.com/thegrill/grill-names +# Align with 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] install_requires = naming>=0.6 From 91b2be9048827958043e6d4d646f87f21647c465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=B3pez=20Barr=C3=B3n?= Date: Sun, 12 Oct 2025 10:51:26 +1100 Subject: [PATCH 2/3] Add RTD sphinx configuration key --- .readthedocs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index 3ccdbff..58e002b 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -12,3 +12,6 @@ python: path: . extra_requirements: - docs + +sphinx: + configuration: docs/source/conf.py From 0c99818d0b385f4d6d9d867310711188c3230047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=B3pez=20Barr=C3=B3n?= Date: Sun, 12 Oct 2025 11:13:49 +1100 Subject: [PATCH 3/3] update deprecated use of resources.contents --- grill/tokens/ids/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/grill/tokens/ids/__init__.py b/grill/tokens/ids/__init__.py index f5f0fab..d3572a4 100644 --- a/grill/tokens/ids/__init__.py +++ b/grill/tokens/ids/__init__.py @@ -1,3 +1,4 @@ +import sys import enum import typing import configparser @@ -23,7 +24,8 @@ def __getattr__(name): def __dir__(): + # TODO: remove args when in Python-3.12+ + args = ((__name__,) if sys.version_info < (3, 12) else tuple()) return tuple( - # how to do better? - c.split('.cfg')[0] for c in resources.contents(__name__) if c.endswith('.cfg') + cfg.stem for cfg in resources.files(*args).glob('*.cfg') )