## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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-time-machine Version: 2.9.0 Release: %autorelease Summary: Travel through time in your Python tests License: MIT URL: https://github.com/adamchainz/time-machine Source: %{url}/archive/%{version}/time-machine-%{version}.tar.gz BuildRequires: gcc BuildRequires: python3-devel %global _description %{expand: A Python library that allows to travel in time and freeze it as well. Includes a test-function decorator that sets time to an arbitrary value.} %description %_description %package -n python3-time-machine Summary: %{summary} %description -n python3-time-machine %_description %prep %autosetup -p1 -n time-machine-%{version} sed -i '/coverage/d' requirements/requirements.in %generate_buildrequires # tox uses a pinned version of requirements/requirements.in and also uses coverage # so we bypass it. # This also saves us one dependency cycle as tox uses time-machine for tests. %pyproject_buildrequires requirements/requirements.in %build %pyproject_wheel %install %pyproject_install %pyproject_save_files time_machine _time_machine %check %pytest -v %files -n python3-time-machine -f %{pyproject_files} %doc README.rst HISTORY.rst %changelog * Fri Jan 20 2023 Fedora Release Engineering 2.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jan 11 2023 Miro HronĨok 2.9.0-1 - Initial import - Fixes: rhbz#2159772