From: Luiz Menezes Date: Thu, 1 Sep 2016 01:15:24 +0000 (-0300) Subject: Exclude aiohttp from python < 3 setup X-Git-Tag: v1.10.1~2^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8e352feb6a6f6fa36e2c3d93301b09f4291e17ec;p=vcrpy.git Exclude aiohttp from python < 3 setup --- diff --git a/setup.py b/setup.py index 231f79d..a584002 100644 --- 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',