Explicitly include tests and docs in sdist

Also exclude 'tests' from runtime installation.
This commit is contained in:
John Vandenberg 2020-01-07 11:51:34 +07:00
commit 39a836450b
2 changed files with 5 additions and 1 deletions

4
MANIFEST.in Normal file
View file

@ -0,0 +1,4 @@
include LICENSE
include README.md
recursive-include docs *.rst
recursive-include tests *.py

View file

@ -21,7 +21,7 @@ setup(
author="Simon Willison", author="Simon Willison",
version=VERSION, version=VERSION,
license="Apache License, Version 2.0", license="Apache License, Version 2.0",
packages=find_packages(exclude="tests"), packages=find_packages(exclude=["tests", "tests.*"]),
install_requires=["click", "click-default-group", "tabulate"], install_requires=["click", "click-default-group", "tabulate"],
setup_requires=["pytest-runner"], setup_requires=["pytest-runner"],
extras_require={ extras_require={