Skip to content

dynamic = ["version"] in new pyproject.toml build #3190

Answered by abravalheri
nschloe asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @nschloe thank you very much for trying it out.

To get the version from an attribute you can use:

[tool.setuptools.dynamic]
version = {attr = "mymodule.__version__"}

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@abravalheri
Comment options

@nschloe
Comment options

@abravalheri
Comment options

@CDWimmer
Comment options

@zahlman
Comment options

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