From 6f2c17dfface896d41544d1392ab34db180d73ee5561e03f354255e29cb7d8a8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 5 Jul 2017 11:46:50 +0000 Subject: [PATCH] Accepting request 508204 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/508204 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.itertools?expand=0&rev=2 --- jaraco.itertools-1.7.1.tar.gz | 3 --- jaraco.itertools-2.0.1.tar.gz | 3 +++ python-jaraco.itertools.changes | 18 +++++++++++++++++ python-jaraco.itertools.spec | 36 ++++++++++++++++++--------------- 4 files changed, 41 insertions(+), 19 deletions(-) delete mode 100644 jaraco.itertools-1.7.1.tar.gz create mode 100644 jaraco.itertools-2.0.1.tar.gz diff --git a/jaraco.itertools-1.7.1.tar.gz b/jaraco.itertools-1.7.1.tar.gz deleted file mode 100644 index f1781de..0000000 --- a/jaraco.itertools-1.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bf5c7bf22c930a0c5942e0850166b10c77bbb6286117ac2c619c78c86db97d7b -size 10224 diff --git a/jaraco.itertools-2.0.1.tar.gz b/jaraco.itertools-2.0.1.tar.gz new file mode 100644 index 0000000..29a56f4 --- /dev/null +++ b/jaraco.itertools-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a747ea689afdbd802740a0f9bfa737a04ca4479ecfa3e9a7c680ce84a0ae2c97 +size 11604 diff --git a/python-jaraco.itertools.changes b/python-jaraco.itertools.changes index fc81935..ce5ea04 100644 --- a/python-jaraco.itertools.changes +++ b/python-jaraco.itertools.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Tue Jul 4 18:21:32 UTC 2017 - aloisio@gmx.com + +- Update to version 2.0.1 + * Refresh package. + 2.0: + * In ``always_iterable``, mappings are now considered + singletons. It seems that the way ``always_iterable`` + is generally used, one wouldn't expect to only iterate + on a mapping, but there are cases where a dictionary + should behave like a singleton object. + 1.8: + * Deprecated ``infiniteCall`` and replaced it with + ``infinite_call`` which only takes a single argument + (the function to call). + +- Converted to single-spec + ------------------------------------------------------------------- Tue Aug 2 13:24:18 UTC 2016 - sor.alexei@meowr.ru diff --git a/python-jaraco.itertools.spec b/python-jaraco.itertools.spec index e18bc86..2d7751f 100644 --- a/python-jaraco.itertools.spec +++ b/python-jaraco.itertools.spec @@ -1,7 +1,7 @@ # # spec file for package python-jaraco.itertools # -# 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,28 +16,31 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jaraco.itertools -Version: 1.7.1 +Version: 2.0.1 Release: 0 -Summary: jaraco.itertools Tools for working with iterables +Summary: Tools to work with iterables License: MIT Group: Development/Languages/Python Url: https://github.com/jaraco/jaraco.itertools Source0: https://files.pythonhosted.org/packages/source/j/jaraco.itertools/jaraco.itertools-%{version}.tar.gz +BuildRequires: %{python_module base} +BuildRequires: %{python_module inflect} +BuildRequires: %{python_module more-itertools} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} BuildRequires: fdupes -BuildRequires: python-devel -BuildRequires: python-inflect -BuildRequires: python-more-itertools -BuildRequires: python-pytest -BuildRequires: python-pytest-runner -BuildRequires: python-setuptools -BuildRequires: python-setuptools_scm -BuildRequires: python-six +BuildRequires: python-rpm-macros Requires: python-inflect Requires: python-more-itertools Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages %description jaraco.itertools Tools for working with iterables. @@ -46,18 +49,19 @@ Complements itertools and more_itertools. %prep %setup -q -n jaraco.itertools-%{version} sed -i -e "s/'pytest_runner'/'pytest-runner'/" setup.py +rm -rf jaraco.itertools.egg-info %build -python2 setup.py build +%python_build %install -python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} -%fdupes %{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check -python2 setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root) %doc docs/*.rst README.rst CHANGES.rst %{python_sitelib}/*