Hello community, here is the log from the commit of package python-djvulibre for openSUSE:Factory checked in at 2019-04-23 14:34:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-djvulibre (Old) and /work/SRC/openSUSE:Factory/.python-djvulibre.new.5536 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-djvulibre" Tue Apr 23 14:34:44 2019 rev:19 rq:692479 version:0.8.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-djvulibre/python-djvulibre.changes 2018-12-07 14:35:05.751093820 +0100 +++ /work/SRC/openSUSE:Factory/.python-djvulibre.new.5536/python-djvulibre.changes 2019-04-23 14:34:49.413420094 +0200 @@ -1,0 +2,8 @@ +Tue Apr 9 06:05:11 UTC 2019 - Kyrill Detinov <lazy.k...@opensuse.org> + +- Update to 0.8.4. + * Fix compatibility with Python 3.8. + * Fix error handling when getting S-expressions for outlines, + annotations or page texts. + +------------------------------------------------------------------- Old: ---- python-djvulibre-0.8.2.tar.gz python-djvulibre-0.8.2.tar.gz.asc New: ---- python-djvulibre-0.8.4.tar.gz python-djvulibre-0.8.4.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-djvulibre.spec ++++++ --- /var/tmp/diff_new_pack.9HzSAA/_old 2019-04-23 14:34:49.893420460 +0200 +++ /var/tmp/diff_new_pack.9HzSAA/_new 2019-04-23 14:34:49.897420464 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-djvulibre # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-djvulibre -Version: 0.8.2 +Version: 0.8.4 Release: 0 Summary: Python Support for the DjVu Image Format License: GPL-2.0-only ++++++ python-djvulibre-0.8.2.tar.gz -> python-djvulibre-0.8.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-djvulibre-0.8.2/PKG-INFO new/python-djvulibre-0.8.4/PKG-INFO --- old/python-djvulibre-0.8.2/PKG-INFO 2018-09-17 17:31:34.000000000 +0200 +++ new/python-djvulibre-0.8.4/PKG-INFO 2019-03-11 17:00:39.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-djvulibre -Version: 0.8.2 +Version: 0.8.4 Summary: Python support for the DjVu image format Home-page: http://jwilk.net/software/python-djvulibre Author: Jakub Wilk diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-djvulibre-0.8.2/djvu/decode.pyx new/python-djvulibre-0.8.4/djvu/decode.pyx --- old/python-djvulibre-0.8.2/djvu/decode.pyx 2018-05-29 22:27:01.000000000 +0200 +++ new/python-djvulibre-0.8.4/djvu/decode.pyx 2019-03-11 16:52:08.000000000 +0100 @@ -1,4 +1,4 @@ -# Copyright © 2007-2018 Jakub Wilk <jw...@jwilk.net> +# Copyright © 2007-2019 Jakub Wilk <jw...@jwilk.net> # # This file is part of python-djvulibre. # @@ -2807,9 +2807,9 @@ cdef object JobException_from_sexpr(object sexpr): if typecheck(sexpr, SymbolExpression): if sexpr.value is JOB_FAILED_SYMBOL: - raise JobFailed - elif sexpr.valu is JOB_STOPPED_SYMBOL: - raise JobStopped + return JobFailed + elif sexpr.value is JOB_STOPPED_SYMBOL: + return JobStopped cdef JobException_from_c(ddjvu_status_t code): try: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-djvulibre-0.8.2/djvu/sexpr.pyx new/python-djvulibre-0.8.4/djvu/sexpr.pyx --- old/python-djvulibre-0.8.2/djvu/sexpr.pyx 2018-05-29 22:27:02.000000000 +0200 +++ new/python-djvulibre-0.8.4/djvu/sexpr.pyx 2019-03-10 19:29:04.000000000 +0100 @@ -1,4 +1,4 @@ -# Copyright © 2007-2018 Jakub Wilk <jw...@jwilk.net> +# Copyright © 2007-2019 Jakub Wilk <jw...@jwilk.net> # # This file is part of python-djvulibre. # @@ -1052,9 +1052,12 @@ def __deepcopy__(self, memo): return _Expression_(self._get_value()) -import collections -collections.MutableSequence.register(ListExpression) -del collections +if sys.version_info >= (3, 3): + import collections.abc as collections_abc +else: + import collections as collections_abc +collections_abc.MutableSequence.register(ListExpression) +del collections_abc cdef class _ListExpressionIterator: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-djvulibre-0.8.2/doc/README new/python-djvulibre-0.8.4/doc/README --- old/python-djvulibre-0.8.2/doc/README 2018-05-16 18:38:13.000000000 +0200 +++ new/python-djvulibre-0.8.4/doc/README 2019-02-11 20:32:46.000000000 +0100 @@ -22,6 +22,7 @@ Additionally, the following software is needed to run the tests: * nose_ +* subprocess32_ (only for Python 2.X) * DjVuLibre_ command-line tools * Ghostscript_ @@ -33,6 +34,8 @@ https://wiki.freedesktop.org/www/Software/pkg-config/ .. _nose: https://nose.readthedocs.io/ +.. _subprocess32: + https://pypi.org/project/subprocess32/ .. _Ghostscript: https://www.ghostscript.com/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-djvulibre-0.8.2/doc/changelog new/python-djvulibre-0.8.4/doc/changelog --- old/python-djvulibre-0.8.2/doc/changelog 2018-09-17 17:29:13.000000000 +0200 +++ new/python-djvulibre-0.8.4/doc/changelog 2019-03-11 16:53:01.000000000 +0100 @@ -1,3 +1,18 @@ +python-djvulibre (0.8.4) unstable; urgency=low + + * Fix compatibility with Python 3.8. + * Fix error handling when getting S-expressions for outlines, annotations or + page texts. + + -- Jakub Wilk <jw...@jwilk.net> Mon, 11 Mar 2019 16:52:59 +0100 + +python-djvulibre (0.8.3) unstable; urgency=low + + * Require subprocess32 for test suite with Python 2.X. + https://github.com/jwilk/python-djvulibre/issues/8 + + -- Jakub Wilk <jw...@jwilk.net> Mon, 11 Feb 2019 20:53:17 +0100 + python-djvulibre (0.8.2) unstable; urgency=low * Explicitly set Cython's Python language level to 2 in pxd files too. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-djvulibre-0.8.2/private/apt-install-build-reqs new/python-djvulibre-0.8.4/private/apt-install-build-reqs --- old/python-djvulibre-0.8.2/private/apt-install-build-reqs 2018-09-17 17:28:44.000000000 +0200 +++ new/python-djvulibre-0.8.4/private/apt-install-build-reqs 2019-02-11 20:47:07.000000000 +0100 @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright © 2015-2018 Jakub Wilk <jw...@jwilk.net> +# Copyright © 2015-2019 Jakub Wilk <jw...@jwilk.net> # # This file is part of python-djvulibre. # @@ -22,6 +22,7 @@ ' pkgs_tests=' python-nose +python-subprocess32 djvulibre-bin ghostscript ' @@ -56,7 +57,7 @@ [ "$opt_tests" ] && pkgs="$pkgs $pkgs_tests" if [ "$opt_py3" ] then - pkgs=$(printf '%s' "$pkgs" | sed -e 's/^python-/python3-/') + pkgs=$(printf '%s' "$pkgs" | sed -e '/^python-subprocess32$/d' -e 's/^python-/python3-/') fi PS4='# ' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-djvulibre-0.8.2/private/build-and-test new/python-djvulibre-0.8.4/private/build-and-test --- old/python-djvulibre-0.8.2/private/build-and-test 2018-09-17 17:28:44.000000000 +0200 +++ new/python-djvulibre-0.8.4/private/build-and-test 2018-10-04 12:32:41.000000000 +0200 @@ -44,8 +44,7 @@ printf '%s\n' "$@" \ | xargs -P"$opt_jobs" -t -I'{python}' env '{python}' setup.py build --build-lib 'build/{python}' cd tests -nosetests=$(command -v nosetests) || { echo nosetests not found >&2; exit 1; } printf '%s\n' "$@" \ -| xargs -t -I'{python}' env PYTHONPATH="$PWD/../build/{python}" '{python}' "$nosetests" --verbose +| xargs -t -I'{python}' env PYTHONPATH="$PWD/../build/{python}" '{python}' -c 'import nose; nose.main()' --verbose # vim:ts=4 sts=4 sw=4 et diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-djvulibre-0.8.2/tests/test_decode.py new/python-djvulibre-0.8.4/tests/test_decode.py --- old/python-djvulibre-0.8.2/tests/test_decode.py 2018-09-17 17:28:44.000000000 +0200 +++ new/python-djvulibre-0.8.4/tests/test_decode.py 2019-02-11 20:47:07.000000000 +0100 @@ -1,6 +1,6 @@ # encoding=UTF-8 -# Copyright © 2007-2018 Jakub Wilk <jw...@jwilk.net> +# Copyright © 2007-2019 Jakub Wilk <jw...@jwilk.net> # # This file is part of python-djvulibre. # @@ -18,9 +18,20 @@ import os import re import shutil -import subprocess import sys import tempfile +import warnings + +if sys.version_info >= (3, 2): + import subprocess +else: + try: + import subprocess32 as subprocess + except ImportError as exc: + import subprocess + msg = str(exc) + warnings.warn(msg, category=RuntimeWarning) # subprocess is not thread-safe in Python < 3.2 + del msg, exc from djvu.decode import ( AffineTransform, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-djvulibre-0.8.2/tests/test_sexpr.py new/python-djvulibre-0.8.4/tests/test_sexpr.py --- old/python-djvulibre-0.8.2/tests/test_sexpr.py 2018-09-17 17:28:44.000000000 +0200 +++ new/python-djvulibre-0.8.4/tests/test_sexpr.py 2019-03-10 19:29:04.000000000 +0100 @@ -1,6 +1,6 @@ # encoding=UTF-8 -# Copyright © 2007-2018 Jakub Wilk <jw...@jwilk.net> +# Copyright © 2007-2019 Jakub Wilk <jw...@jwilk.net> # # This file is part of python-djvulibre. # @@ -14,14 +14,19 @@ # more details. import codecs -import collections import copy import errno import io import os import shutil +import sys import tempfile +if sys.version_info >= (3, 3): + import collections.abc as collections_abc +else: + import collections as collections_abc + import pickle try: import cPickle as cpickle @@ -518,8 +523,8 @@ def test_abc(self): x = Expression(()) - assert_is_instance(x, collections.MutableSequence) - assert_is_instance(iter(x), collections.Iterator) + assert_is_instance(x, collections_abc.MutableSequence) + assert_is_instance(iter(x), collections_abc.Iterator) def test_pickle(self): for lst in (), (1, 2, 3), (1, (2, 3)):