[packages/python-funcsigs] - updated to 1.0.2 - updated no-unittest2 patch

qboosh qboosh at pld-linux.org
Sat May 14 11:06:44 CEST 2016


commit c46ba6851378495ec998dd0b66071a1e879c8672
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat May 14 11:06:51 2016 +0200

    - updated to 1.0.2
    - updated no-unittest2 patch

 python-funcsigs-no-unittest2.patch | 46 +++++++++++++++++++++++++++++++++-----
 python-funcsigs.spec               | 10 ++++-----
 2 files changed, 45 insertions(+), 11 deletions(-)
---
diff --git a/python-funcsigs.spec b/python-funcsigs.spec
index e067fff..79e4232 100644
--- a/python-funcsigs.spec
+++ b/python-funcsigs.spec
@@ -8,13 +8,13 @@
 Summary:	Python function signatures from PEP362 for older Python versions
 Summary(pl.UTF-8):	Sygnatury funkcji w Pythonie z PEP362 dla starszych wersji Pythona
 Name:		python-funcsigs
-Version:	0.4
-Release:	2
+Version:	1.0.2
+Release:	1
 License:	Apache v2.0
 Group:		Libraries/Python
-#Source0Download: https://pypi.python.org/pypi/funcsigs
-Source0:	https://pypi.python.org/packages/source/f/funcsigs/funcsigs-%{version}.tar.gz
-# Source0-md5:	fb1d031f284233e09701f6db1281c2a5
+#Source0Download: https://pypi.python.org/simple/funcsigs
+Source0:	https://pypi.python.org/packages/94/4a/db842e7a0545de1cdb0439bb80e6e42dfe82aaeaadd4072f2263a4fbed23/funcsigs-%{version}.tar.gz
+# Source0-md5:	7e583285b1fb8a76305d6d68f4ccc14e
 Patch0:		%{name}-no-unittest2.patch
 URL:		https://pypi.python.org/pypi/funcsigs
 BuildRequires:	rpm-pythonprov
diff --git a/python-funcsigs-no-unittest2.patch b/python-funcsigs-no-unittest2.patch
index 2efa7c5..ced18a9 100644
--- a/python-funcsigs-no-unittest2.patch
+++ b/python-funcsigs-no-unittest2.patch
@@ -1,11 +1,45 @@
---- funcsigs-0.4/setup.py.orig	2016-03-05 23:24:32.065793138 +0100
-+++ funcsigs-0.4/setup.py	2016-03-05 23:24:52.449125617 +0100
-@@ -50,6 +50,6 @@
+--- funcsigs-1.0.2/setup.py.orig	2016-05-13 22:45:56.749412801 +0200
++++ funcsigs-1.0.2/setup.py	2016-05-14 08:20:21.614633114 +0200
+@@ -47,6 +47,6 @@
          'Programming Language :: Python :: Implementation :: PyPy',
          'Topic :: Software Development :: Libraries :: Python Modules'
      ],
--    tests_require = [] if sys.version_info[0] > 2 else ['unittest2'],
--    test_suite = "tests" if sys.version_info[0] > 2 else 'unittest2.collector'
+-    tests_require = ['unittest2'],
+-    test_suite = 'unittest2.collector',
 +    tests_require = [],
-+    test_suite = "tests"
++    test_suite = 'tests'
  )
+--- funcsigs-1.0.2/tests/test_formatannotation.py.orig	2016-05-14 10:59:38.724232040 +0200
++++ funcsigs-1.0.2/tests/test_formatannotation.py	2016-05-14 10:59:48.217564975 +0200
+@@ -1,6 +1,6 @@
+ import funcsigs
+ 
+-import unittest2 as unittest
++import unittest
+ 
+ class TestFormatAnnotation(unittest.TestCase):
+     def test_string (self):
+--- funcsigs-1.0.2/tests/test_funcsigs.py.orig	2016-05-14 11:00:25.777563398 +0200
++++ funcsigs-1.0.2/tests/test_funcsigs.py	2016-05-14 11:00:30.480896534 +0200
+@@ -1,4 +1,4 @@
+-import unittest2 as unittest
++import unittest
+ 
+ import doctest
+ import sys
+--- funcsigs-1.0.2/tests/test_inspect.py.orig	2016-05-14 11:01:12.574228102 +0200
++++ funcsigs-1.0.2/tests/test_inspect.py	2016-05-14 11:03:33.017555541 +0200
+@@ -4,10 +4,12 @@
+ import functools
+ import sys
+ 
+-import unittest2 as unittest
++import unittest
+ 
+ import funcsigs as inspect
+ 
++if 'assertRaisesRegex' not in unittest.TestCase.__dict__:
++    unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp
+ 
+ class TestSignatureObject(unittest.TestCase):
+     @staticmethod
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-funcsigs.git/commitdiff/c46ba6851378495ec998dd0b66071a1e879c8672



More information about the pld-cvs-commit mailing list