Hello community,

here is the log from the commit of package python-djvulibre for 
openSUSE:Factory checked in at 2018-10-18 15:38:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-djvulibre (Old)
 and      /work/SRC/openSUSE:Factory/.python-djvulibre.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-djvulibre"

Thu Oct 18 15:38:46 2018 rev:17 rq:642739 version:0.8.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-djvulibre/python-djvulibre.changes        
2018-06-29 22:24:05.322588024 +0200
+++ /work/SRC/openSUSE:Factory/.python-djvulibre.new/python-djvulibre.changes   
2018-10-18 15:38:51.854124698 +0200
@@ -1,0 +2,15 @@
+Wed Oct 17 20:57:59 UTC 2018 - lazy.k...@opensuse.org
+
+- Update to 0.8.2.
+  * Explicitly set Cython's Python language level to 2 in pxd files
+    too. This might fix build failures with future versions of Cython.
+  * Improve documentation:
+    + Update the credits file to make it clear that the project is
+    no longer being funded.
+    + Remove .txt extensions from misc. files.
+  * Improve the test suite:
+    + Treat the “POSIX” locale the same way as the “C” locale.
+    + Add test for version consistency.
+    + Add check against BSD make. (Only GNU make is supported.)
+
+-------------------------------------------------------------------

Old:
----
  python-djvulibre-0.8.1.tar.gz
  python-djvulibre-0.8.1.tar.gz.asc

New:
----
  python-djvulibre-0.8.2.tar.gz
  python-djvulibre-0.8.2.tar.gz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-djvulibre.spec ++++++
--- /var/tmp/diff_new_pack.RubPov/_old  2018-10-18 15:38:53.758122530 +0200
+++ /var/tmp/diff_new_pack.RubPov/_new  2018-10-18 15:38:53.762122526 +0200
@@ -12,13 +12,13 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-djvulibre
-Version:        0.8.1
+Version:        0.8.2
 Release:        0
 Summary:        Python Support for the DjVu Image Format
 License:        GPL-2.0-only
@@ -81,7 +81,7 @@
 
 %files %{python_files}
 %license doc/COPYING
