modernize-python-metadata
Improve a Python package's metadata and move it into a PEP 621 [project] table in pyproject.toml — filling in what's missing along the way. Covers the readme field (dropping the open().read() hack), SPDX license expressions, trove classifiers, well-known project URLs, authors/keywords/requires-python, dependency version constraints (avoid upper caps), PEP 735 dependency groups vs extras, and the build-system table. Keeps the existing build backend (setuptools is fine). Includes a Poetry → PEP 621 migration lens (the [tool.poetry] field map and caret/tilde → floor translation; PDM too). Use when asked to clean up packaging metadata, move metadata out of setup.py/setup.cfg, migrate a Poetry (or PDM) project to [project]/PEP 621, or improve a project's PyPI page.
Pinned to revision 0c51c24122b3, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/modernize-python-metadata/SKILL.md
- skills/modernize-python-metadata/AGENTS.md
- skills/modernize-python-metadata/README.md
- skills/modernize-python-metadata/reference/dependencies.md
- skills/modernize-python-metadata/reference/field-guide.md
- skills/modernize-python-metadata/reference/from-poetry.md
Every link opens the file at its source, pinned to the revision this page describes.