Skip to content

Commit

Permalink
Add mock as a dependency under Python < 3.0, fixes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
KushalP committed Aug 17, 2016
1 parent c02a219 commit a3fb997
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ def run_tests(self):
except:
long_description = None

test_requires = [
'pytest >= 2.5.2',
'pytest-cov >= 1.6',
]

if sys.version_info[:2] < (3, 0):
test_requires.append('mock')

setup(
name='serfclient',
version='1.0.0',
Expand All @@ -40,7 +48,6 @@ def run_tests(self):
license='MIT',
packages=['serfclient'],
install_requires=['msgpack-python >= 0.4.0'],
tests_require=['pytest >= 2.5.2',
'pytest-cov >= 1.6'],
cmdclass={'test': PyTest}
tests_require=test_requires,
cmdclass={'test': PyTest},
)

0 comments on commit a3fb997

Please sign in to comment.