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

Set __version__ from importlib.metadata #377

Open
WillAyd opened this issue Oct 23, 2024 · 2 comments
Open

Set __version__ from importlib.metadata #377

WillAyd opened this issue Oct 23, 2024 · 2 comments
Labels
good first issue Good for newcomers

Comments

@WillAyd
Copy link
Collaborator

WillAyd commented Oct 23, 2024

I think it would help simplify things if we set the internal version attribute to match what importlib.metadata for the package lists. That way, we don't need to keep repeating the version in a few places, and can leave it to the backend to properly manage.

For more information, see https://packaging.python.org/en/latest/discussions/single-source-version/#single-source-version

@WillAyd WillAyd added the good first issue Good for newcomers label Oct 23, 2024
@jorwoods
Copy link
Collaborator

In the past, I've had good success with versioneer to fetch version info from the git tag and reference that throughout the project. Does that seem like a workable solution for you?

@WillAyd
Copy link
Collaborator Author

WillAyd commented Oct 23, 2024

I would like to avoid versioneer and any associated tools. They work well and were designed for use with setuptools, but don't fit the paradigms that build backends like CMake or meson-Python use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants