Skip to content

Commit

Permalink
Explicitly exclude unnecessary files in source distributions (#999)
Browse files Browse the repository at this point in the history
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
seisman and weiji14 authored Mar 5, 2021
1 parent fb3420d commit 5846e88
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 5846e88

Please sign in to comment.