summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2020-04-30 08:57:10 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2020-04-30 10:21:23 +0200
commitc305cc4d2d482d1e07267c580802afd4fb536cdb (patch)
tree3711f4543252df6e8c0e2c1097aeecb34fc35236
parentefb51556d977885ff75c726d06ccda2f4d49205a (diff)
downloadastroid-git-c305cc4d2d482d1e07267c580802afd4fb536cdb.tar.gz
Exclude tests from getting installed from source distribution
Close #774
-rw-r--r--MANIFEST.in2
-rw-r--r--setup.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index 23286ffc..8cf73ba0 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -5,3 +5,5 @@ include COPYING.LESSER
include pytest.ini
recursive-include tests *.py *.zip *.egg *.pth
recursive-include astroid/brain *.py
+graft tests
+recursive-exclude tests *.pyc
diff --git a/setup.py b/setup.py
index 0e35ae78..6e96fff6 100644
--- a/setup.py
+++ b/setup.py
@@ -47,7 +47,7 @@ def install():
python_requires=">=3.5.*",
install_requires=install_requires,
extras_require=extras_require,
- packages=find_packages() + ["astroid.brain"],
+ packages=find_packages(exclude=["tests"]) + ["astroid.brain"],
setup_requires=pytest_runner,
test_suite="test",
tests_require=["pytest"],