14
0
Files
python-more-itertools/python-more-itertools.spec
Nico Krapp 970cb200f1 Accepting request 1277920 from home:glaubitz:branches:devel:languages:python
- Update to 10.7.0
  * :func:`multinomial` was added (thanks to rhettinger)
  * :func:`ichunk`, :func:`iterate`, :func:`one`, :func:`only`,
    :func:`powerset_of_sets`, and :func:`strictly_n` were
    optimized (thanks to rhettinger)
  * :func:`exactly_n` now uses less memory (thanks to rhettinger)
  * :func:`dft` and :func:`idft` were optimized for Python versions
    below 3.12 (thanks to rhettinger)
  * :func:`is_prime` no longer shares state with the users random
    number generator (thanks to rhettinger)
  * Some docstring issues were fixed (thanks to lpulley and ricbit)
  * The type hints for :func:`groupby_transform` were improved (thanks to rhettinger)
  * The ``furo`` theme is now used for docs (thanks to AA-turner)
- Adjust upstream source name in spec file

OBS-URL: https://build.opensuse.org/request/show/1277920
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-more-itertools?expand=0&rev=59
2025-05-16 12:08:35 +00:00

61 lines
1.8 KiB
RPMSpec

#
# 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.7.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