You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(packaging): version git archives of arbitrary commits
GitHub serves a source tarball for every commit, not only for tags, but
so far only a tag's tarball could be built: without a .git directory
setuptools-scm had nothing to read the version from.
A .git_archival.txt expanded by ``git archive`` via ``export-subst``
gives it one. The stable template is deliberate -- recording ``ref-names``
as well would tie an archive's content, and so its checksum, to whichever
branches happen to point at the commit, so moving a branch afterwards
would silently change the download.
While here, move off the deprecated ``write_to`` and state the
``write_to_source`` behaviour that setuptools-scm is about to flip
rather than inherit the change silently.
Closes#11680
Co-Authored-By: Claude Opus 5 (1M context) via Claude Code <noreply@anthropic.com>
0 commit comments