Skip to content

This is really what I need! #645

Answered by takluyver
ubaldot asked this question in Q&A
Discussion options

You must be logged in to vote

is it necessary to have version file? Can't the version be picked directly from the pyproject.toml?

Yup, you can specify version = "0.2" in pyproject.toml - if you do this, just remove version from the dynamic list in pyproject.toml. See the docs under new style metadata.

Is it possible to select in the pyproject.toml what to include and what to exclude in a distribution package?

For the sdist - the .tar.gz package - yes. See the docs under Sdist section. For wheels, Flit assumes that anything inside your Python package directory (the folder containing __init__.py) is part of your package; this bit isn't configurable.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ubaldot
Comment options

You must be logged in to vote
1 reply
@takluyver
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants