From 0988f2eccc2dfa26b1a55243582222f540a72838 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Fri, 31 Jan 2020 07:21:26 +0700 Subject: [PATCH] Explicitly include tests and docs in sdist (#75) Also exclude 'tests' from runtime installation - thanks, @jayvdb --- MANIFEST.in | 4 ++++ setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..e3c9212 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +include LICENSE +include README.md +recursive-include docs *.rst +recursive-include tests *.py diff --git a/setup.py b/setup.py index 32619ae..a37c6b0 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ setup( author="Simon Willison", version=VERSION, license="Apache License, Version 2.0", - packages=find_packages(exclude="tests"), + packages=find_packages(exclude=["tests", "tests.*"]), install_requires=["click", "click-default-group", "tabulate"], setup_requires=["pytest-runner"], extras_require={