14
0

Accepting request 702789 from home:mcalabkova:branches:devel:languages:python

- update to version 1.1.2
  * Add ItemSortedDict.__deepcopy__ for deep copying
  * Define _setitem = __setitem__ in overrides
  * Some new tests and various code cleanup

OBS-URL: https://build.opensuse.org/request/show/702789
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortedcollections?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2019-05-14 15:46:07 +00:00
committed by Git OBS Bridge
parent 89b3c9808c
commit 54b14efbff
4 changed files with 20 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-sortedcollections
#
# 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,18 +18,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-sortedcollections
Version: 1.0.1
Version: 1.1.2
Release: 0
Summary: Python Sorted Collections
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/grantjenks/sortedcollections
Source: https://files.pythonhosted.org/packages/source/s/sortedcollections/sortedcollections-%{version}.tar.gz
#Source: https://files.pythonhosted.org/packages/source/s/sortedcollections/sortedcollections-%%{version}.tar.gz
Source: https://github.com/grantjenks/python-sortedcollections/archive/v%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module sortedcontainers >= 2}
# /SECTION
Requires: python-sortedcontainers >= 2
@@ -52,7 +53,7 @@ Features
- SegmentList - List with fast random access insertion and deletion.
%prep
%setup -q -n sortedcollections-%{version}
%setup -q -n python-sortedcollections-%{version}
%build
%python_build
@@ -61,6 +62,9 @@ Features
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests
%files %{python_files}
%doc README.rst
%license LICENSE