forked from pool/python-pyclipper
Accepting request 946382 from home:bnavigator:branches:devel:languages:python
- Extend package description - Remove python2 workarounds - Update to 1.3.0post2 * Export pyclipper.__version__ string (#40). * Removed long-deprecated SCALING_FACTOR global variable. - Relese 1.2.0 * Release the Global Interpreter Lock (GIL) while doing more CPU intensive calls to ClipperLib (union, difference, intersection, minkowski, offset, etc), to allow Python apps to better parallelize when using threading (#29, #30). - Drop python-pyclipper-no-unittest2.patch OBS-URL: https://build.opensuse.org/request/show/946382 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyclipper?expand=0&rev=8
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f1acd74bdb8c114fea2eab0bcf76460d1ef4b4120953e410fc7c638eb79e9e98
|
|
||||||
size 138035
|
|
3
pyclipper-1.3.0.post2.tar.gz
Normal file
3
pyclipper-1.3.0.post2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c096703dc32f2e4700a1f7054e8b58c29fe86212fa7a2c2adecb0102cb639fb2
|
||||||
|
size 132899
|
@@ -1,16 +0,0 @@
|
|||||||
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,):
|
|
@@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 14 09:37:10 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Extend package description
|
||||||
|
- Remove python2 workarounds
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 13 21:58:08 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 1.3.0post2
|
||||||
|
* Export pyclipper.__version__ string (#40).
|
||||||
|
* Removed long-deprecated SCALING_FACTOR global variable.
|
||||||
|
- Relese 1.2.0
|
||||||
|
* Release the Global Interpreter Lock (GIL) while doing more CPU
|
||||||
|
intensive calls to ClipperLib (union, difference, intersection,
|
||||||
|
minkowski, offset, etc), to allow Python apps to better
|
||||||
|
parallelize when using threading (#29, #30).
|
||||||
|
- Drop python-pyclipper-no-unittest2.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 10 16:20:24 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
Wed Jun 10 16:20:24 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyclipper
|
# spec file for package python-pyclipper
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
# Copyright (c) 2020 Xu Zhao (i@xuzhao.net).
|
# Copyright (c) 2020 Xu Zhao (i@xuzhao.net).
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -17,26 +17,21 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
%bcond_without python2
|
%define skip_python2 1
|
||||||
Name: python-pyclipper
|
Name: python-pyclipper
|
||||||
Version: 1.1.0.post3
|
Version: 1.3.0.post2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Cython wrapper for the Clipper library
|
Summary: Cython wrapper for the Clipper library for clipping lines and polygons
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/fonttools/pyclipper
|
URL: https://github.com/fonttools/pyclipper
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pyclipper/pyclipper-%{version}.zip
|
Source: https://files.pythonhosted.org/packages/source/p/pyclipper/pyclipper-%{version}.tar.gz
|
||||||
# https://github.com/fonttools/pyclipper/pull/32
|
|
||||||
Patch0: python-pyclipper-no-unittest2.patch
|
|
||||||
BuildRequires: %{python_module Cython}
|
BuildRequires: %{python_module Cython}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module setuptools_scm_git_archive}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
%if %{with python2}
|
|
||||||
# Required because of otherwise missing assertWarns
|
|
||||||
BuildRequires: python2-unittest2
|
|
||||||
%endif
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -45,12 +40,15 @@ BuildRequires: unzip
|
|||||||
|
|
||||||
%description
|
%description
|
||||||
Pyclipper is a Cython wrapper exposing public functions and classes of
|
Pyclipper is a Cython wrapper exposing public functions and classes of
|
||||||
the C++ translation of the `Angus Johnson's Clipper library (ver.
|
the C++ translation of the `Angus Johnson's Clipper library`, a library
|
||||||
6.4.2) <http://www.angusj.com/delphi/clipper.php>`__.
|
for clipping and offsetting lines and polygons.
|
||||||
|
|
||||||
|
The Clipper library performs line & polygon clipping - intersection,
|
||||||
|
union, difference & exclusive-or, and line & polygon offsetting. The
|
||||||
|
library is based on Vatti's clipping algorithm.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pyclipper-%{version}
|
%setup -q -n pyclipper-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -65,6 +63,7 @@ the C++ translation of the `Angus Johnson's Clipper library (ver.
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/pyclipper
|
||||||
|
%{python_sitearch}/pyclipper-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user