%bcond tests 1 %global forgeurl https://github.com/python-coincidence/coincidence Name: python-coincidence Version: 0.6.5 %forgemeta Release: 1%{?dist} Summary: Helper functions for pytest License: MIT URL: %{forgeurl} Source: %{forgesource} Patch: Use-setuptools-instead-of-whey-as-build-backend.patch Patch: test_regressions-use-tomllib-instead-of-toml.patch BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: %{py3_dist pytest} %endif %description %{summary}. %package -n python3-coincidence Summary: %{summary} %description -n python3-coincidence %{summary}. %prep %autosetup -p1 %{forgesetupargs} # pytest-timeout is not needed to run tests in the RPM build environment sed -i '/^timeout =/d' tox.ini # Remove unnecessary shebangs find coincidence/ -type f ! -executable -name '*.py' -print \ -exec sed -i -e '1{\@^#!.*@d}' '{}' + %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files coincidence %check %pyproject_check_import %if %{with tests} %pytest %endif %files -n python3-coincidence -f %{pyproject_files} %license LICENSE %doc README.rst %changelog * Thu Oct 19 2023 Maxwell G - 0.6.5-1 - Initial package. Closes rhbz#2244975.