forked from pool/python-cooldict
Accepting request 682465 from devel:languages:python
- Update to 1.04: * include license * python3 compat - Drop merged cooldict_python3.patch OBS-URL: https://build.opensuse.org/request/show/682465 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cooldict?expand=0&rev=4
This commit is contained in:
24
LICENSE
24
LICENSE
@@ -1,24 +0,0 @@
|
||||
Copyright (c) 2015, The Regents of the University of California
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:03692d336f9c3f21202cc6d9650f9671d73a5ea5cf3800af35a7105034709120
|
||||
size 4745
|
||||
3
cooldict-1.04.tar.gz
Normal file
3
cooldict-1.04.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c43c9e0b4ad4e21ec8efae9f10e640c3785ac1a69ed32db9ba7f92cf52a91159
|
||||
size 5619
|
||||
@@ -1,38 +0,0 @@
|
||||
From 516fd5a87f0332444b6bf055bb755f28e1c7c9fb Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20F=C3=A4rber?= <afaerber@suse.de>
|
||||
Date: Sun, 15 Apr 2018 13:16:35 +0200
|
||||
Subject: [PATCH] Fix Python3 SyntaxError
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Python 3.6 emits the following error:
|
||||
|
||||
File "/usr/lib/python3.6/site-packages/cooldict.py", line 577
|
||||
print da[10]
|
||||
^
|
||||
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(da[10])?
|
||||
|
||||
Address this by adding the suggested parentheses.
|
||||
|
||||
Signed-off-by: Andreas Färber <afaerber@suse.de>
|
||||
---
|
||||
cooldict.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/cooldict.py b/cooldict.py
|
||||
index 27bcb5c..e070714 100644
|
||||
--- a/cooldict.py
|
||||
+++ b/cooldict.py
|
||||
@@ -574,7 +574,7 @@ def test():
|
||||
l.info("Testing SinkholeCOWDict")
|
||||
da = SinkholeCOWDict()
|
||||
try:
|
||||
- print da[10]
|
||||
+ print(da[10])
|
||||
assert False
|
||||
except KeyError:
|
||||
pass
|
||||
--
|
||||
2.16.3
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 7 13:24:35 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 1.04:
|
||||
* include license
|
||||
* python3 compat
|
||||
- Drop merged cooldict_python3.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:46:55 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-cooldict
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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,15 +18,13 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-cooldict
|
||||
Version: 1.02
|
||||
Version: 1.04
|
||||
Release: 0
|
||||
Summary: dict-like structures for Python
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/zardus/cooldict
|
||||
Source: https://files.pythonhosted.org/packages/source/c/cooldict/cooldict-%{version}.tar.gz
|
||||
Source1: https://github.com/zardus/cooldict/raw/master/LICENSE
|
||||
Patch1: cooldict_python3.patch
|
||||
BuildRequires: %{python_module ana >= 0.1}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@@ -45,8 +43,6 @@ cooldict provides some dict-like structures for Python, such as
|
||||
|
||||
%prep
|
||||
%setup -q -n cooldict-%{version}
|
||||
%patch1 -p1
|
||||
[ -e LICENSE ] || cp %{SOURCE1} LICENSE
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -55,8 +51,13 @@ cooldict provides some dict-like structures for Python, such as
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# Well there is a test, but it does not work even on the git, so skip for now
|
||||
#%%python_exec cooldict.py
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user