Skip to content

Commit a29a1cf

Browse files
committed
Ensure that virtualenv 14 is not solicited on Python 3.2, creating unviable environments. Fixes tox-dev#323.
1 parent 5bf7878 commit a29a1cf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

setup.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,20 @@ def has_environment_marker_support():
3636

3737
def main():
3838
version = sys.version_info[:2]
39-
install_requires = ['virtualenv>=1.11.2', 'py>=1.4.17', 'pluggy>=0.3.0,<1.0']
39+
virtualenv_open = ['virtualenv>=1.11.2']
40+
virtualenv_capped = ['virtualenv>=1.11.2,<14']
41+
install_requires = ['py>=1.4.17', 'pluggy>=0.3.0,<1.0']
4042
extras_require = {}
4143
if has_environment_marker_support():
4244
extras_require[':python_version=="2.6"'] = ['argparse']
45+
extras_require[':python_version=="3.2"'] = virtualenv_capped
46+
extras_require[':python_version!="3.2"'] = virtualenv_open
4347
else:
4448
if version < (2, 7):
4549
install_requires += ['argparse']
50+
install_requires += (
51+
virtualenv_capped if (3, 2) < version < (3, 3) else virtualenv_open
52+
)
4653
setuptools.setup(
4754
name='tox',
4855
description='virtualenv-based automation of test activities',

0 commit comments

Comments
 (0)