-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature request: override/pretend a version by environment variable #45
Comments
I see the following problems/complications with this idea:
Side note: You may be able to address your original Dockerization problem by building a wheel (which will have the appropriate version and not contain any |
I started with |
I had the same question re OS packages from github-generated archives which seem to be the most common source used for packaging GH projects. Obviously packaging tools differ from one distro to the next, but several of them rely on the SETUPTOOLS_SCM_PRETEND_VERSION thing to facilitate packaging bare GH archives. Could you elaborate a bit more on your rationale? I would thankfully use such a feature and not use setuptools_scm for my own projects. |
@jwodder would you be open to accept a PR that reads from |
I opened PR #97 where I implement reading the hardcoded version from |
I'm looking for the equivalent of
SETUPTOOLS_SCM_PRETEND_VERSION
environment variable as available in setuptools-scm, for versioningit.Would be great if that's possible without the need to write a custom versioningit method. My use case is a build in Docker where I can exclude the (huge)
.git/
folder from the Docker context, have no dependency on git tooling in the image and just supply the version from the host as Docker build argument.The text was updated successfully, but these errors were encountered: