Skip to content

Commit

Permalink
Explicitly exclude unnecessary files in source distributions (Generic…
Browse files Browse the repository at this point in the history
…MappingTools#999)

Running `python setup.py sdist` can generate source distributions.

When packaging, setuptools_scm includes all files tracked by git.

This PR explicitly excludes unnecessary files and directories 
from the source distributions.

Co-authored-by: Wei Ji <[email protected]>
  • Loading branch information
2 people authored and Josh Sixsmith committed Dec 21, 2022
1 parent 6813f37 commit 17a822e
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
include README.rst
include LICENSE.txt
include CODE_OF_CONDUCT.md
include CONTRIBUTING.md
include AUTHORS.md
recursive-include pygmt/tests/data *
recursive-include pygmt/tests/baseline *
prune .github*
prune doc*
prune examples*
exclude .gitignore
exclude .pylintrc
exclude AUTHORSHIP.md
exclude CONTRIBUTING.md
exclude MAINTENANCE.md
exclude Makefile
exclude environment.yml
exclude package.json
exclude requirements.txt
exclude vercel.json

0 comments on commit 17a822e

Please sign in to comment.