forked from pool/python-more-itertools
* Add more tests for `zip_broadcast()` * Added takewhile_inclusive * Speed up `zip_broadcast()` by pre-filling the scalar elements * Added outer_product. * Simplify `zip_broadcast` * Simplify `_zip_equal` * fix consume() type annotation * Update recipes.iter_index to match CPython PR 102360 * fixup - add missing commas to the readme function table * fixup remove 3.6 from tox * seekable: Add relative_seek * Optimize _chunked_even_finite() * Indexing of combinations with replacement * Add notes for transposing empty inputs * Add the polynomial_eval recipe * Add nth_combination_with_replacement * Add sum_of_squares, sync with itertools * Issue #707: fix ``iterate()`` to enable ``func`` to raise StopIteration + 3 unittests * Update polynomial_from roots and convolve * Issue #677: Improve `partition` * Issue #713: Fix `partial_product` (also simplify and clean up) * Issue #711: Optimize `pairwise` * Issue #715: Simplify/optimize `partial_product` * Issue #717: Improve `duplicates_justseen` * Fix unique_in_window to match described behavior * Add polynomial_derivative recipe * Update recipes with CPython PRs: 105403 and 106371 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-more-itertools?expand=0&rev=49
61 lines
1.8 KiB
RPMSpec
61 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package python-more-itertools
|
|
#
|
|
# Copyright (c) 2023 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.1.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
|