From 4ba3a53f0f338905ea76ec81614944d16f40b918 Mon Sep 17 00:00:00 2001 From: "Paul J. Dorn" Date: Tue, 14 May 2024 21:41:53 +0200 Subject: [PATCH] CI: exclude CI info from source tarballs Debian-style packaging procedures generally want to add their own debian/ folder on top of orig.tar.gz Note the overlap: * .gitattributes specifies what git-committed are to be ignored for git archive * MANIFEST.in specifies what python build places into sdist One way to remove this overlap is deferring both decisions to the one git source of truth, e.g. by using setuptools-scm. --- .gitattributes | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..9dafb8115 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +# note: edits here should cross-check with MANIFEST.in +# note: setuptools-scm will prioritize MANIFEST.in over git attrs + +# someone wanting these would clone git instead of using source tarball +.github export-ignore +appveyor.yml export-ignore +.readthedocs.yaml export-ignore + +# Debian prefers upstream source *without* packaging metadata +.github/packaging/ export-ignore