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 May 14, 2024
1 parent cd17889 commit 0eeae5c
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 0eeae5c

Please sign in to comment.