From f1eb734a4f91eefa07bc7bae4d1a092742dba01d Mon Sep 17 00:00:00 2001 From: Alex Tercete Date: Fri, 6 Dec 2024 15:59:56 +0000 Subject: [PATCH] setuptools_scm: support reading version from archive Currently, it's not possible to `pip install` the `labgrid` package by using the GitHub archive URL. However, `setuptools_scm` supports this[1] with a few files added to the repo. [1]: https://setuptools-scm.readthedocs.io/en/latest/usage/#git-archives Signed-off-by: Alex Tercete --- .git_archival.txt | 3 +++ .gitattributes | 1 + 2 files changed, 4 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 000000000..b423033f9 --- /dev/null +++ b/.git_archival.txt @@ -0,0 +1,3 @@ +node: $Format:%H$ +node-date: $Format:%cI$ +describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..82bf71c1c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.git_archival.txt export-subst \ No newline at end of file