Skip to content
This repository was archived by the owner on Oct 27, 2026. It is now read-only.

Move to pyproject metadata and uv; Dependabot security-update PRs - #106

Merged
exhuma merged 4 commits into
masterfrom
chore/dependabot-uv-lock
Oct 26, 2026
Merged

exhuma merged 4 commits into
masterfrom
chore/dependabot-uv-lock

Conversation

@exhuma

@exhuma exhuma commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Package metadata moves from setup.py to the [project] table in pyproject.toml. setup.py and the Pipfile are removed. The version is still read from config_resolver/version.txt.
  • Development tooling moves from extras to a PEP 735 [dependency-groups] table with a committed uv.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 @v1 actions.
  • The dev group has a dev-only requires-python >= 3.10. The package keeps >=3.6.
  • pytest.ini gets pythonpath = .. The old setup.py develop install put the repo root on sys.path implicitly.
  • CI now also runs on pull requests and monthly. The build uses hynek/build-and-inspect-python-package, and publish runs on tags with the existing token.
  • Dependabot is set to open security-update PRs only. Version updates stay off (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 lost setup.py. METADATA only changes how fields are written (Home-page becomes Project-URL: Homepage, Author/Author-email are combined, Description-Content-Type: text/x-rst is added). Name, version, license, classifiers, Requires-Python and Requires-Dist are unchanged. twine check passes.

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 legacy license = { 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

exhuma and others added 4 commits October 26, 2026 08:11
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>
@exhuma exhuma self-assigned this Oct 26, 2026
@exhuma
exhuma merged commit 3ee7189 into master Oct 26, 2026
18 checks passed
@exhuma
exhuma deleted the chore/dependabot-uv-lock branch October 26, 2026 08:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant