You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/08/01 20:30:22 UTC
[10/22] git commit: Revert "Add argparse dependency for Python < 2.6
and >= 3.1 and <= 3.2."
Revert "Add argparse dependency for Python < 2.6 and >= 3.1 and <= 3.2."
This reverts commit a62b97a098441603832deb239307a8cd7cf53029.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a1eda4e3
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a1eda4e3
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a1eda4e3
Branch: refs/heads/0.13.x
Commit: a1eda4e361f9f63c0b1a90229a976a173961dc06
Parents: e643655
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Wed Jul 31 19:51:04 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Thu Aug 1 20:28:49 2013 +0200
----------------------------------------------------------------------
libcloud/utils/py3.py | 4 ----
setup.py | 11 ++---------
2 files changed, 2 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/a1eda4e3/libcloud/utils/py3.py
----------------------------------------------------------------------
diff --git a/libcloud/utils/py3.py b/libcloud/utils/py3.py
index 1c44c27..206324e 100644
--- a/libcloud/utils/py3.py
+++ b/libcloud/utils/py3.py
@@ -28,7 +28,6 @@ PY2 = False
PY25 = False
PY27 = False
PY3 = False
-PY31 = False
PY32 = False
if sys.version_info >= (2, 0) and sys.version_info < (3, 0):
@@ -43,9 +42,6 @@ if sys.version_info >= (2, 7) and sys.version_info <= (2, 8):
if sys.version_info >= (3, 0):
PY3 = True
-if sys.version_info >= (3, 1) and sys.version_info < (3, 2):
- PY31 = True
-
if sys.version_info >= (3, 2) and sys.version_info < (3, 3):
PY32 = True
http://git-wip-us.apache.org/repos/asf/libcloud/blob/a1eda4e3/setup.py
----------------------------------------------------------------------
diff --git a/setup.py b/setup.py
index 2bbeba7..fc82122 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ except ImportError:
import libcloud.utils.misc
from libcloud.utils.dist import get_packages, get_data_files
-from libcloud.utils.py3 import unittest2_required, PY31, PY32
+from libcloud.utils.py3 import unittest2_required
libcloud.utils.misc.SHOW_DEPRECATION_WARNING = False
@@ -229,13 +229,6 @@ class CoverageCommand(Command):
cov.save()
cov.html_report()
-if pre_python26:
- dependencies = ['ssl', 'simplejson', 'argparse']
-elif PY31 or PY32:
- dependencies = ['argparse']
-else:
- dependencies = []
-
setup(
name='apache-libcloud',
@@ -245,7 +238,7 @@ setup(
' and documentation, please see http://libcloud.apache.org',
author='Apache Software Foundation',
author_email='dev@libcloud.apache.org',
- requires=dependencies,
+ requires=([], ['ssl', 'simplejson'],)[pre_python26],
packages=get_packages('libcloud'),
package_dir={
'libcloud': 'libcloud',