Skip to content

Commit f5f5485

Browse files
authored
MANIFEST.in: simplify and robust-ify (#9592)
Co-authored-by: hauntsaninja <>
1 parent 1b21080 commit f5f5485

File tree

2 files changed

+40
-21
lines changed

2 files changed

+40
-21
lines changed

MANIFEST.in

Lines changed: 40 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,44 @@
1-
recursive-include scripts *
2-
recursive-include test-data *
3-
recursive-include extensions *
4-
recursive-include docs *
5-
recursive-include misc proper_plugin.py
6-
recursive-include mypy/typeshed *.py *.pyi
7-
recursive-include mypy/xml *.xsd *.xslt *.css
8-
recursive-include mypyc/lib-rt *.c *.h *.tmpl *.py *.cc
9-
recursive-include mypyc/ir *.py
10-
recursive-include mypyc/analysis *.py
11-
recursive-include mypyc/codegen *.py
12-
recursive-include mypyc/irbuild *.py
13-
recursive-include mypyc/primitives *.py
14-
recursive-include mypyc/transform *.py
15-
recursive-include mypyc/external *.cc *.h Makefile *.pump LICENSE README
16-
recursive-include mypyc/test *.py
17-
recursive-include mypyc/test-data *.test
18-
recursive-include mypyc/test-data/fixtures *.py *.pyi
19-
recursive-include mypyc/doc *.rst *.py *.md Makefile *.bat
1+
# some of the prunes here are so that check-manifest doesn't complain about their exclusion
2+
# as such, be judicious in your use of prune
3+
4+
# stubs
5+
prune mypy/typeshed
6+
recursive-include mypy/typeshed *.pyi
7+
8+
# mypy and mypyc
9+
include mypy/py.typed
10+
recursive-include mypy *.py
11+
recursive-include mypyc *.py
12+
13+
# random
2014
include mypy_bootstrap.ini
15+
graft mypy/xml
16+
graft scripts
17+
18+
# docs
19+
graft docs
20+
prune docs/build
21+
prune docs/source/_build
22+
23+
# assorted mypyc requirements
24+
graft mypyc/external
25+
graft mypyc/lib-rt
26+
graft mypyc/test-data
27+
graft mypyc/doc
28+
29+
# files necessary for testing sdist
30+
include mypy-requirements.txt
31+
include test-requirements.txt
2132
include mypy_self_check.ini
22-
include LICENSE
33+
prune misc
34+
include misc/proper_plugin.py
35+
graft test-data
36+
include conftest.py
2337
include runtests.py
2438
include pytest.ini
39+
40+
include LICENSE mypyc/README.md
41+
exclude .gitmodules CONTRIBUTING.md CREDITS ROADMAP.md tox.ini
42+
43+
global-exclude *.py[cod]
44+
global-exclude .DS_Store

mypyc/lib-rt/CPy.cc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)