Skip to content

refactor: migrate packaging metadata from setup.py to pyproject.toml - #25

Merged
aldbr merged 1 commit into
DIRACGrid:masterfrom
fstagni:add-project-urls
Nov 25, 2026
Merged

aldbr merged 1 commit into
DIRACGrid:masterfrom
fstagni:add-project-urls

Conversation

@fstagni

@fstagni fstagni commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

The packaging metadata lived in setup.py. This PR moves everything to the PEP 621 [project] table in pyproject.toml:

  • name, description, readme, requires-python, license, author, classifiers
  • testing extra, diraccfg console script
  • version via setuptools_scm (dynamic), as before
  • src-layout moved to [tool.setuptools.packages.find]
  • adds a complete [project.urls] section: Homepage (https://diracgrid.org), Repository, Issues, Security — the Repository URL also updates the old DIRACGrid/cfg name (the repo is now DIRACGrid/diraccfg)
  • setup.py is removed (setup.cfg stays, it only holds pytest/flake8 tool config); deprecated test_suite and zip_safe are dropped
  • build-system setuptools requirement bumped to >=61 (needed for PEP 621 support)

Verified with python -m build: wheel contents, entry points and metadata are equivalent to before.

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).
@aldbr
aldbr merged commit c7b81ef into DIRACGrid:master Nov 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants