-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
wontfixThis project is unlikely to fix this (e.g. out of scope)This project is unlikely to fix this (e.g. out of scope)
Description
Setuptools_scm automatically generates version metadata from git. However the .git
directory is not copied with the revision:
LookupError: setuptools-scm was unable to detect version for ...
Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
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
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.
[end of output]
Is there an option to also copy .git
?
Metadata
Metadata
Assignees
Labels
wontfixThis project is unlikely to fix this (e.g. out of scope)This project is unlikely to fix this (e.g. out of scope)