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

docs: recommend _version.py as a nicer default #576

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

henryiii
Copy link
Contributor

@henryiii henryiii commented Jun 1, 2021

This renames the recommendation to _version.py, to avoid publishing the contents of "version.py" as externally visible API. Ideally, one should do from ._version import version as __version__ to follow common pratice; I could add that as an example if you'd like it. But, regardless, I think this is slightly nicer as a recommendation.

Closes #575.

@RonnyPfannschmidt RonnyPfannschmidt merged commit f4fb031 into pypa:main Jun 1, 2021
@RonnyPfannschmidt
Copy link
Contributor

Thanks!

matthewfeickert added a commit to scikit-hep/pyhf that referenced this pull request Jun 2, 2021
* Rename generated version file from version.py to _version.py following setuptools_scm recommendations
   - c.f. pypa/setuptools-scm#576
   - Avoids publishing the contents of "version.py" as externally visible API
* Amends PR #1450
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: recommend _version.py
2 participants