Modernize python package setup#331
Open
Alicipy wants to merge 8 commits into
Open
Conversation
Lets any packaging tool read the metadata, not just Poetry. Signed-off-by: Stefan Kraus <[email protected]>
[dependency-groups] is the standard table for these now Signed-off-by: Stefan Kraus <[email protected]>
Brings the remaining setup.py fields (readme, classifiers, urls, author email) into [project] so it can be deleted. Signed-off-by: Stefan Kraus <[email protected]>
hatchling is the PyPA-maintained build backend; building a wheel no longer needs Poetry installed. Poetry can stay for the workflow. Signed-off-by: Stefan Kraus <[email protected]>
All fields were moved to [project], so we can safely remove it. Signed-off-by: Stefan Kraus <[email protected]>
Its entries referenced top-level dirs that don't exist; the actual files live under pytm/ and hatchling now picks them up. Signed-off-by: Stefan Kraus <[email protected]>
pyproject.toml should be only source for requirements, so they don't get out of sync. Signed-off-by: Stefan Kraus <[email protected]>
Probably missed from a previous migration, most used repo lives at OWASP/pytm now. Signed-off-by: Stefan Kraus <[email protected]>
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.
While starting with pytm, I saw a few things regarding package management that could use improvement, especially as the Python folks use pure pip or uv currently, and maybe wondering why the commands don't work.
This PR includes migration to the default pyproject.toml keys which poetry in version 2 also understands, so nothing breaks. As pip can handle these as well, we can remove a few other files which existed for compatibility reasons (?) as well.