diff options
| author | holger krekel <holger@merlinux.eu> | 2011-07-07 21:52:18 +0200 |
|---|---|---|
| committer | holger krekel <holger@merlinux.eu> | 2011-07-07 21:52:18 +0200 |
| commit | 69845f035efc1ae99f694af09be035800e46f717 (patch) | |
| tree | 270824b8ab09992c027093ab518d91d31772ecbf | |
| parent | 96a04f00d5bf230a280bee198eb245c5974d1c97 (diff) | |
| download | tox-69845f035efc1ae99f694af09be035800e46f717.tar.gz | |
fix issue3 - only require argparse for python versions that don't ship it
| -rw-r--r-- | CHANGELOG.txt | 3 | ||||
| -rw-r--r-- | setup.py | 8 | ||||
| -rw-r--r-- | tox/__init__.py | 2 | ||||
| -rw-r--r-- | toxbootstrap.py | 2 |
4 files changed, 10 insertions, 5 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 99f5ec5..58e18cc 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,9 +1,10 @@ 1.1dev ----------------- +- fix issue5 - don't require argparse for python versions that have it - fix issue6 - recreate virtualenv if installing dependencies failed - fix issue3 - fix example on frontpage -- fixed/enhanced: except for initial install always call use "-U +- fixed/enhanced: except for initial install always call "-U --no-deps" for installing the sdist package to ensure that a package gets upgraded even if its version number did not change. (reported on TIP mailing list and IRC) @@ -27,19 +27,23 @@ For more information, docs and many examples please checkout the `home page`_: def main(): + version = sys.version_info[:2] + install_requires = ['py>=1.4.3', ] + if version < (2,7) or (3,0) <= version <= (3,1): + install_requires += ['argparse'] setup( name='tox', description='virtualenv-based automation of test activities', long_description=long_description, url='http://codespeak.net/tox', - version='1.1.dev3', + version='1.1.dev4', license='GPLv2 or later', platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'], author='holger krekel', author_email='holger@merlinux.eu', packages=['tox', ], entry_points={'console_scripts': 'tox=tox:cmdline'}, - install_requires=['argparse', 'py>=1.4.0a2', ], + install_requires=install_requires, zip_safe=True, classifiers=[ 'Development Status :: 5 - Production/Stable', diff --git a/tox/__init__.py b/tox/__init__.py index 006619b..3b8f488 100644 --- a/tox/__init__.py +++ b/tox/__init__.py @@ -1,5 +1,5 @@ # -__version__ = '1.1.dev3' +__version__ = '1.1.dev4' class exception: class Error(Exception): diff --git a/toxbootstrap.py b/toxbootstrap.py index 0fd43b1..e5997cd 100644 --- a/toxbootstrap.py +++ b/toxbootstrap.py @@ -58,7 +58,7 @@ ToDo """ -__version__ = '1.1.dev3' +__version__ = '1.1.dev4' import sys import os |