-%doc doc/changelog doc/credits.txt doc/todo.txt
+%doc doc/changelog doc/credits doc/todo
 %{python_sitearch}/*
 
 %files -n %{name}-doc

++++++ python-djvulibre-0.8.1.tar.gz -> python-djvulibre-0.8.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/MANIFEST.in 
new/python-djvulibre-0.8.2/MANIFEST.in
--- old/python-djvulibre-0.8.1/MANIFEST.in      2018-05-16 18:38:13.000000000 
+0200
+++ new/python-djvulibre-0.8.2/MANIFEST.in      2018-09-17 17:28:44.000000000 
+0200
@@ -2,12 +2,13 @@
 
 include COPYING
 exclude README.rst
-include doc/*.txt
 include doc/COPYING
 include doc/README
 include doc/api/*.rst
 include doc/api/conf.py
 include doc/changelog
+include doc/credits
+include doc/todo
 
 include examples/*
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/PKG-INFO 
new/python-djvulibre-0.8.2/PKG-INFO
--- old/python-djvulibre-0.8.1/PKG-INFO 2018-05-30 18:59:17.000000000 +0200
+++ new/python-djvulibre-0.8.2/PKG-INFO 2018-09-17 17:31:34.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: python-djvulibre
-Version: 0.8.1
+Version: 0.8.2
 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.1/djvu/decode.pxd 
new/python-djvulibre-0.8.2/djvu/decode.pxd
--- old/python-djvulibre-0.8.1/djvu/decode.pxd  2016-06-08 23:34:06.000000000 
+0200
+++ new/python-djvulibre-0.8.2/djvu/decode.pxd  2018-09-17 17:28:50.000000000 
+0200
@@ -1,4 +1,4 @@
-# Copyright © 2007-2015 Jakub Wilk <jw...@jwilk.net>
+# Copyright © 2007-2018 Jakub Wilk <jw...@jwilk.net>
 #
 # This file is part of python-djvulibre.
 #
@@ -11,6 +11,8 @@
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 # more details.
 
+#cython: language_level=2
+
 cdef extern from 'stdio.h':
     ctypedef struct FILE
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/djvu/sexpr.pxd 
new/python-djvulibre-0.8.2/djvu/sexpr.pxd
--- old/python-djvulibre-0.8.1/djvu/sexpr.pxd   2016-06-08 23:34:06.000000000 
+0200
+++ new/python-djvulibre-0.8.2/djvu/sexpr.pxd   2018-09-17 17:28:50.000000000 
+0200
@@ -1,4 +1,4 @@
-# Copyright © 2007-2015 Jakub Wilk <jw...@jwilk.net>
+# Copyright © 2007-2018 Jakub Wilk <jw...@jwilk.net>
 #
 # This file is part of python-djvulibre.
 #
@@ -11,6 +11,8 @@
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 # more details.
 
+#cython: language_level=2
+
 cdef extern from 'libdjvu/miniexp.h':
     struct cexpr_s 'miniexp_s'
     ctypedef cexpr_s* cexpr_t 'miniexp_t'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/doc/api/conf.py 
new/python-djvulibre-0.8.2/doc/api/conf.py
--- old/python-djvulibre-0.8.1/doc/api/conf.py  2018-05-16 18:38:13.000000000 
+0200
+++ new/python-djvulibre-0.8.2/doc/api/conf.py  2018-09-17 17:28:44.000000000 
+0200
@@ -1,6 +1,6 @@
 # encoding=UTF-8
 
-# Copyright © 2009-2016 Jakub Wilk <jw...@jwilk.net>
+# Copyright © 2009-2017 Jakub Wilk <jw...@jwilk.net>
 #
 # This file is part of python-djvulibre.
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/doc/changelog 
new/python-djvulibre-0.8.2/doc/changelog
--- old/python-djvulibre-0.8.1/doc/changelog    2018-05-30 18:48:53.000000000 
+0200
+++ new/python-djvulibre-0.8.2/doc/changelog    2018-09-17 17:29:13.000000000 
+0200
@@ -1,3 +1,19 @@
+python-djvulibre (0.8.2) unstable; urgency=low
+
+  * Explicitly set Cython's Python language level to 2 in pxd files too.
+    This might fix build failures with future versions of Cython.
+  * Improve documentation:
+    + Update the credits file to make it clear that the project is no longer
+      being funded.
+    + Remove .txt extensions from misc. files.
+  * Improve the test suite:
+    + Treat the “POSIX” locale the same way as the “C” locale.
+      (POSIX says they are equivalent.)
+    + Add test for version consistency.
+    + Add check against BSD make. (Only GNU make is supported.)
+
+ -- Jakub Wilk <jw...@jwilk.net>  Mon, 17 Sep 2018 17:29:12 +0200
+
 python-djvulibre (0.8.1) unstable; urgency=low
 
   * Improve documentation:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/doc/credits 
new/python-djvulibre-0.8.2/doc/credits
--- old/python-djvulibre-0.8.1/doc/credits      1970-01-01 01:00:00.000000000 
+0100
+++ new/python-djvulibre-0.8.2/doc/credits      2018-09-17 17:28:44.000000000 
+0200
@@ -0,0 +1,3 @@
+python-djvulibre development was supported by the Polish Ministry of Science
+and Higher Education's grant no. N N519 384036 (2009–2012,
+https://bitbucket.org/jsbien/ndt).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/doc/credits.txt 
new/python-djvulibre-0.8.2/doc/credits.txt
--- old/python-djvulibre-0.8.1/doc/credits.txt  2016-06-08 23:34:06.000000000 
+0200
+++ new/python-djvulibre-0.8.2/doc/credits.txt  1970-01-01 01:00:00.000000000 
+0100
@@ -1,3 +0,0 @@
-Since May 2009 python-djvulibre development has been supported by the Polish
-Ministry of Science and Higher Education's grant no. N N519 384036
-(2009 - 2012, https://bitbucket.org/jsbien/ndt).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/doc/todo 
new/python-djvulibre-0.8.2/doc/todo
--- old/python-djvulibre-0.8.1/doc/todo 1970-01-01 01:00:00.000000000 +0100
+++ new/python-djvulibre-0.8.2/doc/todo 2018-09-17 17:28:44.000000000 +0200
@@ -0,0 +1,16 @@
+Verify that byte and Unicode strings are used consistently.
+Document how they are used.
+
+The ``FileUri`` class is ugly.
+Implement a nicer interface.
+
+Add an example for using streams.
+
+Improve the test suite.
+
+   Track test coverage.
+
+   Cython ≥ 0.23 provides the plugin ``Cython.Coverage``
+   that can be added to ``.coveragerc``.
+
+.. vim:ft=rst ts=3 sts=3 sw=3 et tw=72
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/doc/todo.txt 
new/python-djvulibre-0.8.2/doc/todo.txt
--- old/python-djvulibre-0.8.1/doc/todo.txt     2016-06-08 23:34:06.000000000 
+0200
+++ new/python-djvulibre-0.8.2/doc/todo.txt     1970-01-01 01:00:00.000000000 
+0100
@@ -1,18 +0,0 @@
-Verify that byte and Unicode strings are used consistently.
-Document how they are used.
-
-The ``FileUri`` class is ugly.
-Implement a nicer interface.
-
-Add an example for using streams.
-
-Improve the test suite.
-
-   Track test coverage.
-
-   Cython ≥ 0.23 provides the plugin ``Cython.Coverage``
-   that can be added to ``.coveragerc``.
-
-Improve the documentation.
-
-.. vim:ft=rst ts=3 sts=3 sw=3 et tw=72
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-djvulibre-0.8.1/private/apt-install-build-reqs 
new/python-djvulibre-0.8.2/private/apt-install-build-reqs
--- old/python-djvulibre-0.8.1/private/apt-install-build-reqs   2016-06-08 
23:34:06.000000000 +0200
+++ new/python-djvulibre-0.8.2/private/apt-install-build-reqs   2018-09-17 
17:28:44.000000000 +0200
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Copyright © 2015-2016 Jakub Wilk <jw...@jwilk.net>
+# Copyright © 2015-2018 Jakub Wilk <jw...@jwilk.net>
 #
 # This file is part of python-djvulibre.
 #
@@ -29,31 +29,37 @@
 
 usage()
 {
-    printf '%s [--tests]\n' "$0"
+    printf 'Usage: %s [--tests]\n' "$0"
 }
 
-args=$(getopt -n "$0" -o 'h' --long 'help,tests' -- "$@")
-if [ $? -ne 0 ]
+set -e -u
+
+if ! args=$(getopt -n "$0" -o 'h' --long 'help,tests,py3' -- "$@")
 then
     usage >&2
     exit 1
 fi
 opt_tests=
+opt_py3=
 eval set -- "$args"
 while true
 do
     case "$1" in
         -h|--help) usage; exit 0;;
-        --tests) opt_tests=y ; shift;;
+        --tests) opt_tests=y; shift;;
+        --py3) opt_py3=y; shift;;
         --) shift; break;;
         *) printf '%s: internal error (%s)\n' "$0" "$1" >&2; exit 1;;
     esac
 done
 
 [ "$opt_tests" ] && pkgs="$pkgs $pkgs_tests"
+if [ "$opt_py3" ]
+then
+    pkgs=$(printf '%s' "$pkgs" | sed -e 's/^python-/python3-/')
+fi
 
 PS4='# '
-set -e
 (
     set -x
     # shellcheck disable=SC2086
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/private/build-and-test 
new/python-djvulibre-0.8.2/private/build-and-test
--- old/python-djvulibre-0.8.1/private/build-and-test   2018-05-16 
18:38:13.000000000 +0200
+++ new/python-djvulibre-0.8.2/private/build-and-test   2018-09-17 
17:28:44.000000000 +0200
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Copyright © 2015-2016 Jakub Wilk <jw...@jwilk.net>
+# Copyright © 2015-2018 Jakub Wilk <jw...@jwilk.net>
 #
 # This file is part of python-djvulibre.
 #
@@ -18,8 +18,9 @@
     printf 'Usage: %s [--no-build] [pythonX.Y...]\n' "$0"
 }
 
-args=$(getopt -n "$0" -o 'hj:' --long 'help,jobs:,no-build' -- "$@")
-if [ $? -ne 0 ]
+set -e -u
+
+if ! args=$(getopt -n "$0" -o 'hj:' --long 'help,jobs:,no-build' -- "$@")
 then
     usage >&2
     exit 1
@@ -38,7 +39,6 @@
     esac
 done
 
-set -e
 [ $# = 0 ] && set -- python
 [ -z $opt_build ] ||
 printf '%s\n' "$@" \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/private/check-rst 
new/python-djvulibre-0.8.2/private/check-rst
--- old/python-djvulibre-0.8.1/private/check-rst        2018-05-16 
18:38:13.000000000 +0200
+++ new/python-djvulibre-0.8.2/private/check-rst        2018-09-17 
17:28:44.000000000 +0200
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Copyright © 2016-2017 Jakub Wilk <jw...@jwilk.net>
+# Copyright © 2016-2018 Jakub Wilk <jw...@jwilk.net>
 #
 # This file is part of python-djvulibre.
 #
@@ -13,14 +13,25 @@
 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 # more details.
 
-here=$(dirname "$0")
+set -e -u
+here=${0%/*}
+here=${here#./}
+root="$here/../"
+root=${root#private/../}
 rst2xml=$(command -v rst2xml) \
 || rst2xml=$(command -v rst2xml.py) \
 || { printf 'rst2xml not found\n' >&2; exit 1; }
-options='--input-encoding=UTF-8 --output-encoding=UTF-8 --strict'
+rst2xml=${rst2xml##*/}
+options='--input-encoding=UTF-8 --strict'
 if [ $# -eq 0 ]
 then
-    grep -r -w -l ft=rst doc/
+    print_desc='python setup.py --long-description'
+    echo "(cd ${root:-.} && $print_desc) | $rst2xml $options - /dev/null" >&2
+    (cd "${root:-.}" && $print_desc) | "$rst2xml" $options - /dev/null || exit 
1
+fi
+if [ $# -eq 0 ]
+then
+    grep -r -w -l ft=rst "${root}doc/"
 else
     printf '%s\n' "$@"
 fi |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/tests/images/Makefile 
new/python-djvulibre-0.8.2/tests/images/Makefile
--- old/python-djvulibre-0.8.1/tests/images/Makefile    2016-06-08 
23:34:06.000000000 +0200
+++ new/python-djvulibre-0.8.2/tests/images/Makefile    2018-09-17 
17:28:44.000000000 +0200
@@ -1,4 +1,4 @@
-# Copyright © 2010-2015 Jakub Wilk <jw...@jwilk.net>
+# Copyright © 2010-2018 Jakub Wilk <jw...@jwilk.net>
 #
 # This file is part of python-djvulibre.
 #
@@ -31,4 +31,6 @@
 clean:
        rm -f $(pdf_files) *.log *.out *.aux
 
+.error = GNU make is required
+
 # vim:ts=4 sts=4 sw=4 noet
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/tests/test_decode.py 
new/python-djvulibre-0.8.2/tests/test_decode.py
--- old/python-djvulibre-0.8.1/tests/test_decode.py     2018-05-30 
11:45:41.000000000 +0200
+++ new/python-djvulibre-0.8.2/tests/test_decode.py     2018-09-17 
17:28:44.000000000 +0200
@@ -90,6 +90,7 @@
     skip_unless_c_messages,
     skip_unless_command_exists,
     skip_unless_translation_exists,
+    get_changelog_version,
     interim_locale,
     locale_encoding,
     wildcard_import,
@@ -844,6 +845,7 @@
 
 def test_version():
     assert_is_instance(__version__, str)
+    assert_equal(__version__, get_changelog_version())
     assert_is_instance(DDJVU_VERSION, int)
 
 def test_wildcard_import():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/tests/test_sexpr.py 
new/python-djvulibre-0.8.2/tests/test_sexpr.py
--- old/python-djvulibre-0.8.1/tests/test_sexpr.py      2018-05-16 
18:38:13.000000000 +0200
+++ new/python-djvulibre-0.8.2/tests/test_sexpr.py      2018-09-17 
17:28:44.000000000 +0200
@@ -50,6 +50,7 @@
     assert_raises,
     assert_raises_str,
     assert_repr,
+    get_changelog_version,
     wildcard_import,
     # Python 2/3 compat:
     StringIO,
@@ -755,6 +756,7 @@
 
 def test_version():
     assert_is_instance(__version__, str)
+    assert_equal(__version__, get_changelog_version())
 
 def test_wildcard_import():
     ns = wildcard_import('djvu.sexpr')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-djvulibre-0.8.1/tests/tools.py 
new/python-djvulibre-0.8.2/tests/tools.py
--- old/python-djvulibre-0.8.1/tests/tools.py   2018-05-16 18:38:13.000000000 
+0200
+++ new/python-djvulibre-0.8.2/tests/tools.py   2018-09-17 17:28:44.000000000 
+0200
@@ -16,6 +16,7 @@
 import codecs
 import contextlib
 import distutils.spawn
+import io
 import locale
 import os
 import re
@@ -32,6 +33,13 @@
     assert_not_equal,
 )
 
+def get_changelog_version():
+    here = os.path.dirname(__file__)
+    path = os.path.join(here, '../doc/changelog')
+    with io.open(path, encoding='UTF-8') as file:
+        line = file.readline()
+    return line.split()[1].strip('()')
+
 def noseimport(vmaj, vmin, name=None):
     def wrapper(f):
         if f.__module__ == 'unittest.case':
@@ -208,7 +216,7 @@
     return assert_equal(repr(self), expected)
 
 def skip_unless_c_messages():
-    if locale.setlocale(locale.LC_MESSAGES) != 'C':
+    if locale.setlocale(locale.LC_MESSAGES) not in ('C', 'POSIX'):
         raise SkipTest('you need to run this test with LC_MESSAGES=C')
     if os.getenv('LANGUAGE', '') != '':
         raise SkipTest('you need to run this test with LANGUAGE unset')
@@ -265,6 +273,7 @@
     # misc
     'assert_raises_str',
     'assert_repr',
+    'get_changelog_version',
     'interim',
     'interim_locale',
     'locale_encoding',


Reply via email to