From ad31904da8f9b2476d32d69b8f5bbb62dda09299e9c094373721e32aa04a0b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 29 Aug 2018 12:02:42 +0000 Subject: [PATCH] - Update to 0.6.0: * Support for libraw 1.8 - Add patch to build with python 3.7: * python37.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rawkit?expand=0&rev=3 --- python-rawkit.changes | 8 ++++++++ python-rawkit.spec | 14 +++++++------- python37.patch | 24 ++++++++++++++++++++++++ rawkit-0.5.0.tar.gz | 3 --- rawkit-0.6.0.tar.gz | 3 +++ 5 files changed, 42 insertions(+), 10 deletions(-) create mode 100644 python37.patch delete mode 100644 rawkit-0.5.0.tar.gz create mode 100644 rawkit-0.6.0.tar.gz diff --git a/python-rawkit.changes b/python-rawkit.changes index 830afd1..0607f49 100644 --- a/python-rawkit.changes +++ b/python-rawkit.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Aug 29 11:59:54 UTC 2018 - tchvatal@suse.com + +- Update to 0.6.0: + * Support for libraw 1.8 +- Add patch to build with python 3.7: + * python37.patch + ------------------------------------------------------------------- Fri Jul 7 10:25:36 UTC 2017 - aloisio@gmx.com diff --git a/python-rawkit.spec b/python-rawkit.spec index 02a0dae..c2447b1 100644 --- a/python-rawkit.spec +++ b/python-rawkit.spec @@ -1,7 +1,7 @@ # # spec file for package python-rawkit # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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,19 +18,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-rawkit -Version: 0.5.0 +Version: 0.6.0 Release: 0 Summary: CTypes based LibRaw bindings License: MIT Group: Development/Languages/Python -Url: https://github.com/photoshell/rawkit/issues +URL: https://github.com/photoshell/rawkit Source0: https://files.pythonhosted.org/packages/source/r/rawkit/rawkit-%{version}.tar.gz +Patch0: python37.patch BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -40,6 +40,7 @@ binding for Python inspired by the Wand API. %prep %setup -q -n rawkit-%{version} +%autopatch -p1 %build %python_build @@ -52,9 +53,8 @@ binding for Python inspired by the Wand API. %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python %{_bindir}/py.test -v tests %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst +%license LICENSE +%doc README.rst %{python_sitelib}/* %changelog - diff --git a/python37.patch b/python37.patch new file mode 100644 index 0000000..25bac98 --- /dev/null +++ b/python37.patch @@ -0,0 +1,24 @@ +From 663e90afa835d398aedd782c87b8cd0bff64bc9f Mon Sep 17 00:00:00 2001 +From: Eli Schwartz +Date: Mon, 6 Aug 2018 21:07:05 -0400 +Subject: [PATCH] python3.7 compatibility: Generators should not raise + StopIteration + +See PEP 479 +--- + rawkit/options.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/rawkit/options.py b/rawkit/options.py +index 1e1cd4b..678ad96 100644 +--- a/rawkit/options.py ++++ b/rawkit/options.py +@@ -255,7 +255,7 @@ def __iter__(self): + try: + yield self.keys()[idx - 1] + except IndexError: +- raise StopIteration ++ return + + def __repr__(self): + """Represents the options as a dict.""" diff --git a/rawkit-0.5.0.tar.gz b/rawkit-0.5.0.tar.gz deleted file mode 100644 index 5ea1566..0000000 --- a/rawkit-0.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d89dfd494461b15373ed403721e04ded65991d1d8049727ed318c9ea560a7f7e -size 23200 diff --git a/rawkit-0.6.0.tar.gz b/rawkit-0.6.0.tar.gz new file mode 100644 index 0000000..ba2f2d5 --- /dev/null +++ b/rawkit-0.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da1c07b4099b26837f2a4fa01970702e8d127a20636a5f70f1c14470f2cd306f +size 25143