This repository was archived by the owner on Oct 27, 2026. It is now read-only.
Repository navigation
Move to pyproject metadata and uv; Dependabot security-update PRs - #106
Merged
Merged
Conversation
Declare the setuptools build backend and a PEP 621 [project] table equivalent to the former setup.py: same name, version (still read from config_resolver/version.txt), description, readme, author, license, classifiers, requires-python and dependencies, plus the py.typed package data. The built wheel contains the same files and the core metadata is unchanged apart from field representation (author/email combined, Homepage as a project URL, explicit RST content type). Co-Authored-By: Claude <noreply@anthropic.com>
Replace the Pipfile dev-packages with a PEP 735 "dev" dependency group (pylint, pytest, pytest-cov, pytest-xdist, sphinx, sphinx-rtd-theme) and commit the resulting uv.lock. The obsolete pytest-cache plugin is dropped and pytest-coverage is replaced by pytest-cov, which it only wrapped. Current dev tooling no longer supports Python 3.6, so the dev group is limited to Python >= 3.10 via [tool.uv.dependency-groups]. The package's own requires-python stays at >= 3.6. The tests import helpers from the "tests" package, which only worked while the legacy "setup.py develop" install put the project root on sys.path; set pytest's pythonpath so it no longer depends on that. Co-Authored-By: Claude <noreply@anthropic.com>
Install the locked dev environment with astral-sh/setup-uv and "uv sync --locked", and run pylint and pytest through "uv run". The fixed 3.6-3.9 matrix is replaced by the CPython versions that endoflife.date lists as supported, plus an informational job for the upcoming release. The workflow also runs on pull requests, monthly and on demand, with read-only default permissions. The package is now built and inspected on every run; the publish job uploads that build to PyPI on tag pushes with the existing API token. Co-Authored-By: Claude <noreply@anthropic.com>
Version-update PRs stay disabled (open-pull-requests-limit: 0). When a security advisory affects a locked dependency or a workflow action, Dependabot opens a single grouped PR with the fix instead of only raising an alert. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
setup.pyto the[project]table inpyproject.toml.setup.pyand thePipfileare removed. The version is still read fromconfig_resolver/version.txt.[dependency-groups]table with a committeduv.lock, and CI installs and tests with uv. The Python matrix now follows the supported CPython versions from endoflife.date (same approach as x690/t61codec), replacing a matrix of end-of-life versions on@v1actions.devgroup has a dev-onlyrequires-python >= 3.10. The package keeps>=3.6.pytest.inigetspythonpath = .. The oldsetup.py developinstall put the repo root onsys.pathimplicitly.hynek/build-and-inspect-python-package, and publish runs on tags with the existing token.open-pull-requests-limit: 0). When an advisory hits a locked dependency or a workflow action, the fix arrives as one grouped PR that CI has already run, instead of only an alert e-mail.This needs "Dependabot security updates" enabled in the repository settings.
Package impact
Compared with a build of
master: the wheel file list is identical, and the sdist only lostsetup.py. METADATA only changes how fields are written (Home-pagebecomesProject-URL: Homepage,Author/Author-emailare combined,Description-Content-Type: text/x-rstis added). Name, version, license, classifiers,Requires-PythonandRequires-Distare unchanged.twine checkpasses.Open question
The metadata says
License: MIT(and LICENSE.txt is used), but the classifier says LGPLv3. Both are kept as they were, so this PR uses the legacylicense = { text = "MIT" }form. Choosing the real license is a separate fix.Verification
uv lock --check,uv sync --locked,uv run pytest(69 passed, 1 skipped) on 3.11, 3.13 and 3.15.🤖 Generated with Claude Code