17
0
Files
python-more-itertools/python-more-itertools.spec

61 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

- Update to 10.8.0 * New functions: * :func:`derangements` was added (thanks to debruijn) * :func:`argmin` and :func:`argmax` were added (thanks to rhettinger) * :func:`running_median` was added (thanks to rhettinger) * :func:`extract` was added (thanks to rhettinger) * :func:`interleave_randomly` was added (thanks to ktbarrett) * Changes to existing functions: * The type hints and docstring for :func:`batched` were improved (thanks to qobilidop and inventshah) * The memory usage of :func:`islice_extended` was reduced (thanks to ben42code) * The performance of :func:`sample` and :func:`consecutive_groups`, :func:`dft`, :func:`idft`, :func:`map_if`, :func:`count_cycle`, and :func:`tail` were improved (thanks to rhettinger) * The performance of :func:`before_and_after`, :func:`mark_ends`, and :func:`interleave_longest` were improved (thanks to pochmann3) * :func:`nth_prime` now accepts an ``approximate`` keyword. When set to ``True``, a faster but less accurate method is used to return a result. (thanks to rhettinger) * :func:`last` now works when its input has ``__reversed__`` set to ``None`` (thanks to inventshah) * The :func:`unzip` function was simplified (thanks to pochmann3) * The :func:`reshape` function now accepts ``shape`` values that represent multidimensional matrices (thanks to rhettinger) * Other changes: * An issue with dark themes and documentation display was fixed (thanks to pochmann3, moreati, and pradyunsg) * Variable names in several functions were improved (thanks to rhettinger) * The docstrings for :func:`dft`, :func:`idft`, :func:`minmax`, :func:`sample`, and :func:`multinomial` were improved (thanks to rhettinger) * Packaging and package index metadata were improved (thanks to cdce8p) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-more-itertools?expand=0&rev=61
2025-09-10 09:09:30 +00:00
#
# spec file for package python-more-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-more-itertools
Version: 10.8.0
Release: 0
Summary: More routines for operating on iterables, beyond itertools
License: MIT
Group: Development/Languages/Python
URL: https://github.com/erikrose/more-itertools
Source: https://files.pythonhosted.org/packages/source/m/more_itertools/more_itertools-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Additional building blocks, recipes, and routines for working with
Python iterables.
%prep
%setup -q -n more_itertools-%{version}
chmod -x more_itertools/more.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest -v
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/more_itertools/
%{python_sitelib}/more_itertools-%{version}*-info/
%changelog