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: clarify usage of version files #1069

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ianw
Copy link

@ianw ianw commented Aug 23, 2024

I found the current discussion around version files somewhat confusing.

When you're reading the usage guide, the second point is telling you to make a version file; strongly implying you should. But in reality, you most likely do not need to bother with keeping a specific version file. Explain more clearly about the implications of this.

Under this is a section on using python -m setuptools_scm --help which seems like an orphan from the "as a cli" section; move it down there.

The runtime section starts by telling you what is strongly discouraged without explaination why. Make it clearer by giving the first example as the most supported thing, which is using standard importlib; then briefly discuss the version file from above, explaining what's in it for a standard Python template, then the strongly discouraged direct import method.

In the config doc, update to discuss importlib for consistency.

Correct some capitalization and other minor formatting bits while we're here.

I found the current discussion around version files somewhat
confusing.

When you're reading the usage guide, the second point is telling you
to make a version file; strongly implying you should.  But in reality,
you most likely do not need to bother with keeping a specific version
file.  Explain more clearly about the implications of this.

Under this is a section on using `python -m setuptools_scm --help`
which seems like an orphan from the "as a cli" section; move it down
there.

The runtime section starts by telling you what is strongly discouraged
without explaination why.  Make it clearer by giving the first example
as the most supported thing, which is using standard importlib; then
briefly discuss the version file from above, explaining what's in it
for a standard Python template, then the strongly discouraged direct
import method.

In the config doc, update to discuss `importlib` for consistency.

Correct some capitalization and other minor formatting bits while
we're here.
Copy link
Contributor

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

Thank you for starting this

The long term plan is to completely deprecate the exposed get-version functionality as people keep missusing and misunderstanding it

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.

2 participants