Skip to content

Commit

Permalink
build: Add MANIFEST.in with prune strategy
Browse files Browse the repository at this point in the history
* Use `prune **` to remove all files from the sdist
    - c.f. https://packaging.python.org/guides/using-manifest-in/#manifest-in-commands
    - "Setuptools also has undocumented support for ** matching zero or
       more characters including forward slash, backslash, and colon."
* Manually include all "default" files for a sdist in MANIFEST.in
    - c.f. https://packaging.python.org/guides/using-manifest-in/#how-files-are-included-in-an-sdist
* Include requirements.txt as not using declartive spec for setup
  • Loading branch information
matthewfeickert committed Oct 3, 2021
1 parent c32b301 commit 75ca99d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prune **
graft prettymaps

include setup.py
include LICENSE
include README.md
include MANIFEST.in

include requirements.txt

global-exclude __pycache__ *.py[cod]

0 comments on commit 75ca99d

Please sign in to comment.