Hello community,
here is the log from the commit of package python-sortedcontainers for
openSUSE:Factory checked in at 2017-08-16 16:10:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sortedcontainers (Old)
and /work/SRC/openSUSE:Factory/.python-sortedcontainers.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sortedcontainers"
Wed Aug 16 16:10:43 2017 rev:3 rq:510810 version:1.5.7
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-sortedcontainers/python-sortedcontainers.changes
2016-10-13 11:30:31.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python-sortedcontainers.new/python-sortedcontainers.changes
2017-08-16 16:10:56.296757438 +0200
@@ -1,0 +2,19 @@
+Sat Jul 15 15:58:07 UTC 2017 - [email protected]
+
+- Update to version 1.5.7
+ * Changed ``SortedList.__setitem__`` to support slices with stop
+ less than start and step equal one.
+ 1.5.6:
+ * Changed ``SortedList.__setitem__`` to support slices that alias
+ itself.
+ 1.5.5:
+ * Changed ``SortedList.extend`` to support empty iterables.
+ 1.5.4:
+ * Changed ``SortedList.__new__`` to call
+ ``SortedListWithKey.__init__`` once instead of twice.
+
+- Build HTML documentation and put it into -doc subpackage
+- Enabled tests
+- Converted to singlespec
+
+-------------------------------------------------------------------
Old:
----
sortedcontainers-1.5.3.tar.gz
New:
----
sortedcontainers-1.5.7.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-sortedcontainers.spec ++++++
--- /var/tmp/diff_new_pack.0gtiGI/_old 2017-08-16 16:10:58.304476061 +0200
+++ /var/tmp/diff_new_pack.0gtiGI/_new 2017-08-16 16:10:58.304476061 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-sortedcontainers
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -16,22 +16,24 @@
#
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-sortedcontainers
-Version: 1.5.3
+Version: 1.5.7
Release: 0
Summary: Sorted container data types
License: Apache-2.0
Group: Development/Languages/Python
-Url: http://pypi.python.org/pypi/sortedcontainers/
+Url: http://www.grantjenks.com/docs/sortedcontainers
Source:
https://files.pythonhosted.org/packages/source/s/sortedcontainers/sortedcontainers-%{version}.tar.gz
-BuildRequires: python-devel
-BuildRequires: python-setuptools
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module nose}
+BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
+BuildRequires: python3-Sphinx
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
BuildArch: noarch
-%endif
+%python_subpackages
%description
SortedContainers is an Apache2 licensed containers library, written in
@@ -48,18 +50,41 @@
pre-build and distribute custom extensions. Performance is a feature and
testing
has 100% coverage with unit tests and hours of stress.
+%package -n %{name}-doc
+Summary: Documentation for %{name}
+Group: Documentation/HTML
+Provides: %{python_module zope.schema-doc = %{version}}
+Requires: %{name} = %{version}
+
+%description -n %{name}-doc
+This package contains documentation files for %{name}.
+
%prep
%setup -q -n sortedcontainers-%{version}
+rm -rf sortedcontainers.egg-info
%build
-python setup.py build
+%python_build
+%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+# We need to install docs by hand to be able to run fdupes on it
+mkdir -pv %{buildroot}%{_datadir}/doc/packages/%{name}-doc
+cp -r build/sphinx/html %{buildroot}%{_datadir}/doc/packages/%{name}-doc
+%fdupes -s %{buildroot}%{_datadir}/doc/packages/%{name}-doc
+%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
+
+%check
+%python_exec %{_bindir}/nosetests -v
-%files
+%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/*
+%files -n %{name}-doc
+%defattr(-,root,root,-)
+%doc %{_datadir}/doc/packages/%{name}-doc
+
%changelog
++++++ sortedcontainers-1.5.3.tar.gz -> sortedcontainers-1.5.7.tar.gz ++++++
/work/SRC/openSUSE:Factory/python-sortedcontainers/sortedcontainers-1.5.3.tar.gz
/work/SRC/openSUSE:Factory/.python-sortedcontainers.new/sortedcontainers-1.5.7.tar.gz
differ: char 5, line 1