]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Exclude aiohttp from python < 3 setup
authorLuiz Menezes <luiz.menezesf@gmail.com>
Thu, 1 Sep 2016 01:15:24 +0000 (22:15 -0300)
committerLuiz Menezes <luiz.menezesf@gmail.com>
Thu, 1 Sep 2016 01:15:24 +0000 (22:15 -0300)
setup.py

index 231f79d81827af9964ad74d7be38b55a98ea1fc8..a5840028b509f6151c745ab30b3f9cfebf436e48 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -49,6 +49,10 @@ except Exception:
             install_requires.extend(value)
 
 
+excluded_packages = ["tests*"]
+if sys.version_info[0] == 2:
+    excluded_packages.append("vcr.stubs.aiohttp_stubs")
+
 setup(
     name='vcrpy',
     version='1.9.0',
@@ -60,7 +64,7 @@ setup(
     author='Kevin McCarthy',
     author_email='me@kevinmccarthy.org',
     url='https://github.com/kevin1024/vcrpy',
-    packages=find_packages(exclude=("tests*",)),
+    packages=find_packages(exclude=excluded_packages),
     install_requires=install_requires,
     extras_require=extras_require,
     license='MIT',