Accepting request 632149 from devel:languages:python
- 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/request/show/632149 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rawkit?expand=0&rev=2
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
24
python37.patch
Normal file
24
python37.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
From 663e90afa835d398aedd782c87b8cd0bff64bc9f Mon Sep 17 00:00:00 2001
|
||||
From: Eli Schwartz <eschwartz@archlinux.org>
|
||||
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."""
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d89dfd494461b15373ed403721e04ded65991d1d8049727ed318c9ea560a7f7e
|
||||
size 23200
|
||||
3
rawkit-0.6.0.tar.gz
Normal file
3
rawkit-0.6.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:da1c07b4099b26837f2a4fa01970702e8d127a20636a5f70f1c14470f2cd306f
|
||||
size 25143
|
||||
Reference in New Issue
Block a user