* Add support for Python 3.14, PyPy 3.11 (#225) * Drop support for Python 3.8, PyPy 3.8 (#225) * Add experimental (untested!) support for free-threading, including building wheels (#225, #228) * Update to match toolz 1.1.0 (#225) * Faster concat (#218) * Improve performance by avoiding global lookups (#219) * Modernization (#225, #226, #227) * Now PEP 517-compliant; use pyproject.toml and setuptools.build_meta build backend * Use setuptools-git-versioning instead of versioneer.py for versioning * Use Trusted Publishing between Github and PyPI to publish releases to PyPI * Generate artifact attestation for sdist and wheel * Build wheels for more platforms (172 wheels built for this release!) * Add git pre-commit checks (but this isn't documented for contributors) * These also get run in CI * Including validate-pyproject, pyupgrade, actionlint, yamllint, zizmor - Move tests into different directory so pytest can find them - Remove C source code files from site-packages directory - Update BuildRequires from pyproject.toml - Update name for dist directory in %files section OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cytoolz?expand=0&rev=22
72 lines
2.1 KiB
RPMSpec
72 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-cytoolz
|
|
#
|
|
# 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-cytoolz
|
|
Version: 1.1.0
|
|
Release: 0
|
|
Summary: High performance python functional utilities in Cython
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/pytoolz/cytoolz
|
|
Source: https://files.pythonhosted.org/packages/source/c/cytoolz/cytoolz-%{version}.tar.gz
|
|
BuildRequires: %{python_module Cython}
|
|
BuildRequires: %{python_module devel >= 3.9}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module toolz}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-toolz
|
|
%python_subpackages
|
|
|
|
%description
|
|
Cython implementation of the toolz package, which provides high
|
|
performance utility functions for iterables, functions, and
|
|
dictionaries.
|
|
|
|
%prep
|
|
%setup -q -n cytoolz-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand find %{buildroot}%{$python_sitearch}/cytoolz -name "*.c" -exec rm {} \;
|
|
%python_expand rm -r %{buildroot}%{$python_sitearch}/cytoolz/tests
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
# Move tests around so pytest can find them
|
|
mkdir -p testing
|
|
cp -rf cytoolz/tests/ testing/
|
|
pushd testing
|
|
%pytest_arch
|
|
popd
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE.txt
|
|
%{python_sitearch}/cytoolz/
|
|
%{python_sitearch}/cytoolz-*-info/
|
|
|
|
%changelog
|