build: Add MANIFEST.in with prune strategy

* 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
This commit is contained in:
Matthew Feickert 2021-10-03 16:13:24 -05:00
parent c32b3019ad
commit 75ca99d2b4
No known key found for this signature in database
GPG Key ID: 7C897ED848B0F976

11
MANIFEST.in Normal file
View File

@ -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]