## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond tests 1 Name: python-pytest-split Summary: Pytest plugin to split the test suite into sub-suites Version: 0.10.0 Release: %autorelease License: MIT URL: https://github.com/jerry-git/pytest-split Source: %{url}/archive/refs/tags/%{version}/pytest-split-%{version}.tar.gz BuildArch: noarch # The upstream patch for Python 3.14 test issue #2325447 # https://github.com/jerry-git/pytest-split/pulls/107 # It can be removed in the next upstream release > 0.10.0 Patch0: 107.patch BuildRequires: python3-devel BuildRequires: help2man BuildRequires: tomcli BuildRequires: python3dist(poetry-core) BuildRequires: python3dist(pytest) %global _description %{expand: Pytest plugin which splits the test suite to equally sized sub suites based on test execution time.} %description %_description %package -n python3-pytest-split Summary: %{summary} %description -n python3-pytest-split %_description %prep %autosetup -p1 -n pytest-split-%{version} # Remove pytest configuration to avoid dependency on coverage (pytest-cov) tomcli set pyproject.toml del 'tool.pytest.ini_options' %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L pytest_split mkdir -p %{buildroot}%{_mandir}/man1 PYTHONPATH="%{buildroot}%{python3_sitelib}" help2man \ --version-string %{version} \ %{buildroot}%{_bindir}/slowest-tests | \ gzip > %{buildroot}%{_mandir}/man1/slowest-tests.1.gz %check %pyproject_check_import %if %{with tests} %pytest tests %endif %files -n python3-pytest-split -f %{pyproject_files} %doc README.md %doc CHANGELOG.md %license LICENSE %{_bindir}/slowest-tests %{_mandir}/man1/slowest-tests.1.* %changelog ## START: Generated by rpmautospec * Wed Nov 19 2025 Doğukan Çağatay - 0.10.0-9 - Modernize spec file and use pyproject macros - Replace %%py3_check_import with %%pyproject_check_import - Simplify package naming by using direct names instead of macros (i.e. srcname, slugname) - Remove manual file listings that are now handled by %%pyproject_files - Add comment to specify the version for the existing patch to be deleted - Remove explicit runtime pytest dependency which is already handled via %%pyproject_buildrequires macro * Wed Nov 19 2025 Doğukan Çağatay - 0.10.0-8 - Remove pytest-cov dependency * Fri Sep 19 2025 Python Maint - 0.10.0-7 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 0.10.0-6 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 0.10.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 0.10.0-4 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 0.10.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Dec 14 2024 Doğukan Çağatay - 0.10.0-2 - Fix the plugin test failure on Python 3.14 * Thu Oct 17 2024 Doğukan Çağatay - 0.10.0-1 - Bump version 0.10.0 * Fri Jul 19 2024 Fedora Release Engineering - 0.8.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 20 2024 Doğukan Çağatay - 0.8.2-2 - Fix the compression issue with man page * Thu Jun 20 2024 Doğukan Çağatay - 0.8.2-1 - Initial import (fedora#2292470). ## END: Generated by rpmautospec