From 621604185916ebf6858c4f5fdc5ecdb44bb37766 Mon Sep 17 00:00:00 2001 From: Ian Stapleton Cordasco Date: Sat, 9 Dec 2017 09:06:02 -0600 Subject: [PATCH 1/2] Limit python setup.py test to our tests Tell unittest.discover specifically what to look for instead of letting them scan the entirety of our directory (which could have other dependencies downloaded with their tests that will fail). Closes #403 --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index e1cf8af..a5dd8dc 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ setup( 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', ], + test_suite="test_httpbin", packages=find_packages(), include_package_data = True, # include files listed in MANIFEST.in install_requires=[ From 6fd0adba842ebe4af9d16070b7b7c751a07be066 Mon Sep 17 00:00:00 2001 From: Ian Stapleton Cordasco Date: Sat, 9 Dec 2017 19:12:41 -0600 Subject: [PATCH 2/2] Include tests in package --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 74b2789..63308a8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,2 @@ -include README.rst LICENSE AUTHORS requirements.txt +include README.rst LICENSE AUTHORS requirements.txt test_httpbin.py recursive-include httpbin/templates *