1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

use conditional requirements for backport libraries Fixes #147

This commit is contained in:
Thomas Grainger
2015-07-01 09:51:32 +01:00
parent d14888ccd8
commit 41949f7dc6
10 changed files with 41 additions and 26 deletions

View File

@@ -19,6 +19,7 @@ class PyTest(TestCommand):
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name='vcrpy',
version='1.5.2',
@@ -31,8 +32,12 @@ setup(
author_email='me@kevinmccarthy.org',
url='https://github.com/kevin1024/vcrpy',
packages=find_packages(exclude=("tests*",)),
install_requires=['PyYAML', 'mock', 'six>=1.5', 'contextlib2',
'wrapt', 'backport_collections'],
install_requires=['PyYAML', 'wrapt', 'six>=1.5'],
extras_require = {
':python_version in "2.4, 2.5, 2.6"':
['contextlib2', 'backport_collections', 'mock'],
':python_version in "2.7, 3.1, 3.2"': ['contextlib2', 'mock'],
},
license='MIT',
tests_require=['pytest', 'mock', 'pytest-localserver'],
cmdclass={'test': PyTest},