Commit bf2c722
📦 Fix
Prior to this patch, `python -Im build` would emit warnings regarding
`.git_archival.txt` having not been templated that look as follows:
```console
$ python -Im build -vv 2>&1 | grep -i warni
/tmp/build-env-m3vufmd9/lib/python3.14/site-packages/setuptools_scm/git.py:427: UserWarning: git archive did not support describe output
warnings.warn("git archive did not support describe output")
/tmp/build-env-m3vufmd9/lib/python3.14/site-packages/setuptools_scm/git.py:445: UserWarning: unprocessed git archival found (no export subst applied)
warnings.warn("unprocessed git archival found (no export subst applied)")
/tmp/build-env-m3vufmd9/lib/python3.14/site-packages/setuptools_scm/git.py:427: UserWarning: git archive did not support describe output
warnings.warn("git archive did not support describe output")
/tmp/build-env-m3vufmd9/lib/python3.14/site-packages/setuptools_scm/git.py:445: UserWarning: unprocessed git archival found (no export subst applied)
warnings.warn("unprocessed git archival found (no export subst applied)")
```
This change addressed that by excluding said file from sdists produced
from within Git checkouts so the file only exists when exported into
an archive. `MANIFEST.in` itself is excluded due to a cascading
warning its presence introduces while fixing the original one.
ctx: jazzband/pip-tools#2261 (comment)
(cherry picked from commit 533c719)setuptools-scm warnings on git archival (#1492)1 parent 27d5fa6 commit bf2c722
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | | - | |
3 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments