From 59e55a35128d103f0d51a70cfb93d51284aceaa8 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Sun, 14 Nov 2021 11:43:04 +0100 Subject: [PATCH] Make Git archives `setuptools-scm` compatible --- .git_archival.txt | 1 + .gitattributes | 5 +++++ 2 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 0000000000..95cb3eea4e --- /dev/null +++ b/.git_archival.txt @@ -0,0 +1 @@ +ref-names: $Format:%D$ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..ec8c33334f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Force LF line endings for text files +* text=auto eol=lf + +# Needed for setuptools-scm-git-archive +.git_archival.txt export-subst