Skip to content

Commit

Permalink
CI: exclude CI info from source tarballs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pajod committed Aug 7, 2024
1 parent d774e95 commit 4ba3a53
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4ba3a53

Please sign in to comment.