-
-
Notifications
You must be signed in to change notification settings - Fork 216
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 git archives #65
Comments
The metadata would be incomplete and broken in many situations Also in that case a file named .git_archival.txt should be used and registered as scm backend But I will not again spend time researching and implementing it for git |
closes pypa#65
closes pypa#65
closes pypa#65
closes pypa#65
will be solved by #67 which should document the plugin that was kindly implemented and released by the original reporter |
git can inject data into archives, including tags. Here's how it could work:
use_scm_version={'git_metadata': '$Format:%D$'}
insetup.py
setup.py export-subst
in.gitattributes
setuptools_scm
extracts the version number fromgit_metadata
with a regexp like\btag: ([0-9][^,]*)\b
The text was updated successfully, but these errors were encountered: