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

Support overriding version from environment #77

Closed
mweinelt opened this issue Feb 9, 2023 · 3 comments
Closed

Support overriding version from environment #77

mweinelt opened this issue Feb 9, 2023 · 3 comments

Comments

@mweinelt
Copy link

mweinelt commented Feb 9, 2023

We at nixpkgs package python projects from GitHub by pulling their tarball, which is much quicker than doing a full or bare git checkout. Subsequently, we don't have a Git repo that setuptools-git-versioning could infer the version from.

With setuptools-scm there is an environment variable SETUPTOOLS_SCM_PRETEND_VERSION through which the version can be explicitly. Adding support for such an escape hatch would be appreciated.

@dolfinus
Copy link
Owner

dolfinus commented Feb 9, 2023

Hi.

Could the repo maintainer create version_file? It can be used when tags are missing.

@dolfinus
Copy link
Owner

dolfinus commented Feb 26, 2023

@mweinelt
Copy link
Author

Thanks, I apparently forgot to check back in.

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

No branches or pull requests

2 participants