Commit Graph

2 Commits

Author SHA1 Message Date
Sviatoslav Sydorenko (Святослав Сидоренко) da2333cd37
📦 Make Git archives reproducible (#1338)
Some time ago, it was discovered that Git archives having
`ref-names: $Format:%D$` in `.git_archival.txt` may change when
references existing in the repository change over time [[1]]. This
means that downloading an archive for a commit from an immutable URL
may start yielding slightly different results. This hurts the ability
of downstreams to source projects from Git archive URLs.

With that in mind, modern `setuptools-scm` advises against having this
entry in the `.git_archival.txt` template [[2]]. And this patch
implements said recommendation.

[1]: https://github.com/pypa/setuptools_scm/issues/806
[2]: https://setuptools-scm.readthedocs.io/en/latest/usage/#git-archives
2024-08-24 05:13:16 +00:00
Sviatoslav Sydorenko cabc0621b3
📦 Enable support for git archive installs (#1095)
This patch enables the end-users to succeed installing from GitHub
source Git archive URLs, letting `setuptools-scm` calculate the
distribution version correctly, including the exports of non-tagged
commits[1].

[1] https://github.com/pypa/setuptools_scm#git-archives
2023-02-02 06:50:41 +01:00