Skip to content

Commit

Permalink
Merge pull request #1102 from paugier/error-message-env-var
Browse files Browse the repository at this point in the history
Mention SETUPTOOLS_SCM_PRETEND_VERSION_FOR in error message
  • Loading branch information
RonnyPfannschmidt authored Jan 23, 2025
2 parents 051ad96 + 2b0722f commit 9b6f031
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/setuptools_scm/_get_version_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ def _version_missing(config: Configuration) -> NoReturn:
"metadata and will not work.\n\n"
"For example, if you're using pip, instead of "
"https://github.com/user/proj/archive/master.zip "
"use git+https://github.com/user/proj.git#egg=proj"
"use git+https://github.com/user/proj.git#egg=proj\n\n"
"Alternatively, set the version with the environment variable "
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_${NORMALIZED_DIST_NAME} as described "
"in https://setuptools-scm.readthedocs.io/en/latest/config."
)


Expand Down

0 comments on commit 9b6f031

Please sign in to comment.