From 5ec78a93ca349035a4a347478d49f7c20d35baed Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 17 Dec 2024 16:50:06 +0300 Subject: [PATCH] import python-time-machine-2.16.0-1.el10 --- .gitignore | 1 + .python-time-machine.metadata | 1 + SPECS/python-time-machine.spec | 109 +++++++++++++++++++++++++++++++++ 3 files changed, 111 insertions(+) create mode 100644 .gitignore create mode 100644 .python-time-machine.metadata create mode 100644 SPECS/python-time-machine.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a611179 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/time-machine-2.16.0.tar.gz diff --git a/.python-time-machine.metadata b/.python-time-machine.metadata new file mode 100644 index 0000000..90b5a76 --- /dev/null +++ b/.python-time-machine.metadata @@ -0,0 +1 @@ +8b8a775c89a86bbdabca931a335c0506e897287c SOURCES/time-machine-2.16.0.tar.gz diff --git a/SPECS/python-time-machine.spec b/SPECS/python-time-machine.spec new file mode 100644 index 0000000..fd50323 --- /dev/null +++ b/SPECS/python-time-machine.spec @@ -0,0 +1,109 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + 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.16.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' tests/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 tests/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 +* Tue Dec 17 2024 Arkady L. Shane - 2.16.0-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Oct 08 2024 Charalampos Stratakis - 2.16.0-1 +- Update to 2.16.0 +- Fixes: rhbz#2295579 + +* Fri Jul 19 2024 Fedora Release Engineering - 2.14.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 08 2024 Python Maint - 2.14.1-2 +- Rebuilt for Python 3.13 + +* Mon Apr 22 2024 Karolina Surma - 2.14.1-1 +- Update to 2.14.1 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.13.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2.13.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Nov 24 2023 Miro Hrončok - 2.13.0-2 +- Add support for Python 3.13.0a2+ + +* Fri Nov 24 2023 Miro Hrončok - 2.13.0-1 +- Update to 2.13.0 +- Fixes: rhbz#2239635 + +* Tue Aug 29 2023 Charalampos Stratakis - 2.12.0-1 +- Update to 2.12.0 + +* Fri Jul 21 2023 Fedora Release Engineering - 2.9.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jun 16 2023 Python Maint - 2.9.0-3 +- Rebuilt for Python 3.12 + +* 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 +## END: Generated by rpmautospec