## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 Name: python-throttler Version: 1.2.2 Release: %autorelease Summary: Easy throttling with asyncio support # SPDX License: MIT URL: https://github.com/uburuntu/throttler # GitHub archive contains tests and examples; PyPI sdist does not Source0: %{url}/archive/v%{version}/throttler-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Run tests in parallel; this speeds up the build quite a bit. BuildRequires: python3dist(pytest-xdist) %global common_description %{expand: Zero-dependency Python package for easy throttling with asyncio support.} %description %{common_description} %package -n python3-throttler Summary: %{summary} %description -n python3-throttler %{common_description} %prep %autosetup -n throttler-%{version} # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters sed -r -i 's/^(codecov|flake8|pytest-cov)/# &/' requirements-dev.txt # EPEL9 has an older pytest, but it still works. sed -r -i 's/(pytest.*)>=.*/\1/' requirements-dev.txt %generate_buildrequires %pyproject_buildrequires -x dev %build %pyproject_wheel %install %pyproject_install %pyproject_save_files throttler %check %pytest -n auto -v %files -n python3-throttler -f %{pyproject_files} # pyproject_files handles LICENSE; verify with “rpm -qL -p …” %doc examples/ %changelog ## START: Generated by rpmautospec * Tue Apr 11 2023 Benjamin A. Beasley - 1.2.2-3 - Initial package for EPEL9 * Wed Dec 21 2022 Benjamin A. Beasley - 1.2.2-2 - Rely on PYTEST_XDIST_AUTO_NUM_WORKERS * Fri Dec 09 2022 Benjamin A. Beasley - 1.2.2-1 - Initial package ## END: Generated by rpmautospec