Repository navigation
refactor: migrate packaging metadata from setup.py to pyproject.toml - #25
Merged
Merged
Conversation
Move the metadata from setup.py to the [project] table in pyproject.toml (PEP 621), and add a complete [project.urls] section (Homepage, Repository, Issues, Security). setup.py is removed; the version still comes from git tags via setuptools_scm. The Repository URL also fixes the old DIRACGrid/cfg name (now diraccfg).
fstagni
force-pushed
the
add-project-urls
branch
from
November 24, 2026 16:02
81e626f to
fcaf15f
Compare
1 of 14 tasks
aldbr
approved these changes
Nov 25, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The packaging metadata lived in
setup.py. This PR moves everything to the PEP 621[project]table inpyproject.toml:testingextra,diraccfgconsole scriptsetuptools_scm(dynamic), as before[tool.setuptools.packages.find][project.urls]section: Homepage (https://diracgrid.org), Repository, Issues, Security — the Repository URL also updates the oldDIRACGrid/cfgname (the repo is nowDIRACGrid/diraccfg)setup.pyis removed (setup.cfgstays, it only holds pytest/flake8 tool config); deprecatedtest_suiteandzip_safeare droppedsetuptoolsrequirement bumped to>=61(needed for PEP 621 support)Verified with
python -m build: wheel contents, entry points and metadata are equivalent to before.