Hello community,
here is the log from the commit of package python-djvulibre for
openSUSE:Factory checked in at 2019-11-06 14:04:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-djvulibre (Old)
and /work/SRC/openSUSE:Factory/.python-djvulibre.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-djvulibre"
Wed Nov 6 14:04:52 2019 rev:21 rq:745320 version:0.8.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-djvulibre/python-djvulibre.changes
2019-09-18 13:10:48.684697831 +0200
+++
/work/SRC/openSUSE:Factory/.python-djvulibre.new.2990/python-djvulibre.changes
2019-11-06 14:04:56.492712902 +0100
@@ -1,0 +2,8 @@
+Mon Nov 4 13:13:44 UTC 2019 - Kyrill Detinov <[email protected]>
+
+- Update to 0.8.5.
+ * Improve the setup script:
+ + Use the current Python interpreter for running Cython.
+ + Improve error handling.
+
+-------------------------------------------------------------------
Old:
----
python-djvulibre-0.8.4.tar.gz
python-djvulibre-0.8.4.tar.gz.asc
New:
----
python-djvulibre-0.8.5.tar.gz
python-djvulibre-0.8.5.tar.gz.asc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-djvulibre.spec ++++++
--- /var/tmp/diff_new_pack.edkMfs/_old 2019-11-06 14:04:56.984713417 +0100
+++ /var/tmp/diff_new_pack.edkMfs/_new 2019-11-06 14:04:56.984713417 +0100
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-djvulibre
-Version: 0.8.4
+Version: 0.8.5
Release: 0
Summary: Python Support for the DjVu Image Format
License: GPL-2.0-only
@@ -61,8 +61,6 @@
%prep
%setup -q
chmod -x examples/*
-# https://github.com/jwilk/python-djvulibre/pull/11
-sed -i "s/'python'/sys.executable/" setup.py
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
++++++ python-djvulibre-0.8.4.tar.gz -> python-djvulibre-0.8.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-djvulibre-0.8.4/PKG-INFO
new/python-djvulibre-0.8.5/PKG-INFO
--- old/python-djvulibre-0.8.4/PKG-INFO 2019-03-11 17:00:39.000000000 +0100
+++ new/python-djvulibre-0.8.5/PKG-INFO 2019-09-23 18:56:00.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: python-djvulibre
-Version: 0.8.4
+Version: 0.8.5
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.4/doc/changelog
new/python-djvulibre-0.8.5/doc/changelog
--- old/python-djvulibre-0.8.4/doc/changelog 2019-03-11 16:53:01.000000000
+0100
+++ new/python-djvulibre-0.8.5/doc/changelog 2019-09-23 18:51:44.000000000
+0200
@@ -1,3 +1,13 @@
+python-djvulibre (0.8.5) unstable; urgency=low
+
+ * Improve the setup script:
+ + Use the current Python interpreter for running Cython.
+ Thanks to John Vandenberg for the bug report and the initial patch.
+ https://github.com/jwilk/python-djvulibre/issues/10
+ + Improve error handling.
+
+ -- Jakub Wilk <[email protected]> Mon, 23 Sep 2019 18:51:43 +0200
+
python-djvulibre (0.8.4) unstable; urgency=low
* Fix compatibility with Python 3.8.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-djvulibre-0.8.4/private/check-rst
new/python-djvulibre-0.8.5/private/check-rst
--- old/python-djvulibre-0.8.4/private/check-rst 2018-09-17
17:28:44.000000000 +0200
+++ new/python-djvulibre-0.8.5/private/check-rst 2019-09-23
18:48:31.000000000 +0200
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/usr/bin/env bash
-# Copyright © 2016-2018 Jakub Wilk <[email protected]>
+# Copyright © 2016-2019 Jakub Wilk <[email protected]>
#
# This file is part of python-djvulibre.
#
@@ -14,6 +14,7 @@
# more details.
set -e -u
+set -o pipefail
here=${0%/*}
here=${here#./}
root="$here/../"
@@ -27,7 +28,7 @@
then
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
+ (cd "${root:-.}" && $print_desc) | "$rst2xml" $options - /dev/null
fi
if [ $# -eq 0 ]
then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-djvulibre-0.8.4/setup.py
new/python-djvulibre-0.8.5/setup.py
--- old/python-djvulibre-0.8.4/setup.py 2018-05-16 18:38:13.000000000 +0200
+++ new/python-djvulibre-0.8.5/setup.py 2019-09-23 18:48:31.000000000 +0200
@@ -1,6 +1,6 @@
# encoding=UTF-8
-# Copyright © 2007-2018 Jakub Wilk <[email protected]>
+# Copyright © 2007-2019 Jakub Wilk <[email protected]>
#
# This file is part of python-djvulibre.
#
@@ -33,7 +33,8 @@
if need_setuptools:
import setuptools.extension
- assert setuptools.extension.have_pyrex
+ del setuptools.extension
+ del setuptools
import distutils.core
import distutils.ccompiler
@@ -60,7 +61,7 @@
else:
distutils644.install()
-b'' # Python >= 2.6 is required
+type(b'') # Python >= 2.6 is required
def ext_modules():
for pyx_file in glob.iglob(os.path.join('djvu', '*.pyx')):
@@ -143,7 +144,7 @@
return distutils.version.LooseVersion(version)
def get_cython_version():
- cmdline = ['python', '-m', 'cython', '--version']
+ cmdline = [sys.executable, '-m', 'cython', '--version']
cmd = ipc.Popen(cmdline, stdout=ipc.PIPE, stderr=ipc.STDOUT)
stdout, stderr = cmd.communicate()
if not isinstance(stdout, str):
@@ -202,7 +203,8 @@
def cython_sources(self, ext):
for source in ext.sources:
source_base = os.path.basename(source)
- assert source_base.endswith('.pyx')
+ # This assertion may fail with setuptools < 0.6.16, which didn't
understand Cython.
+ assert source_base.endswith('.pyx'), '{path} is not a .pyx
file'.format(path=source_base)
target = os.path.join(
self.src_dir,
'{mod}.c'.format(mod=source_base[:-4])
@@ -217,7 +219,7 @@
if cython_version < req_cython_version:
raise RuntimeError('Cython >= {ver} is
required'.format(ver=req_cython_version))
distutils.spawn.spawn([
- 'python', '-m', 'cython',
+ sys.executable, '-m', 'cython',
'-I', os.path.dirname(self.config_path),
'-o', target,
source,