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 git archives #65

Closed
Changaco opened this issue Nov 27, 2015 · 2 comments · Fixed by #580
Closed

Support git archives #65

Changaco opened this issue Nov 27, 2015 · 2 comments · Fixed by #580

Comments

@Changaco
Copy link
Contributor

git can inject data into archives, including tags. Here's how it could work:

  1. put use_scm_version={'git_metadata': '$Format:%D$'} in setup.py
  2. put setup.py export-subst in .gitattributes
  3. setuptools_scm extracts the version number from git_metadata with a regexp like \btag: ([0-9][^,]*)\b
@RonnyPfannschmidt
Copy link
Contributor

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
I'm happy to include a Variant that demonstrably works correct with random archives from github

But I will not again spend time researching and implementing it for git

Changaco added a commit to Changaco/setuptools_scm that referenced this issue Nov 28, 2015
Changaco added a commit to Changaco/setuptools_scm that referenced this issue Nov 28, 2015
Changaco added a commit to Changaco/setuptools_scm that referenced this issue Nov 28, 2015
Changaco added a commit to Changaco/setuptools_scm that referenced this issue Nov 28, 2015
@RonnyPfannschmidt
Copy link
Contributor

will be solved by #67 which should document the plugin that was kindly implemented and released by the original reporter

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

Successfully merging a pull request may close this issue.

2 participants