floppym     14/11/25 01:32:55

  Added:                unittest2-0.8.0-argparse.patch
  Log:
  Do not require pypi argparse for python versions which have it in the 
standard library. Patch by Arfrever.
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 
0BBEEA1FEA4843A4)

Revision  Changes    Path
1.1                  dev-python/unittest2/files/unittest2-0.8.0-argparse.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/unittest2/files/unittest2-0.8.0-argparse.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/unittest2/files/unittest2-0.8.0-argparse.patch?rev=1.1&content-type=text/plain

Index: unittest2-0.8.0-argparse.patch
===================================================================
argparse is in standard library in Python 2.7 and >=3.2
https://code.google.com/p/unittest-ext/issues/detail?id=88
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,9 @@
 # Both install and setup requires - because we read VERSION from within the
 # package, and the package also exports all the APIs.
 # six for compat helpers
-REQUIRES = ['argparse', 'six'],
+REQUIRES = ['six']
+if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 2):
+    REQUIRES.append('argparse')
 
 params = dict(
     name=NAME,




Reply via email to