Hello community,
here is the log from the commit of package python-pyclipper for
openSUSE:Factory checked in at 2020-06-10 00:45:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyclipper (Old)
and /work/SRC/openSUSE:Factory/.python-pyclipper.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyclipper"
Wed Jun 10 00:45:48 2020 rev:2 rq:810906 version:1.1.0.post3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyclipper/python-pyclipper.changes
2020-03-06 21:28:29.697594363 +0100
+++
/work/SRC/openSUSE:Factory/.python-pyclipper.new.3606/python-pyclipper.changes
2020-06-10 00:45:55.302560176 +0200
@@ -1,0 +2,8 @@
+Tue Jun 2 15:03:59 UTC 2020 - [email protected]
+
+- drop dependency on unittest2 for python3
+- added patches
+ https://github.com/fonttools/pyclipper/pull/32
+ + python-pyclipper-no-unittest2.patch
+
+-------------------------------------------------------------------
New:
----
python-pyclipper-no-unittest2.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyclipper.spec ++++++
--- /var/tmp/diff_new_pack.dzmfkR/_old 2020-06-10 00:45:56.666563581 +0200
+++ /var/tmp/diff_new_pack.dzmfkR/_new 2020-06-10 00:45:56.666563581 +0200
@@ -18,6 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without python2
Name: python-pyclipper
Version: 1.1.0.post3
Release: 0
@@ -25,12 +26,16 @@
License: MIT
URL: https://github.com/fonttools/pyclipper
Source:
https://files.pythonhosted.org/packages/source/p/pyclipper/pyclipper-%{version}.zip
+# https://github.com/fonttools/pyclipper/pull/32
+Patch0: python-pyclipper-no-unittest2.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
-BuildRequires: %{python_module unittest2}
+%if %{with python2}
+BuildRequires: python2-unittest2
+%endif
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
@@ -44,6 +49,7 @@
%prep
%setup -q -n pyclipper-%{version}
+%patch0 -p1
%build
%python_build
++++++ python-pyclipper-no-unittest2.patch ++++++
Index: pyclipper-1.1.0.post3/tests/test_pyclipper.py
===================================================================
--- pyclipper-1.1.0.post3.orig/tests/test_pyclipper.py 2019-11-29
17:53:00.000000000 +0100
+++ pyclipper-1.1.0.post3/tests/test_pyclipper.py 2020-06-02
16:53:28.959317899 +0200
@@ -4,7 +4,10 @@ Tests for Pyclipper wrapper library.
"""
from __future__ import print_function
-from unittest2 import TestCase, main
+try:
+ from unittest2 import TestCase, main
+except ImportError:
+ from unittest import TestCase, main
import sys
if sys.version_info < (3,):