From 354b327d9b1822ad16283366f797bcdfa2ce1037e2309c7c3f853c60f60372f8 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 26 Mar 2025 05:50:30 +0000 Subject: [PATCH 1/2] - Normalize metadata directory name. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.itertools?expand=0&rev=18 --- .gitattributes | 23 ++++ .gitignore | 1 + jaraco.itertools-6.4.1.tar.gz | 3 + python-jaraco.itertools.changes | 214 ++++++++++++++++++++++++++++++++ python-jaraco.itertools.spec | 69 ++++++++++ 5 files changed, 310 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 jaraco.itertools-6.4.1.tar.gz create mode 100644 python-jaraco.itertools.changes create mode 100644 python-jaraco.itertools.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/jaraco.itertools-6.4.1.tar.gz b/jaraco.itertools-6.4.1.tar.gz new file mode 100644 index 0000000..38104fc --- /dev/null +++ b/jaraco.itertools-6.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:314fce562ebb45ea4822a98bbd7b22e5feac7d5118dbc1a4f1eb2cd046bffa47 +size 18202 diff --git a/python-jaraco.itertools.changes b/python-jaraco.itertools.changes new file mode 100644 index 0000000..c5cef94 --- /dev/null +++ b/python-jaraco.itertools.changes @@ -0,0 +1,214 @@ +------------------------------------------------------------------- +Wed Mar 26 05:48:33 UTC 2025 - Steve Kowalik + +- Normalize metadata directory name. + +------------------------------------------------------------------- +Mon Nov 20 06:36:04 UTC 2023 - Steve Kowalik + +- Upate to 6.4.1: + * Remove use of ``OrderedDict`` in ``partition_dict``. + * Added ``summarize``. + * Require Python 3.8 or later. + * Added ``find_subseq``. + +------------------------------------------------------------------- +Fri Apr 21 12:27:21 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:42:14 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Mon Aug 29 11:56:23 UTC 2022 - Ben Greiner + +- Update to 6.2.1: + #15: Fixed broken test in ensure_unique. +- v6.2.0: Added accumulate function. +- v6.1.1: Fixed typo in ensure_unique doctest. +- v6.1.0: Add ensure_unique function. +- v6.0.3: #13: Fixed doc build errors. +- v6.0.2: Minor fixes. +- v6.0.1: Switch to PEP 420 for namespace package. +- v6.0.0: Remove Counter.GetCount. Remove flatten and iflatten. +- Switch to PEP517 and remove obsolete jaraco.base requirement + +------------------------------------------------------------------- +Mon Nov 8 11:05:23 UTC 2021 - Dirk Müller + +- add six dependency for testsuite + +------------------------------------------------------------------- +Mon Mar 9 13:59:34 UTC 2020 - Marketa Calabkova + +- Update to 5.0.0 + * infinite_call is superseded by more_itertools.repeatfunc + * Require Python 3.6 or later. + +------------------------------------------------------------------- +Fri Apr 5 11:25:30 UTC 2019 - Tomáš Chvátal + +- Update to 4.4.2: + * Fixed RuntimeError in takewhile_peek on later Pythons where StopIteration is no longer allowed in a generator. + +------------------------------------------------------------------- +Tue Feb 26 09:32:46 UTC 2019 - John Vandenberg + +- Remove bcond_with test, allowing tests suite to run +- Add LICENSE +- Compile manually due to switch to pkgutil namespace technique +- Set minimum version more-itertools >= 4.0.0 +- Update to v4.4.1 + * Fixed issue in ``collate_revs`` when objects being merged were non-True +- from 4.4 + * Add ``collate_revs`` and ``partition_dict`` +- from 4.3 + * Nicer error message in ``assert_ordered`` when the assertion fails. + Now reports the full supplied items and not just the keys in the errors. + When ``<`` or ``>`` are used, the error message renders more directly. +- from 4.2 + * The ``duplicates`` function now takes an arbitrary number of iterables + * Added ``assert_ordered`` function +- from 4.1 + * Added ``duplicates`` function +- from 4.0.0 + * Switch to pkgutil namespace technique for the ``jaraco`` namespace +- from 3.0.0 + * Refreshed project metadata, now built using declarative config. + Installation from sdist now requires setuptools 34.4. +- from 2.5.2 + * Fix deprecation warning in ``always_iterable`` + * Leverage base_type parameter in ``more_itertools.always_iterable`` +- from 2.5.1 + * Set stacklevel in deprecated functions for better visibility of the call. +- from 2.5 + * Added new ``maybe_single`` function + * Deprecated ``list_or_iterable`` in favor of ``maybe_single`` +- from 2.4 + * Deprecated ``flatten`` and ``iflatten`` in favor of + ``more_itertools.collapse``. Deprecated ``iterable_test``, + only used by deprecated functions. + * Bump dependency on more_itertools 4.0.0. +- from 2.3 + * Added ``self_product``. +- from 2.2 + * ``first`` now accepts a default value, same as ``next``. + +------------------------------------------------------------------- +Mon Nov 13 18:26:17 UTC 2017 - toddrme2178@gmail.com + +- Properly handle namespace package structure. + This guarantees the module is importable. + +------------------------------------------------------------------- +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 + +- Switch to Python2. + +------------------------------------------------------------------- +Thu Jun 9 16:53:48 UTC 2016 - toddrme2178@gmail.com + +- Remove unneeded python3-Sphinx dependency. + +------------------------------------------------------------------- +Sun May 8 07:09:12 UTC 2016 - arun@gmx.de + +- specfile: + * updated source url to files.pythonhosted.org + +------------------------------------------------------------------- +Tue Dec 29 19:52:19 UTC 2015 - arun@gmx.de + +- specfile: + * replace hgtools with setuptools_scm + * update requiremenst according to setup.py + * .txt -> *.rst in %doc + +- update to version 1.7.1: + * Fix failing tests on Python 2. + +------------------------------------------------------------------- +Sun Nov 22 00:59:28 UTC 2015 - arun@gmx.de + +- specfile: + * fix typo in setup.py via sed command + +- update to version 1.7: + * Moved hosting to github. + +- changes from version 1.6: + * Releases now include wheels. + +------------------------------------------------------------------- +Mon Nov 2 11:32:41 UTC 2015 - toddrme2178@gmail.com + +- Fix conflicts with other jaraco packages. + +------------------------------------------------------------------- +Mon Nov 2 10:02:57 UTC 2015 - toddrme2178@gmail.com + +- Enable unit tests. + +------------------------------------------------------------------- +Mon Nov 2 09:56:06 UTC 2015 - toddrme2178@gmail.com + +- Fix spec file name. + +------------------------------------------------------------------- +Thu Oct 29 15:47:16 UTC 2015 - arun@gmx.de + +- update to version 1.5.1: + * Peekable also accepts an iterable. + * Fix test failure on Python 2 + * Added some doctests for bisect and corrected docstring to match + implementation. + +- change from version 1.5.0: + * Add takewhile_peek function. + +------------------------------------------------------------------- +Sat Aug 1 20:49:10 UTC 2015 - arun@gmx.de + +- specfile: + * moved from zip to tar.gz + +- update to version 1.4: + * Add list_or_single function. + +------------------------------------------------------------------- +Sun Mar 8 17:24:02 UTC 2015 - arun@gmx.de + +- update to version 1.3: + * Add apply to apply a function to an iterable, but yield the original items. + +------------------------------------------------------------------- +Sun Feb 22 20:46:06 UTC 2015 - arun@gmx.de + +- update to version 1.2: + * Make pytest_runner and sphinx optionally required. + +------------------------------------------------------------------- +Sat Feb 14 21:01:37 UTC 2015 - arun@gmx.de + +- initial version diff --git a/python-jaraco.itertools.spec b/python-jaraco.itertools.spec new file mode 100644 index 0000000..83d9b0f --- /dev/null +++ b/python-jaraco.itertools.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-jaraco.itertools +# +# Copyright (c) 2025 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-jaraco.itertools +Version: 6.4.1 +Release: 0 +Summary: Tools to work with iterables +License: MIT +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 >= 3.8} +BuildRequires: %{python_module inflect} +BuildRequires: %{python_module more-itertools >= 4.0.0} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools >= 56} +BuildRequires: %{python_module setuptools_scm >= 3.4.1} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-inflect +Requires: python-more-itertools >= 4.0.0 +BuildArch: noarch +%python_subpackages + +%description +jaraco.itertools Tools for working with iterables. +Complements itertools and more_itertools. + +%prep +%setup -q -n jaraco.itertools-%{version} +rm -r jaraco.itertools.egg-info + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest --doctest-modules + +%files %{python_files} +%license LICENSE +%doc docs/*.rst README.rst NEWS.rst +%dir %{python_sitelib}/jaraco +%{python_sitelib}/jaraco_itertools-%{version}.dist-info +%{python_sitelib}/jaraco/itertools.py* +%pycache_only %dir %{python_sitelib}/jaraco/__pycache__ +%pycache_only %{python_sitelib}/jaraco/__pycache__/itertools*.py* + +%changelog From bc388d4830490a654482903f0755008c6e7df501e2c05d6599ddcf9fddd8780f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 1 Apr 2025 15:39:19 +0000 Subject: [PATCH 2/2] - Make it compatible with older setuptools OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.itertools?expand=0&rev=19 --- python-jaraco.itertools.changes | 5 +++++ python-jaraco.itertools.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-jaraco.itertools.changes b/python-jaraco.itertools.changes index c5cef94..edf0de0 100644 --- a/python-jaraco.itertools.changes +++ b/python-jaraco.itertools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 1 15:35:10 UTC 2025 - Markéta Machová + +- Make it compatible with older setuptools + ------------------------------------------------------------------- Wed Mar 26 05:48:33 UTC 2025 - Steve Kowalik diff --git a/python-jaraco.itertools.spec b/python-jaraco.itertools.spec index 83d9b0f..ecc7d0b 100644 --- a/python-jaraco.itertools.spec +++ b/python-jaraco.itertools.spec @@ -61,7 +61,7 @@ rm -r jaraco.itertools.egg-info %license LICENSE %doc docs/*.rst README.rst NEWS.rst %dir %{python_sitelib}/jaraco -%{python_sitelib}/jaraco_itertools-%{version}.dist-info +%{python_sitelib}/jaraco[_.]itertools-%{version}.dist-info %{python_sitelib}/jaraco/itertools.py* %pycache_only %dir %{python_sitelib}/jaraco/__pycache__ %pycache_only %{python_sitelib}/jaraco/__pycache__/itertools*.py*