From 5de3458f096c8daceac6b67f4378893ff19193d7 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Thu, 18 Nov 2021 01:04:01 +0100 Subject: [PATCH] Make Git archives `setuptools-scm` compatible (#737) Co-authored-by: Abhinav Singh <126065+abhinavsingh@users.noreply.github.com> --- .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 00000000..95cb3eea --- /dev/null +++ b/.git_archival.txt @@ -0,0 +1 @@ +ref-names: $Format:%D$ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..ec8c3333 --- /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