Skip to content

Commit

Permalink
Use extras_require for funcsigs
Browse files Browse the repository at this point in the history
  • Loading branch information
ceridwen committed Oct 19, 2017
1 parent c59f218 commit a2933e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,19 @@ def has_environment_marker_support():

def main():
install_requires = ['py>=1.4.34', 'six>=1.10.0', 'setuptools']
if sys.version_info < (3, 0):
install_requires.append('funcsigs')
extras_require = {}
# if _PYTEST_SETUP_SKIP_PLUGGY_DEP is set, skip installing pluggy;
# used by tox.ini to test with pluggy master
if '_PYTEST_SETUP_SKIP_PLUGGY_DEP' not in os.environ:
install_requires.append('pluggy>=0.4.0,<0.5')
extras_require = {}
if has_environment_marker_support():
extras_require[':python_version<"3.0"'] = ['funcsigs']
extras_require[':sys_platform=="win32"'] = ['colorama']
else:
if sys.platform == 'win32':
install_requires.append('colorama')
if sys.version_info < (3, 0):
install_requires.append('funcsigs')

setup(
name='pytest',
Expand Down

0 comments on commit a2933e9

Please sign in to comment.