diff --git a/files/python-nose-py35.patch b/files/python-nose-py35.patch new file mode 100644 --- /dev/null +++ b/files/python-nose-py35.patch @@ -0,0 +1,33 @@ +diff -up nose-1.3.7/functional_tests/test_load_tests_from_test_case.py.py35 nose-1.3.7/functional_tests/test_load_tests_from_test_case.py +--- nose-1.3.7/functional_tests/test_load_tests_from_test_case.py.py35 2012-09-29 02:18:54.000000000 -0600 ++++ nose-1.3.7/functional_tests/test_load_tests_from_test_case.py 2016-11-15 13:42:27.946707472 -0700 +@@ -29,6 +29,7 @@ class NoFixturePlug(Plugin): + pass + def tearDown(self): + pass ++ Derived.__qualname__ = Derived.__name__ + # must use nose loader here because the default loader in 2.3 + # won't load tests from base classes + l = loader.TestLoader() +diff -up nose-1.3.7/nose/util.py.py35 nose-1.3.7/nose/util.py +--- nose-1.3.7/nose/util.py.py35 2015-04-04 02:52:52.000000000 -0600 ++++ nose-1.3.7/nose/util.py 2016-11-15 13:42:27.946707472 -0700 +@@ -643,6 +643,7 @@ def transplant_class(cls, module): + pass + C.__module__ = module + C.__name__ = cls.__name__ ++ C.__qualname__ = cls.__name__ + return C + + +diff -up nose-1.3.7/unit_tests/test_xunit.py.py35 nose-1.3.7/unit_tests/test_xunit.py +--- nose-1.3.7/unit_tests/test_xunit.py.py35 2015-04-04 02:52:52.000000000 -0600 ++++ nose-1.3.7/unit_tests/test_xunit.py 2016-11-15 13:42:27.946707472 -0700 +@@ -16,6 +16,7 @@ def mktest(): + class TC(unittest.TestCase): + def runTest(self): + pass ++ TC.__qualname__ = TC.__name__ + test = TC() + return test + diff --git a/package.yml b/package.yml --- a/package.yml +++ b/package.yml @@ -1,8 +1,8 @@ name : python-nose version : 1.3.7 -release : 2 +release : 3 source : - - https://pypi.python.org/packages/58/a5/0dc93c3ec33f4e281849523a5a913fa1eea9a3068acfa754d44d88107a44/nose-1.3.7.tar.gz : f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98 + - https://pypi.python.org/packages/source/n/nose/nose-1.3.7.tar.gz : f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98 license : LGPL-2.1 component : programming.python summary : nose is nicer testing for python @@ -10,9 +10,21 @@ nose is nicer testing for python builddeps : - python-setuptools +setup : | + # https://github.com/nose-devs/nose/pull/983 + %patch -p1 < $pkgfiles/python-nose-py35.patch build : | %python_setup %python3_setup install : | %python_install %python3_install +check : | + pushd $PKG_BUILD_DIR/py2build + python selftest.py + popd + + pushd $PKG_BUILD_DIR/py3build + python3 setup.py build_tests + python3 selftest.py + popd diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml --- a/pspec_x86_64.xml +++ b/pspec_x86_64.xml @@ -2,8 +2,8 @@ python-nose - Federico D. Schonborn - federico.d.schonborn@gmail.com + Pierre-Yves + pyu@riseup.net LGPL-2.1 programming.python @@ -133,14 +133,19 @@ /usr/lib/python3.5/site-packages/nose/__pycache__/__main__.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/__pycache__/case.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/__pycache__/commands.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/__pycache__/config.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/__pycache__/core.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/__pycache__/exc.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/__pycache__/failure.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/__pycache__/importer.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/__pycache__/inspector.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/__pycache__/loader.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/__pycache__/proxy.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/__pycache__/pyversion.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/__pycache__/result.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/__pycache__/selector.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/__pycache__/suite.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/__pycache__/twistedtools.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/__pycache__/util.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/case.py /usr/lib/python3.5/site-packages/nose/commands.py @@ -149,6 +154,7 @@ /usr/lib/python3.5/site-packages/nose/exc.py /usr/lib/python3.5/site-packages/nose/ext/__init__.py /usr/lib/python3.5/site-packages/nose/ext/__pycache__/__init__.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/ext/__pycache__/dtcompat.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/ext/dtcompat.py /usr/lib/python3.5/site-packages/nose/failure.py /usr/lib/python3.5/site-packages/nose/importer.py @@ -158,17 +164,24 @@ /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/__init__.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/allmodules.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/attrib.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/base.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/builtin.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/capture.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/collect.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/cover.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/debug.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/deprecated.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/doctests.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/errorclass.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/failuredetail.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/isolate.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/logcapture.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/manager.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/multiprocess.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/plugintest.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/prof.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/skip.cpython-35.pyc + /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/testid.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/__pycache__/xunit.cpython-35.pyc /usr/lib/python3.5/site-packages/nose/plugins/allmodules.py /usr/lib/python3.5/site-packages/nose/plugins/attrib.py @@ -213,12 +226,12 @@ - - 2017-02-09 + + 2017-12-01 1.3.7 Packaging update - Federico D. Schonborn - federico.d.schonborn@gmail.com + Pierre-Yves + pyu@riseup.net \ No newline at end of file