2016-08-07 14:17:06 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-jaraco.itertools
|
|
|
|
#
|
2023-04-21 16:27:20 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2016-08-07 14:17:06 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-27 09:26:14 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-08-07 14:17:06 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-21 16:27:20 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2016-08-07 14:17:06 +02:00
|
|
|
Name: python-jaraco.itertools
|
2022-08-29 21:37:28 +02:00
|
|
|
Version: 6.2.1
|
2016-08-07 14:17:06 +02:00
|
|
|
Release: 0
|
2017-07-05 13:46:50 +02:00
|
|
|
Summary: Tools to work with iterables
|
2016-08-07 14:17:06 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2019-04-05 13:27:24 +02:00
|
|
|
URL: https://github.com/jaraco/jaraco.itertools
|
2016-08-07 14:17:06 +02:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.itertools/jaraco.itertools-%{version}.tar.gz
|
2022-08-29 21:37:28 +02:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2017-07-05 13:46:50 +02:00
|
|
|
BuildRequires: %{python_module inflect}
|
2019-02-27 09:26:14 +01:00
|
|
|
BuildRequires: %{python_module more-itertools >= 4.0.0}
|
2022-08-29 21:37:28 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-07-05 13:46:50 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2022-08-29 21:37:28 +02:00
|
|
|
BuildRequires: %{python_module setuptools >= 56}
|
|
|
|
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2019-02-27 09:26:14 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2016-08-07 14:17:06 +02:00
|
|
|
Requires: python-inflect
|
2019-02-27 09:26:14 +01:00
|
|
|
Requires: python-more-itertools >= 4.0.0
|
2016-08-07 14:17:06 +02:00
|
|
|
BuildArch: noarch
|
2017-07-05 13:46:50 +02:00
|
|
|
%python_subpackages
|
2016-08-07 14:17:06 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
jaraco.itertools Tools for working with iterables.
|
|
|
|
Complements itertools and more_itertools.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n jaraco.itertools-%{version}
|
2022-08-29 21:37:28 +02:00
|
|
|
rm -r jaraco.itertools.egg-info
|
2016-08-07 14:17:06 +02:00
|
|
|
|
|
|
|
%build
|
2022-08-29 21:37:28 +02:00
|
|
|
%pyproject_wheel
|
2016-08-07 14:17:06 +02:00
|
|
|
|
|
|
|
%install
|
2022-08-29 21:37:28 +02:00
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-08-07 14:17:06 +02:00
|
|
|
|
|
|
|
%check
|
2022-08-29 21:37:28 +02:00
|
|
|
# work around for gh#pytest-dev/pytest#3396 until gh#pytest-dev/pytest#10088 lands in a pytest release
|
|
|
|
touch jaraco/__init__.py
|
|
|
|
%pytest --doctest-modules
|
2016-08-07 14:17:06 +02:00
|
|
|
|
2017-07-05 13:46:50 +02:00
|
|
|
%files %{python_files}
|
2019-02-27 09:26:14 +01:00
|
|
|
%license LICENSE
|
2016-08-07 14:17:06 +02:00
|
|
|
%doc docs/*.rst README.rst CHANGES.rst
|
2022-08-29 21:37:28 +02:00
|
|
|
%dir %{python_sitelib}/jaraco
|
|
|
|
%{python_sitelib}/jaraco.itertools-%{version}*-info
|
2017-11-13 19:48:49 +01:00
|
|
|
%{python_sitelib}/jaraco/itertools.py*
|
2022-08-29 21:37:28 +02:00
|
|
|
%pycache_only %dir %{python_sitelib}/jaraco/__pycache__
|
2017-11-13 19:48:49 +01:00
|
|
|
%pycache_only %{python_sitelib}/jaraco/__pycache__/itertools*.py*
|
2016-08-07 14:17:06 +02:00
|
|
|
|
|
|
|
%changelog
|