Skip to content

migrate to pyproject.toml and drop setuptools#385

Open
branchv wants to merge 2 commits intoScony:masterfrom
branchv:pyproject
Open

migrate to pyproject.toml and drop setuptools#385
branchv wants to merge 2 commits intoScony:masterfrom
branchv:pyproject

Conversation

@branchv
Copy link
Copy Markdown

@branchv branchv commented Jun 29, 2025

This migrates to pyproject.toml, the modern replacement for setup.py (and setup.cfg, MANIFEST.in, etc) favoring static metadata. I used flit_core for the build backend since it's very simple and doesn't require any custom config.

Here's how I checked the difference between the two builds:

$ uv build -o /tmp/before
$ git switch pyproject && uv build -o /tmp/after
$ uvx diffoscope --exclude-directory-metadata=recursive /tmp/before/*.tar.gz /tmp/after/*.tar.gz

Also, drop setuptools from dependencies since it's unused after #384

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.

1 participant