aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpyros Trigazis <strigazi@gmail.com>2017-06-29 18:52:05 +0200
committerJon Wayne Parrott <jonwayne@google.com>2017-06-29 09:52:05 -0700
commit98c0a1a8c82cf46549bc7337343039c5af941730 (patch)
tree5191f19ccfa1a01c2e098b0eb39d466bd50ac8a4
parent97320af2733f7bdbe47f067327610e348f953ae1 (diff)
downloadoauth2client-98c0a1a8c82cf46549bc7337343039c5af941730.tar.gz
Exclude test in find_packages (#720)
To avoid conflicts with projects that have tests in their top-level directory: * exlude tests in find_packages * add include in MANIFEST.in Closes: #688 Signed-off-by: Spyros Trigazis <strigazi@gmail.com>
-rw-r--r--MANIFEST.in5
-rw-r--r--setup.py2
2 files changed, 3 insertions, 4 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index a30e060..4f2ba45 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,3 +1,2 @@
-include README.md
-include LICENSE
-recursive-exclude tests *
+include README.md LICENSE CHANGELOG.md
+recursive-include tests *
diff --git a/setup.py b/setup.py
index 6f6e371..47d86b7 100644
--- a/setup.py
+++ b/setup.py
@@ -61,7 +61,7 @@ setup(
author_email='jonwayne+oauth2client@google.com',
url='http://github.com/google/oauth2client/',
install_requires=install_requires,
- packages=find_packages(),
+ packages=find_packages(exclude=('tests*',)),
license='Apache 2.0',
keywords='google oauth 2.0 http client',
classifiers=[