%global srcname cytoolz %define py_setup_args --with-cython Name: python-%{srcname} Version: 0.12.2 Release: 6%{?dist} Summary: Cython implementation of the toolz package # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: http://github.com/pytoolz/%{srcname}/ Source0: https://files.pythonhosted.org/packages/source/c/cytoolz/cytoolz-%{version}.tar.gz # Patches to add support for Python 3.13 # https://github.com/pytoolz/cytoolz/pull/206 Patch1: 0001-test_excepts-fudge-changed-indentation-in-Python-3.1.patch Patch2: 0002-test_inspect_wrapped_property-handle-fixed-wrapper-i.patch Patch3: 0003-Add-docstring-for-identity.patch Patch4: 0004-test_docstrings_uptodate-fudge-changed-indentation-i.patch BuildRequires: gcc %description Cython implementation of the toolz package, which provides high performance utility functions for iterables, functions, and dictionaries. toolz is a pure Python package that borrows heavily from contemporary functional languanges. It is designed to interoperate seamlessly with other libraries including itertools, functools, and third party libraries. High performance functional data analysis is possible with builtin types like list and dict, and user-defined data structures; and low memory usage is achieved by using the iterator protocol and returning iterators whenever possible. cytoolz implements the same API as toolz. The main differences are that cytoolz is faster (typically 2-5x faster with a few spectacular exceptions) and cytoolz offers a C API that is accessible to other projects developed in Cython. Since toolz is able to process very large (potentially infinite) data sets, the performance increase gained by using cytoolz can be significant. See the PyToolz documentation at http://toolz.readthedocs.org. %package -n python%{python3_pkgversion}-%{srcname} Summary: Cython implementation of the toolz package BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-toolz >= 0.9.0 BuildRequires: python%{python3_pkgversion}-Cython Requires: python%{python3_pkgversion}-toolz >= 0.9.0 %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} Cython implementation of the toolz package, which provides high performance utility functions for iterables, functions, and dictionaries. toolz is a pure Python package that borrows heavily from contemporary functional languanges. It is designed to interoperate seamlessly with other libraries including itertools, functools, and third party libraries. High performance functional data analysis is possible with builtin types like list and dict, and user-defined data structures; and low memory usage is achieved by using the iterator protocol and returning iterators whenever possible. cytoolz implements the same API as toolz. The main differences are that cytoolz is faster (typically 2-5x faster with a few spectacular exceptions) and cytoolz offers a C API that is accessible to other projects developed in Cython. Since toolz is able to process very large (potentially infinite) data sets, the performance increase gained by using cytoolz can be significant. See the PyToolz documentation at http://toolz.readthedocs.org. %prep %autosetup -p1 -n %{srcname}-%{version} # Remove the cythonized files in order to regenerate them during build. rm $(grep -rl '/\* Generated by Cython') %build %py3_build %install %py3_install # Do not ship tests rm -r %{buildroot}%{python3_sitearch}/%{srcname}/tests %check # Ignore the test_class_sigs failure - it is due to improper use of inspect in the test code itself # https://github.com/pytoolz/cytoolz/issues/164 PYTHONPATH=%{buildroot}%{python3_sitearch} PYTHONDONTWRITEBYTECODE=1 py.test-%{python3_version} cytoolz/tests -k 'not test_class_sigs' -v %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE.txt %{python3_sitearch}/%{srcname}/ %{python3_sitearch}/%{srcname}*.egg-info/ %exclude %{python3_sitearch}/.pytest_cache/ %changelog * Wed Sep 04 2024 Miroslav Suchý - 0.12.2-6 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.12.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 20 2024 Orion Poplawski - 0.12.2-4 - Add patches for Python 3.13 support * Sat Jun 15 2024 Python Maint - 0.12.2-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.12.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.12.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Jul 25 2023 Orion Poplawski - 0.12.2-1 - Update to 0.12.2 * Fri Jul 21 2023 Fedora Release Engineering - 0.12.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.12.0-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.12.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Aug 15 2022 Orion Poplawski - 0.12.0-1 - Update to 0.12.0 * Fri Jul 22 2022 Fedora Release Engineering - 0.11.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 0.11.2-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.11.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Nov 12 2021 Orion Poplawski - 0.11.2-1 - Update to 0.11.2 * Fri Jul 23 2021 Fedora Release Engineering - 0.11.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.11.0-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Sep 23 2020 Orion Poplawski - 0.11.0-1 - Update to 0.11.0 * Wed Jul 29 2020 Fedora Release Engineering - 0.10.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.10.1-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Nov 3 2019 Orion Poplawski - 0.10.1-1 - Update to 0.10.1 * Thu Oct 03 2019 Miro Hrončok - 0.10.0-3 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.10.0-2 - Rebuilt for Python 3.8 * Tue Jul 30 2019 Orion Poplawski - 0.10.0-1 - Update to 0.10.0 * Fri Jul 26 2019 Fedora Release Engineering - 0.9.0.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jun 01 2019 Charalampos Stratakis - 0.9.0.1-6 - Recythonize the sources * Fri Apr 26 2019 Orion Poplawski - 0.9.0.1-5 - Do not ship PYTEST.pyc files (bug #1702848) - Do not ship tests - Run tests in build directory * Fri Mar 08 2019 Carl George - 0.9.0.1-4 - EPEL compatibility * Sat Feb 02 2019 Fedora Release Engineering - 0.9.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Oct 27 2018 Orion Poplawski - 0.9.0.1-2 - Drop Python 2 for Fedora 30+ (bug #1634987) * Tue Jun 19 2018 Orion Poplawski - 0.9.0.1-1 - Update to 0.9.0.1 * Tue Jun 19 2018 Miro Hrončok - 0.8.0-8 - Rebuilt for Python 3.7 * Mon Feb 12 2018 Iryna Shcherbina - 0.8.0-7 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.8.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.8.0-2 - Rebuild for Python 3.6 * Thu Oct 20 2016 Orion Poplawski - 0.8.0-1 - Update to 0.8.0 * Tue Jul 19 2016 Fedora Release Engineering - 0.7.5-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Apr 5 2016 Orion Poplawski - 0.7.5-1 - Initial package