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 6 replies

Comment options

You must be logged in to vote
6 replies
@nschloe
Comment options

@abravalheri
Comment options

@nschloe
Comment options

@abravalheri
Comment options

@CDWimmer
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
3 participants