chore: support build on git export

- Add .git_archival.txt template that substitute on export

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2023-11-07 07:22:55 +09:00
parent c731495e55
commit 5613f4a2c6
3 changed files with 6 additions and 0 deletions

4
.git_archival.txt Normal file
View File

@@ -0,0 +1,4 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
ref-names: $Format:%D$

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
.git_archival.txt export-subst

View File

@@ -1,4 +1,5 @@
include *.rst
include *.txt
include LICENSE
include pyproject.toml
include .flake8