From 5613f4a2c6f6fa2d92a10d07c79723177db836aa Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Tue, 7 Nov 2023 07:22:55 +0900 Subject: [PATCH] chore: support build on git export - Add .git_archival.txt template that substitute on export Signed-off-by: Hiroshi Miura --- .git_archival.txt | 4 ++++ .gitattributes | 1 + MANIFEST.in | 1 + 3 files changed, 6 insertions(+) create mode 100644 .git_archival.txt create mode 100644 .gitattributes diff --git a/.git_archival.txt b/.git_archival.txt new file mode 100644 index 00000000..b1a286bb --- /dev/null +++ b/.git_archival.txt @@ -0,0 +1,4 @@ +node: $Format:%H$ +node-date: $Format:%cI$ +describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ +ref-names: $Format:%D$ \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..00a7b00c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.git_archival.txt export-subst diff --git a/MANIFEST.in b/MANIFEST.in index 46922963..fa5e0cab 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ include *.rst +include *.txt include LICENSE include pyproject.toml include .flake8