>>> Source compiled. >>> Test phase [test]: dev-python/logbook-0.4 Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib64/python3.2/unittest/main.py", line 94, in __init__ self.module = __import__(module) File "logbook/__init__.py", line 13, in <module> from logbook.base import LogRecord, Logger, LoggerGroup, NestedSetup, \ File "logbook/base.py", line 105 return u'' ^ SyntaxError: invalid syntax make: *** [test] Error 1 * ERROR: dev-python/logbook-0.4 failed (test phase): * Make test failed. See above for details.
The ^ SyntaxError: invalid syntax is not the actual problem. The above results from the testsuite having no sane setup of any description, but although the package supports all pythons, the build need be a python2 build, odd.. The actual test fails look like * Testing of dev-python/logbook-0.4 with CPython 3.2... /mnt/gen2/TmpDir/portage/dev-python/logbook-0.4/work/Logbook-0.4/build-3.2/lib /mnt/gen2/TmpDir/portage/dev-python/logbook-0.4/work/Logbook-0.4 ..............................F.........................................F......................EE. ====================================================================== ERROR: test_zeromq_background_thread (logbook.testsuite.test_regular.QueuesTestCase) File "socket.pyx", line 295, in zmq.core.socket.Socket.setsockopt (zmq/core/socket.c:3118) TypeError: unicode not allowed, use setsockopt_string and a few more ---------------------------------------------------------------------- Ran 98 tests in 2.797s FAILED (errors=2, failures=2) I am guessing the recent changes in python3.2 itself have broken the tests. Filed, see URL
03 Nov 2012; Samuli Suominen <ssuominen@gentoo.org> +logbook-0.4.ebuild, metadata.xml: From now let's pretend we're looking at 0.4.1. For the record, since I never kept a copy of the last one:- src_test() { testing() { pushd $(find build-${PYTHON_ABI}/lib.linux*/ ${PN}) > /dev/null for test in ${PN}/testsuite/test_*.py; do PYTHONPATH=. py.test $test done popd > /dev/null } python_execute_function testing } (and this doesn't actually fit logbook-0.4 either.) yields >>> Source compiled. * Testing of dev-python/logbook-0.4.1 with CPython 2.7... ============================= test session starts ============================== platform linux2 -- Python 2.7.3 -- pytest-2.3.4 collected 42 items logbook/testsuite/test_contextmanager.py .......................................... ========================== 42 passed in 1.41 seconds =========================== ============================= test session starts ============================== platform linux2 -- Python 2.7.3 -- pytest-2.3.4 collected 68 items logbook/testsuite/test_regular.py .................................................................... ========================== 68 passed in 2.30 seconds =========================== * Testing of dev-python/logbook-0.4.1 with CPython 3.2... ============================= test session starts ============================== platform linux2 -- Python 3.2.3 -- pytest-2.3.4 collected 0 items / 1 errors ==================================== ERRORS ==================================== __________ ERROR collecting logbook/testsuite/test_contextmanager.py ___________ /usr/lib64/python3.2/site-packages/py/_path/local.py:520: in pyimport > __import__(pkgpath.basename) logbook/__init__.py:13: in <module> > from logbook.base import LogRecord, Logger, LoggerGroup, NestedSetup, \ logbook/base.py:23: in <module> > from logbook._speedups import group_reflected_property, \ _speedups.pyx:1: in init logbook._speedups (logbook/_speedups.c:5032) > ??? E NameError: cmp =========================== 1 error in 0.06 seconds ============================ ============================= test session starts ============================== platform linux2 -- Python 3.2.3 -- pytest-2.3.4 collected 0 items / 1 errors ==================================== ERRORS ==================================== ______________ ERROR collecting logbook/testsuite/test_regular.py ______________ /usr/lib64/python3.2/site-packages/py/_path/local.py:520: in pyimport > __import__(pkgpath.basename) logbook/__init__.py:13: in <module> > from logbook.base import LogRecord, Logger, LoggerGroup, NestedSetup, \ logbook/base.py:23: in <module> > from logbook._speedups import group_reflected_property, \ _speedups.pyx:1: in init logbook._speedups (logbook/_speedups.c:5032) > ??? E NameError: cmp =========================== 1 error in 0.06 seconds ============================ The good news; E NameError: cmp has been reported upstream. The bad news; It was a full year ago.
there's a recent release 0.4.2 with some extensive improvements. The tarball from pypi again is missing half the source, ooopsie all over again. I'll polish it off tomorrow.
*logbook-0.4.2 (30 Jun 2013) 30 Jun 2013; Ian Delaney <idella4@gentoo.org> +files/logbook-0.4.2-objectsinv.patch, +logbook-0.4.2.ebuild, logbook-0.4.ebuild: bump; Drop support py3.1 py3.2 add py3.3, patch for doc build, add IUSE doc, upgrade all phases, closes Bug #440210