python-sortedcontainers/python-sortedcontainers.spec

82 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-sortedcontainers
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-sortedcontainers
Accepting request 613141 from home:TheBlackCat:branches:devel:languages:python - Update to 2.0.2 + API Changes * SortedListWithKey is deprecated. Use SortedKeyList instead. The name SortedListWithKey remains as an alias for SortedKeyList. The alias will be removed in Version 3. * sortedcontainers.sortedlist.LOAD has moved to SortedList.DEFAULT_LOAD_FACTOR so that derived classes can customize the value. * SortedList._half and SortedList._dual have been removed. Use SortedList._load instead. * SortedList.add parameter val renamed to value. * SortedList.__contains__ parameter val renamed to value. * SortedList.discard parameter val renamed to value. * SortedList.remove parameter val renamed to value. * SortedList.__delitem__ parameter idx renamed to index. * SortedList.__getitem__ parameter idx renamed to index. * SortedList.__setitem__ now raises :exc:NotImplementedError. Use SortedList.__delitem__ and SortedList.add instead. * SortedList.bisect_left parameter val renamed to value. * SortedList.bisect_right parameter val renamed to value. * SortedList.bisect parameter val renamed to value. * SortedList.count parameter val renamed to value. * SortedList.append now raises :exc:NotImplementedError. Use SortedList.add instead. * SortedList.extend now raises :exc:NotImplementedError. Use SortedList.update instead. * SortedList.insert now raises :exc:NotImplementedError. Use SortedList.add instead. * SortedList.pop parameter idx renamed to index. * SortedList.index parameter val renamed to value. * SortedList.__add__ parameter that renamed to other. * SortedList.__iadd__ parameter that renamed to other. * SortedList.__mul__ parameter that renamed to num. * SortedList.__imul__ parameter that renamed to num. * SortedList._make_cmp renamed to SortedList.__make_cmp. * SortedKeyList.add parameter val renamed to value. * SortedKeyList.__contains__ parameter val renamed to value. * SortedKeyList.discard parameter val renamed to value. * SortedKeyList.remove parameter val renamed to value. * SortedKeyList.bisect_left parameter val renamed to value. * SortedKeyList.bisect_right parameter val renamed to value. * SortedKeyList.bisect parameter val renamed to value. * SortedKeyList.count parameter val renamed to value. * SortedKeyList.append now raises :exc:NotImplementedError. Use SortedKeyList.add instead. * SortedKeyList.extend now raises :exc:NotImplementedError. Use SortedKeyList.update instead. * SortedKeyList.insert now raises :exc:NotImplementedError. Use SortedKeyList.add instead. * SortedKeyList.index parameter val renamed to value. * SortedKeyList.__add__ parameter that renamed to other. * SortedKeyList.__radd__ added. * SortedKeyList.__iadd__ parameter that renamed to other. * SortedKeyList.__mul__ parameter that renamed to num. * SortedKeyList.__rmul__ added. * SortedKeyList.__imul__ parameter that renamed to num. * Removed SortedDict.iloc. Use SortedDict.keys and SortedKeysView instead. * SortedDict.fromkeys parameter seq renamed to iterable. * SortedDict.keys now returns SortedKeysView. * SortedDict.items now returns SortedItemsView. * SortedDict.values now returns SortedValuesView. * Removed SortedDict.viewkeys. Use SortedDict.keys instead. * Removed SortedDict.viewitems. Use SortedDict.items instead. * Removed SortedDict.viewvalues. Use SortedDict.values instead. * SortedDict.iterkeys removed. Use SortedDict.keys instead. * SortedDict.iteritems removed. Use SortedDict.items instead. * SortedDict.itervalues removed. Use SortedDict.values instead. * SortedDict.popitem now accepts an optional index argument. Default `-1`. * sorteddict.KeysView renamed to SortedKeysView. * sorteddict.ItemsView renamed to SortedItemsView. * sorteddict.ValuesView renamed to SortedValuesView. * Sorted dict views rely on collections abstract base classes: dict views and sequence. The SortedKeysView.__getitem__, SortedItemsView.__getitem__, and SortedValuesView.__getitem__ methods are implemented and optimized. All other mixin methods use the default implementation provided by the base class. Prefer SortedDict methods to view methods when possible. * SortedSet._make_cmp renamed to SortedSet.__make_cmp. * SortedSet.symmetric_difference parameter that renamed to other. * SortedSet.symmetric_difference_update parameter that renamed to other. + Miscellaneous * Sphinx autodoc now used for API documentation. * All benchmarks now run on CPython 3.6 unless otherwise noted. * Testing now uses pytest rather than nose. * AppVeyor CI testing added. * Updated versions of alternative implementations. * Rename Github repo from grantjenks/sorted_containers to grantjenks/python-sortedcontainers. * Fix broken links in documentation. OBS-URL: https://build.opensuse.org/request/show/613141 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortedcontainers?expand=0&rev=12
2018-05-31 02:10:24 +00:00
Version: 2.0.2
Release: 0
Summary: Sorted container data types
License: Apache-2.0
Group: Development/Languages/Python
Accepting request 613141 from home:TheBlackCat:branches:devel:languages:python - Update to 2.0.2 + API Changes * SortedListWithKey is deprecated. Use SortedKeyList instead. The name SortedListWithKey remains as an alias for SortedKeyList. The alias will be removed in Version 3. * sortedcontainers.sortedlist.LOAD has moved to SortedList.DEFAULT_LOAD_FACTOR so that derived classes can customize the value. * SortedList._half and SortedList._dual have been removed. Use SortedList._load instead. * SortedList.add parameter val renamed to value. * SortedList.__contains__ parameter val renamed to value. * SortedList.discard parameter val renamed to value. * SortedList.remove parameter val renamed to value. * SortedList.__delitem__ parameter idx renamed to index. * SortedList.__getitem__ parameter idx renamed to index. * SortedList.__setitem__ now raises :exc:NotImplementedError. Use SortedList.__delitem__ and SortedList.add instead. * SortedList.bisect_left parameter val renamed to value. * SortedList.bisect_right parameter val renamed to value. * SortedList.bisect parameter val renamed to value. * SortedList.count parameter val renamed to value. * SortedList.append now raises :exc:NotImplementedError. Use SortedList.add instead. * SortedList.extend now raises :exc:NotImplementedError. Use SortedList.update instead. * SortedList.insert now raises :exc:NotImplementedError. Use SortedList.add instead. * SortedList.pop parameter idx renamed to index. * SortedList.index parameter val renamed to value. * SortedList.__add__ parameter that renamed to other. * SortedList.__iadd__ parameter that renamed to other. * SortedList.__mul__ parameter that renamed to num. * SortedList.__imul__ parameter that renamed to num. * SortedList._make_cmp renamed to SortedList.__make_cmp. * SortedKeyList.add parameter val renamed to value. * SortedKeyList.__contains__ parameter val renamed to value. * SortedKeyList.discard parameter val renamed to value. * SortedKeyList.remove parameter val renamed to value. * SortedKeyList.bisect_left parameter val renamed to value. * SortedKeyList.bisect_right parameter val renamed to value. * SortedKeyList.bisect parameter val renamed to value. * SortedKeyList.count parameter val renamed to value. * SortedKeyList.append now raises :exc:NotImplementedError. Use SortedKeyList.add instead. * SortedKeyList.extend now raises :exc:NotImplementedError. Use SortedKeyList.update instead. * SortedKeyList.insert now raises :exc:NotImplementedError. Use SortedKeyList.add instead. * SortedKeyList.index parameter val renamed to value. * SortedKeyList.__add__ parameter that renamed to other. * SortedKeyList.__radd__ added. * SortedKeyList.__iadd__ parameter that renamed to other. * SortedKeyList.__mul__ parameter that renamed to num. * SortedKeyList.__rmul__ added. * SortedKeyList.__imul__ parameter that renamed to num. * Removed SortedDict.iloc. Use SortedDict.keys and SortedKeysView instead. * SortedDict.fromkeys parameter seq renamed to iterable. * SortedDict.keys now returns SortedKeysView. * SortedDict.items now returns SortedItemsView. * SortedDict.values now returns SortedValuesView. * Removed SortedDict.viewkeys. Use SortedDict.keys instead. * Removed SortedDict.viewitems. Use SortedDict.items instead. * Removed SortedDict.viewvalues. Use SortedDict.values instead. * SortedDict.iterkeys removed. Use SortedDict.keys instead. * SortedDict.iteritems removed. Use SortedDict.items instead. * SortedDict.itervalues removed. Use SortedDict.values instead. * SortedDict.popitem now accepts an optional index argument. Default `-1`. * sorteddict.KeysView renamed to SortedKeysView. * sorteddict.ItemsView renamed to SortedItemsView. * sorteddict.ValuesView renamed to SortedValuesView. * Sorted dict views rely on collections abstract base classes: dict views and sequence. The SortedKeysView.__getitem__, SortedItemsView.__getitem__, and SortedValuesView.__getitem__ methods are implemented and optimized. All other mixin methods use the default implementation provided by the base class. Prefer SortedDict methods to view methods when possible. * SortedSet._make_cmp renamed to SortedSet.__make_cmp. * SortedSet.symmetric_difference parameter that renamed to other. * SortedSet.symmetric_difference_update parameter that renamed to other. + Miscellaneous * Sphinx autodoc now used for API documentation. * All benchmarks now run on CPython 3.6 unless otherwise noted. * Testing now uses pytest rather than nose. * AppVeyor CI testing added. * Updated versions of alternative implementations. * Rename Github repo from grantjenks/sorted_containers to grantjenks/python-sortedcontainers. * Fix broken links in documentation. OBS-URL: https://build.opensuse.org/request/show/613141 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortedcontainers?expand=0&rev=12
2018-05-31 02:10:24 +00:00
URL: https://github.com/grantjenks/python-sortedcontainers
Source: https://files.pythonhosted.org/packages/source/s/sortedcontainers/sortedcontainers-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Accepting request 613141 from home:TheBlackCat:branches:devel:languages:python - Update to 2.0.2 + API Changes * SortedListWithKey is deprecated. Use SortedKeyList instead. The name SortedListWithKey remains as an alias for SortedKeyList. The alias will be removed in Version 3. * sortedcontainers.sortedlist.LOAD has moved to SortedList.DEFAULT_LOAD_FACTOR so that derived classes can customize the value. * SortedList._half and SortedList._dual have been removed. Use SortedList._load instead. * SortedList.add parameter val renamed to value. * SortedList.__contains__ parameter val renamed to value. * SortedList.discard parameter val renamed to value. * SortedList.remove parameter val renamed to value. * SortedList.__delitem__ parameter idx renamed to index. * SortedList.__getitem__ parameter idx renamed to index. * SortedList.__setitem__ now raises :exc:NotImplementedError. Use SortedList.__delitem__ and SortedList.add instead. * SortedList.bisect_left parameter val renamed to value. * SortedList.bisect_right parameter val renamed to value. * SortedList.bisect parameter val renamed to value. * SortedList.count parameter val renamed to value. * SortedList.append now raises :exc:NotImplementedError. Use SortedList.add instead. * SortedList.extend now raises :exc:NotImplementedError. Use SortedList.update instead. * SortedList.insert now raises :exc:NotImplementedError. Use SortedList.add instead. * SortedList.pop parameter idx renamed to index. * SortedList.index parameter val renamed to value. * SortedList.__add__ parameter that renamed to other. * SortedList.__iadd__ parameter that renamed to other. * SortedList.__mul__ parameter that renamed to num. * SortedList.__imul__ parameter that renamed to num. * SortedList._make_cmp renamed to SortedList.__make_cmp. * SortedKeyList.add parameter val renamed to value. * SortedKeyList.__contains__ parameter val renamed to value. * SortedKeyList.discard parameter val renamed to value. * SortedKeyList.remove parameter val renamed to value. * SortedKeyList.bisect_left parameter val renamed to value. * SortedKeyList.bisect_right parameter val renamed to value. * SortedKeyList.bisect parameter val renamed to value. * SortedKeyList.count parameter val renamed to value. * SortedKeyList.append now raises :exc:NotImplementedError. Use SortedKeyList.add instead. * SortedKeyList.extend now raises :exc:NotImplementedError. Use SortedKeyList.update instead. * SortedKeyList.insert now raises :exc:NotImplementedError. Use SortedKeyList.add instead. * SortedKeyList.index parameter val renamed to value. * SortedKeyList.__add__ parameter that renamed to other. * SortedKeyList.__radd__ added. * SortedKeyList.__iadd__ parameter that renamed to other. * SortedKeyList.__mul__ parameter that renamed to num. * SortedKeyList.__rmul__ added. * SortedKeyList.__imul__ parameter that renamed to num. * Removed SortedDict.iloc. Use SortedDict.keys and SortedKeysView instead. * SortedDict.fromkeys parameter seq renamed to iterable. * SortedDict.keys now returns SortedKeysView. * SortedDict.items now returns SortedItemsView. * SortedDict.values now returns SortedValuesView. * Removed SortedDict.viewkeys. Use SortedDict.keys instead. * Removed SortedDict.viewitems. Use SortedDict.items instead. * Removed SortedDict.viewvalues. Use SortedDict.values instead. * SortedDict.iterkeys removed. Use SortedDict.keys instead. * SortedDict.iteritems removed. Use SortedDict.items instead. * SortedDict.itervalues removed. Use SortedDict.values instead. * SortedDict.popitem now accepts an optional index argument. Default `-1`. * sorteddict.KeysView renamed to SortedKeysView. * sorteddict.ItemsView renamed to SortedItemsView. * sorteddict.ValuesView renamed to SortedValuesView. * Sorted dict views rely on collections abstract base classes: dict views and sequence. The SortedKeysView.__getitem__, SortedItemsView.__getitem__, and SortedValuesView.__getitem__ methods are implemented and optimized. All other mixin methods use the default implementation provided by the base class. Prefer SortedDict methods to view methods when possible. * SortedSet._make_cmp renamed to SortedSet.__make_cmp. * SortedSet.symmetric_difference parameter that renamed to other. * SortedSet.symmetric_difference_update parameter that renamed to other. + Miscellaneous * Sphinx autodoc now used for API documentation. * All benchmarks now run on CPython 3.6 unless otherwise noted. * Testing now uses pytest rather than nose. * AppVeyor CI testing added. * Updated versions of alternative implementations. * Rename Github repo from grantjenks/sorted_containers to grantjenks/python-sortedcontainers. * Fix broken links in documentation. OBS-URL: https://build.opensuse.org/request/show/613141 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortedcontainers?expand=0&rev=12
2018-05-31 02:10:24 +00:00
# SECTION test requirements
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module scipy}
# /SECTION
BuildArch: noarch
%python_subpackages
%description
SortedContainers is an Apache2 licensed containers library, written in
pure-Python, and fast as C-extensions.
Python's standard library is great until you need a sorted container type. Many
will attest that you can get really far without one, but the moment you **really
need** a sorted list, dict, or set, you're faced with a dozen different
implementations, most using C-extensions without great documentation and
benchmarking.
SortedContainers takes all of the work out of Python sorted types - making your
deployment and use of Python easy. There's no need to install a C compiler or
pre-build and distribute custom extensions. Performance is a feature and testing
has 100% coverage with unit tests and hours of stress.
%prep
%setup -q -n sortedcontainers-%{version}
rm -rf sortedcontainers.egg-info
%build
%python_build
%install
%python_install
Accepting request 613141 from home:TheBlackCat:branches:devel:languages:python - Update to 2.0.2 + API Changes * SortedListWithKey is deprecated. Use SortedKeyList instead. The name SortedListWithKey remains as an alias for SortedKeyList. The alias will be removed in Version 3. * sortedcontainers.sortedlist.LOAD has moved to SortedList.DEFAULT_LOAD_FACTOR so that derived classes can customize the value. * SortedList._half and SortedList._dual have been removed. Use SortedList._load instead. * SortedList.add parameter val renamed to value. * SortedList.__contains__ parameter val renamed to value. * SortedList.discard parameter val renamed to value. * SortedList.remove parameter val renamed to value. * SortedList.__delitem__ parameter idx renamed to index. * SortedList.__getitem__ parameter idx renamed to index. * SortedList.__setitem__ now raises :exc:NotImplementedError. Use SortedList.__delitem__ and SortedList.add instead. * SortedList.bisect_left parameter val renamed to value. * SortedList.bisect_right parameter val renamed to value. * SortedList.bisect parameter val renamed to value. * SortedList.count parameter val renamed to value. * SortedList.append now raises :exc:NotImplementedError. Use SortedList.add instead. * SortedList.extend now raises :exc:NotImplementedError. Use SortedList.update instead. * SortedList.insert now raises :exc:NotImplementedError. Use SortedList.add instead. * SortedList.pop parameter idx renamed to index. * SortedList.index parameter val renamed to value. * SortedList.__add__ parameter that renamed to other. * SortedList.__iadd__ parameter that renamed to other. * SortedList.__mul__ parameter that renamed to num. * SortedList.__imul__ parameter that renamed to num. * SortedList._make_cmp renamed to SortedList.__make_cmp. * SortedKeyList.add parameter val renamed to value. * SortedKeyList.__contains__ parameter val renamed to value. * SortedKeyList.discard parameter val renamed to value. * SortedKeyList.remove parameter val renamed to value. * SortedKeyList.bisect_left parameter val renamed to value. * SortedKeyList.bisect_right parameter val renamed to value. * SortedKeyList.bisect parameter val renamed to value. * SortedKeyList.count parameter val renamed to value. * SortedKeyList.append now raises :exc:NotImplementedError. Use SortedKeyList.add instead. * SortedKeyList.extend now raises :exc:NotImplementedError. Use SortedKeyList.update instead. * SortedKeyList.insert now raises :exc:NotImplementedError. Use SortedKeyList.add instead. * SortedKeyList.index parameter val renamed to value. * SortedKeyList.__add__ parameter that renamed to other. * SortedKeyList.__radd__ added. * SortedKeyList.__iadd__ parameter that renamed to other. * SortedKeyList.__mul__ parameter that renamed to num. * SortedKeyList.__rmul__ added. * SortedKeyList.__imul__ parameter that renamed to num. * Removed SortedDict.iloc. Use SortedDict.keys and SortedKeysView instead. * SortedDict.fromkeys parameter seq renamed to iterable. * SortedDict.keys now returns SortedKeysView. * SortedDict.items now returns SortedItemsView. * SortedDict.values now returns SortedValuesView. * Removed SortedDict.viewkeys. Use SortedDict.keys instead. * Removed SortedDict.viewitems. Use SortedDict.items instead. * Removed SortedDict.viewvalues. Use SortedDict.values instead. * SortedDict.iterkeys removed. Use SortedDict.keys instead. * SortedDict.iteritems removed. Use SortedDict.items instead. * SortedDict.itervalues removed. Use SortedDict.values instead. * SortedDict.popitem now accepts an optional index argument. Default `-1`. * sorteddict.KeysView renamed to SortedKeysView. * sorteddict.ItemsView renamed to SortedItemsView. * sorteddict.ValuesView renamed to SortedValuesView. * Sorted dict views rely on collections abstract base classes: dict views and sequence. The SortedKeysView.__getitem__, SortedItemsView.__getitem__, and SortedValuesView.__getitem__ methods are implemented and optimized. All other mixin methods use the default implementation provided by the base class. Prefer SortedDict methods to view methods when possible. * SortedSet._make_cmp renamed to SortedSet.__make_cmp. * SortedSet.symmetric_difference parameter that renamed to other. * SortedSet.symmetric_difference_update parameter that renamed to other. + Miscellaneous * Sphinx autodoc now used for API documentation. * All benchmarks now run on CPython 3.6 unless otherwise noted. * Testing now uses pytest rather than nose. * AppVeyor CI testing added. * Updated versions of alternative implementations. * Rename Github repo from grantjenks/sorted_containers to grantjenks/python-sortedcontainers. * Fix broken links in documentation. OBS-URL: https://build.opensuse.org/request/show/613141 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortedcontainers?expand=0&rev=12
2018-05-31 02:10:24 +00:00
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
Accepting request 613141 from home:TheBlackCat:branches:devel:languages:python - Update to 2.0.2 + API Changes * SortedListWithKey is deprecated. Use SortedKeyList instead. The name SortedListWithKey remains as an alias for SortedKeyList. The alias will be removed in Version 3. * sortedcontainers.sortedlist.LOAD has moved to SortedList.DEFAULT_LOAD_FACTOR so that derived classes can customize the value. * SortedList._half and SortedList._dual have been removed. Use SortedList._load instead. * SortedList.add parameter val renamed to value. * SortedList.__contains__ parameter val renamed to value. * SortedList.discard parameter val renamed to value. * SortedList.remove parameter val renamed to value. * SortedList.__delitem__ parameter idx renamed to index. * SortedList.__getitem__ parameter idx renamed to index. * SortedList.__setitem__ now raises :exc:NotImplementedError. Use SortedList.__delitem__ and SortedList.add instead. * SortedList.bisect_left parameter val renamed to value. * SortedList.bisect_right parameter val renamed to value. * SortedList.bisect parameter val renamed to value. * SortedList.count parameter val renamed to value. * SortedList.append now raises :exc:NotImplementedError. Use SortedList.add instead. * SortedList.extend now raises :exc:NotImplementedError. Use SortedList.update instead. * SortedList.insert now raises :exc:NotImplementedError. Use SortedList.add instead. * SortedList.pop parameter idx renamed to index. * SortedList.index parameter val renamed to value. * SortedList.__add__ parameter that renamed to other. * SortedList.__iadd__ parameter that renamed to other. * SortedList.__mul__ parameter that renamed to num. * SortedList.__imul__ parameter that renamed to num. * SortedList._make_cmp renamed to SortedList.__make_cmp. * SortedKeyList.add parameter val renamed to value. * SortedKeyList.__contains__ parameter val renamed to value. * SortedKeyList.discard parameter val renamed to value. * SortedKeyList.remove parameter val renamed to value. * SortedKeyList.bisect_left parameter val renamed to value. * SortedKeyList.bisect_right parameter val renamed to value. * SortedKeyList.bisect parameter val renamed to value. * SortedKeyList.count parameter val renamed to value. * SortedKeyList.append now raises :exc:NotImplementedError. Use SortedKeyList.add instead. * SortedKeyList.extend now raises :exc:NotImplementedError. Use SortedKeyList.update instead. * SortedKeyList.insert now raises :exc:NotImplementedError. Use SortedKeyList.add instead. * SortedKeyList.index parameter val renamed to value. * SortedKeyList.__add__ parameter that renamed to other. * SortedKeyList.__radd__ added. * SortedKeyList.__iadd__ parameter that renamed to other. * SortedKeyList.__mul__ parameter that renamed to num. * SortedKeyList.__rmul__ added. * SortedKeyList.__imul__ parameter that renamed to num. * Removed SortedDict.iloc. Use SortedDict.keys and SortedKeysView instead. * SortedDict.fromkeys parameter seq renamed to iterable. * SortedDict.keys now returns SortedKeysView. * SortedDict.items now returns SortedItemsView. * SortedDict.values now returns SortedValuesView. * Removed SortedDict.viewkeys. Use SortedDict.keys instead. * Removed SortedDict.viewitems. Use SortedDict.items instead. * Removed SortedDict.viewvalues. Use SortedDict.values instead. * SortedDict.iterkeys removed. Use SortedDict.keys instead. * SortedDict.iteritems removed. Use SortedDict.items instead. * SortedDict.itervalues removed. Use SortedDict.values instead. * SortedDict.popitem now accepts an optional index argument. Default `-1`. * sorteddict.KeysView renamed to SortedKeysView. * sorteddict.ItemsView renamed to SortedItemsView. * sorteddict.ValuesView renamed to SortedValuesView. * Sorted dict views rely on collections abstract base classes: dict views and sequence. The SortedKeysView.__getitem__, SortedItemsView.__getitem__, and SortedValuesView.__getitem__ methods are implemented and optimized. All other mixin methods use the default implementation provided by the base class. Prefer SortedDict methods to view methods when possible. * SortedSet._make_cmp renamed to SortedSet.__make_cmp. * SortedSet.symmetric_difference parameter that renamed to other. * SortedSet.symmetric_difference_update parameter that renamed to other. + Miscellaneous * Sphinx autodoc now used for API documentation. * All benchmarks now run on CPython 3.6 unless otherwise noted. * Testing now uses pytest rather than nose. * AppVeyor CI testing added. * Updated versions of alternative implementations. * Rename Github repo from grantjenks/sorted_containers to grantjenks/python-sortedcontainers. * Fix broken links in documentation. OBS-URL: https://build.opensuse.org/request/show/613141 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortedcontainers?expand=0&rev=12
2018-05-31 02:10:24 +00:00
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
export PYTHONDONTWRITEBYTECODE=1
rm -rf _build.* build tests/__pycache__ tests/*.pyc tests/*.pyo
pushd tests
py.test-%{$python_bin_suffix}
popd
}
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog