-
Notifications
You must be signed in to change notification settings - Fork 75
Description
I am trying to package this library to replace the aging https://build.opensuse.org/package/show/devel:languages:python:misc/python-yajl which doesnt build against the system library , which is not desirable based on good packaging guidelines.
fwiw, the yajl project is at https://build.opensuse.org/package/show/devel:libraries:c_c++/libyajl
I have the package almost working on openSUSE at https://build.opensuse.org/package/show/home:jayvdb:py-new/python-yajl-py, using the github archive tag 2.1.2, except errors below.
I suspect the version mismatch test failing is something that I just need to bypass, but the others look quite concerning.
Also it looks like the versioning happening here is going to be a problem for distro packaging, as this library doesnt appear to increment any version number when changes are made.
[ 19s] ======================================================================
[ 19s] FAIL: test_check_yajl_version_warnsOnlyWhenMismatchedVersions (tests.test_yajl.YajlCommonTests)
[ 19s] ----------------------------------------------------------------------
[ 19s] Traceback (most recent call last):
[ 19s] File "/home/abuild/rpmbuild/BUILD/yajl-py-2.1.2/tests/test_yajl.py", line 266, in test_check_yajl_version_warnsOnlyWhenMismatchedVersions
[ 19s] self.assertFalse(yajl.check_yajl_version())
[ 19s] AssertionError: True is not false
[ 19s]
[ 19s] ======================================================================
[ 19s] FAIL: test_YajlGen_beautifyOutput (tests.test_yajl.YajlGenTests)
[ 19s] ----------------------------------------------------------------------
[ 19s] Traceback (most recent call last):
[ 19s] File "/home/abuild/rpmbuild/BUILD/yajl-py-2.1.2/tests/test_yajl.py", line 207, in test_YajlGen_beautifyOutput
[ 19s] b''.join(results))
[ 19s] AssertionError: b'{\n "a": [\n null,\n tru[62 chars]n}\n' != b''
[ 19s]
[ 19s] ======================================================================
[ 19s] FAIL: test_YajlGen_indentOutput (tests.test_yajl.YajlGenTests)
[ 19s] ----------------------------------------------------------------------
[ 19s] Traceback (most recent call last):
[ 19s] File "/home/abuild/rpmbuild/BUILD/yajl-py-2.1.2/tests/test_yajl.py", line 223, in test_YajlGen_indentOutput
[ 19s] b''.join(results))
[ 19s] AssertionError: b'{\n\t"a": [\n\t\tnull,\n\t\ttrue,\n\t\t1,[34 chars]n}\n' != b''
[ 19s]
[ 19s] ======================================================================
[ 19s] FAIL: test_YajlGen_minimizeOutput (tests.test_yajl.YajlGenTests)
[ 19s] ----------------------------------------------------------------------
[ 19s] Traceback (most recent call last):
[ 19s] File "/home/abuild/rpmbuild/BUILD/yajl-py-2.1.2/tests/test_yajl.py", line 191, in test_YajlGen_minimizeOutput
[ 19s] b''.join(results))
[ 19s] AssertionError: b'{"a":[null,true,1,-6.5,3,"b"]}' != b''
[ 19s]
[ 19s] ======================================================================
[ 19s] FAIL: test_YajlGen_streamedOutput (tests.test_yajl.YajlGenTests)
[ 19s] ----------------------------------------------------------------------
[ 19s] Traceback (most recent call last):
[ 19s] File "/home/abuild/rpmbuild/BUILD/yajl-py-2.1.2/tests/test_yajl.py", line 184, in test_YajlGen_streamedOutput
[ 19s] self.assertEqual(b',"b"]}', results[1])
[ 19s] AssertionError: b',"b"]}' != b''