Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all python metadata to pyproject.toml #177

Merged
merged 1 commit into from
Oct 4, 2023
Merged

Conversation

WardBrian
Copy link
Collaborator

See PEP 621. This consolidates the information and removes the need for us to run any code at install time to determine our own version.

Copy link
Owner

@roualdes roualdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More simplifying. Love it.

Just one question for my understanding, but otherwise looks good to me. Thanks!

dynamic = ["version"]

[tool.setuptools.dynamic]
version = { attr = "bridgestan.__version.__version__" }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this line is eval()ed or something like it at install?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a limited way. It can either read a module attribute (like this) or a text file: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata

@WardBrian WardBrian merged commit 7f26920 into main Oct 4, 2023
@WardBrian WardBrian deleted the python/setup-metadata branch October 21, 2023 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants