Skip to content

Commit

Permalink
Mention SETUPTOOLS_SCM_PRETEND_VERSION_FOR in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Jan 22, 2025
1 parent 051ad96 commit 2b0722f
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 2b0722f

Please sign in to comment.