From: Ivan Malison Date: Thu, 2 Apr 2015 17:23:22 +0000 (-0700) Subject: add backport_collections, tweaks to setup.py. X-Git-Tag: v1.4.0~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e8a6a7a49f8e347d62548da3d1ecbe05283f9db3;p=vcrpy.git add backport_collections, tweaks to setup.py. --- diff --git a/setup.py b/setup.py index a6a8701..6b59567 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ -##!/usr/bin/env python +#!/usr/bin/env python import sys -from setuptools import setup +from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand @@ -28,20 +28,9 @@ setup( author='Kevin McCarthy', author_email='me@kevinmccarthy.org', url='https://github.com/kevin1024/vcrpy', - packages=[ - 'vcr', - 'vcr.stubs', - 'vcr.compat', - 'vcr.persisters', - 'vcr.serializers', - ], - package_dir={ - 'vcr': 'vcr', - 'vcr.stubs': 'vcr/stubs', - 'vcr.compat': 'vcr/compat', - 'vcr.persisters': 'vcr/persisters', - }, - install_requires=['PyYAML', 'mock', 'six', 'contextlib2', 'wrapt'], + packages=find_packages(exclude=("tests*",)), + install_requires=['PyYAML', 'mock', 'six', 'contextlib2', + 'wrapt', 'backport_collections'], license='MIT', tests_require=['pytest', 'mock', 'pytest-localserver'], cmdclass={'test': PyTest}, @@ -54,5 +43,5 @@ setup( 'Topic :: Software Development :: Testing', 'Topic :: Internet :: WWW/HTTP', 'License :: OSI Approved :: MIT License', - ], + ] )