|
|
849704c |
%global modname freezegun
|
|
|
d0ec6e2 |
%global sum Let your Python tests travel through time
|
|
|
849704c |
|
|
|
849704c |
Name: python-freezegun
|
|
Roman Inflianskas |
5dbfd59 |
Version: 1.2.2
|
|
|
9a3f42d |
Release: 6%{?dist}
|
|
|
d0ec6e2 |
Summary: %{sum}
|
|
|
849704c |
|
|
|
849704c |
License: ASL 2.0
|
|
|
f378ea5 |
URL: https://pypi.io/project/freezegun
|
|
|
f378ea5 |
Source0: https://pypi.io/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz
|
|
|
849704c |
|
|
|
da8be3f |
# Fix decorate_class for Python 3.10 where staticmethod is callable
|
|
|
da8be3f |
Patch1: https://github.com/spulec/freezegun/pull/397.patch
|
|
|
da8be3f |
|
|
|
e94bbe6 |
# Fix for Python 3.13 - don't call the removed uuil._load_system_functions()
|
|
|
e94bbe6 |
Patch2: https://github.com/spulec/freezegun/pull/534.patch
|
|
|
e94bbe6 |
|
|
|
849704c |
BuildArch: noarch
|
|
|
849704c |
|
|
|
89cc12b |
%description
|
|
|
89cc12b |
freezegun is a library that allows your python tests to travel through time by
|
|
|
89cc12b |
mocking the datetime module.
|
|
|
89cc12b |
|
|
|
849704c |
|
|
|
849704c |
%package -n python3-freezegun
|
|
|
d0ec6e2 |
Summary: %{sum}
|
|
|
89cc12b |
|
|
|
89cc12b |
BuildRequires: python3-devel
|
|
|
89cc12b |
BuildRequires: python3-setuptools
|
|
|
89cc12b |
BuildRequires: python3-six
|
|
|
0fcddec |
BuildRequires: python3-dateutil >= 2.7
|
|
|
db4a533 |
BuildRequires: python3-pytest
|
|
|
89cc12b |
|
|
|
d0ec6e2 |
%{?python_provide:%python_provide python3-freezegun}
|
|
|
849704c |
|
|
|
849704c |
Requires: python3-six
|
|
|
0fcddec |
Requires: python3-dateutil >= 2.7
|
|
|
849704c |
|
|
|
849704c |
%description -n python3-freezegun
|
|
|
d0ec6e2 |
freezegun is a library that allows your python tests to travel through time by
|
|
|
d0ec6e2 |
mocking the datetime module. This is the Python 3 library.
|
|
|
849704c |
|
|
|
849704c |
%prep
|
|
|
93a0af3 |
%autosetup -p1 -n %{modname}-%{version}
|
|
|
849704c |
|
|
|
849704c |
# Remove bundled egg-info in case it exists
|
|
|
849704c |
rm -rf %{modname}.egg-info
|
|
|
849704c |
|
|
|
849704c |
%build
|
|
|
89cc12b |
%py3_build
|
|
|
849704c |
|
|
|
849704c |
%install
|
|
|
89cc12b |
%py3_install
|
|
|
849704c |
|
|
|
849704c |
%check
|
|
|
3192c99 |
# Ignore two tests that are broken when run on systems in certain timezones.
|
|
|
3192c99 |
# Reported upstream: https://github.com/spulec/freezegun/issues/348
|
|
|
3192c99 |
pytest-3 --deselect tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_frozen_time \
|
|
|
3192c99 |
--deselect tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_hello
|
|
|
849704c |
|
|
|
6205f6e |
|
|
|
849704c |
|
|
|
849704c |
%files -n python3-freezegun
|
|
|
849704c |
%doc README.rst LICENSE
|
|
|
849704c |
%{python3_sitelib}/%{modname}/
|
|
|
849704c |
%{python3_sitelib}/%{modname}-%{version}-*
|
|
|
849704c |
|
|
|
849704c |
%changelog
|
|
|
9a3f42d |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-6
|
|
|
9a3f42d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
9a3f42d |
|
|
|
30307e1 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-5
|
|
|
30307e1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
30307e1 |
|
|
|
447c127 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-4
|
|
|
447c127 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
447c127 |
|
|
|
83a5b6f |
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.2.2-3
|
|
|
83a5b6f |
- Rebuilt for Python 3.12
|
|
|
83a5b6f |
|
|
|
58be34d |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
|
|
|
58be34d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
58be34d |
|
|
Roman Inflianskas |
5dbfd59 |
* Wed Oct 26 2022 Roman Inflianskas <rominf@aiven.io> - 1.2.2-1
|
|
Roman Inflianskas |
5dbfd59 |
- Update to 1.2.2
|
|
Roman Inflianskas |
5dbfd59 |
|
|
|
2d12423 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
|
|
|
2d12423 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
2d12423 |
|
|
|
4c22646 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.1.0-3
|
|
|
4c22646 |
- Rebuilt for Python 3.11
|
|
|
4c22646 |
|
|
|
a425e5e |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
|
a425e5e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
a425e5e |
|
|
|
2bfae94 |
* Wed Sep 15 2021 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.1.0-1
|
|
|
2bfae94 |
- Update to 1.1.0
|
|
|
2bfae94 |
|
|
|
a6d14de |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-7
|
|
|
a6d14de |
- Second attempt - Rebuilt for
|
|
|
a6d14de |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
a6d14de |
|
|
|
b51fffd |
* Mon Jun 21 2021 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-6
|
|
|
b51fffd |
- Remove unused build dependency on python-sure
|
|
|
b51fffd |
|
|
|
933e982 |
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.0.0-5
|
|
|
933e982 |
- Rebuilt for Python 3.10
|
|
|
933e982 |
|
|
|
3192c99 |
* Fri Feb 19 2021 Stephen Gallagher <sgallagh@redhat.com> - 1.0.0-4
|
|
|
3192c99 |
- Skip tests that are buggy on certain architectures
|
|
|
3192c99 |
- Restore the UUID tests, as the bug was fixed some time ago
|
|
|
3192c99 |
|
|
|
4224668 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
|
|
4224668 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
4224668 |
|
|
|
0ac8ac5 |
* Tue Nov 24 2020 Kevin Fenzi <kevin@scrye.com> - 1.0.0-2
|
|
|
0ac8ac5 |
- Drop build deps on python-mock and python-coverage.
|
|
|
0ac8ac5 |
|
|
|
0fcddec |
* Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 1.0.0-1
|
|
|
0fcddec |
- Update to 1.0.0
|
|
|
0fcddec |
|
|
|
677a016 |
* Tue Sep 08 2020 Yatin Karel <ykarel@redhat.com> - 0.3.15-1
|
|
|
677a016 |
- Update to 0.3.15
|
|
|
677a016 |
|
|
|
4b62b6e |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.12-7
|
|
|
4b62b6e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
4b62b6e |
|
|
|
fc24a9e |
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.12-6
|
|
|
fc24a9e |
- Rebuilt for Python 3.9
|
|
|
fc24a9e |
|
|
|
c1c87c7 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.12-5
|
|
|
c1c87c7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
c1c87c7 |
|
|
|
fd557f7 |
* Sat Sep 21 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.12-4
|
|
|
fd557f7 |
- Subpackage python2-freezegun has been removed
|
|
|
fd557f7 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
fd557f7 |
|
|
|
1771215 |
* Thu Aug 15 2019 Richard Shaw <hobbes1069@gmail.com> - 0.3.12-3
|
|
|
1771215 |
- Rebuild with Python 3.8.
|
|
|
1771215 |
|
|
|
bd6dbaa |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.12-2
|
|
|
bd6dbaa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
bd6dbaa |
|
|
|
db4a533 |
* Wed Jun 05 2019 Charalampos Stratakis <cstratak@redhat.com> - 0.3.12-1
|
|
|
db4a533 |
- Update to 0.3.12
|
|
|
db4a533 |
|
|
|
93a0af3 |
* Mon Feb 11 2019 Adam Williamson <awilliam@redhat.com> - 0.3.11-4
|
|
|
93a0af3 |
- Backport fix for #269 that should fix cached-property tests
|
|
|
93a0af3 |
|
|
|
996f96b |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.11-3
|
|
|
996f96b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
996f96b |
|
|
|
524a792 |
* Fri Dec 14 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.11-2
|
|
|
524a792 |
- Enable py2 on all Fedoras, it is unfortunately still needed
|
|
|
524a792 |
|
|
|
5611096 |
* Sun Nov 11 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.11-1
|
|
|
5611096 |
- Update to latest upstream release
|
|
|
5611096 |
- Disable py2 on F30+
|
|
|
8826074 |
- Fix py2 build
|
|
|
5611096 |
|
|
|
6e588bb |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-11
|
|
|
6e588bb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
6e588bb |
|
|
|
ceeb06a |
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.8-10
|
|
|
ceeb06a |
- Rebuilt for Python 3.7
|
|
|
ceeb06a |
|
|
|
89cc12b |
* Thu Apr 05 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.3.8-9
|
|
|
89cc12b |
- Conditionalize the Python 2 subpackage and don't build it on EL > 7
|
|
|
89cc12b |
|
|
|
23ddc47 |
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.8-8
|
|
|
23ddc47 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
23ddc47 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
23ddc47 |
|
|
|
5859d0f |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-7
|
|
|
5859d0f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
5859d0f |
|
|
|
431f7f8 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-6
|
|
|
431f7f8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
431f7f8 |
|
|
|
690cfd6 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-5
|
|
|
690cfd6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
690cfd6 |
|
|
|
2118acc |
* Wed Dec 28 2016 Adam Williamson <awilliam@redhat.com> - 0.3.8-4
|
|
|
2118acc |
- REALLY rename Python 2 package to python2-freezegun
|
|
|
2118acc |
|
|
|
d0ec6e2 |
* Wed Dec 21 2016 Adam Williamson <awilliam@redhat.com> - 0.3.8-3
|
|
|
d0ec6e2 |
- Rebuild with Python 3.6 again (now python-sure is built)
|
|
|
d0ec6e2 |
- rename Python 2 package to python2-freezegun
|
|
|
d0ec6e2 |
|
|
|
54b7eec |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.8-2
|
|
|
54b7eec |
- Rebuild for Python 3.6
|
|
|
54b7eec |
|
|
|
f378ea5 |
* Tue Nov 08 2016 Ralph Bean <rbean@redhat.com> - 0.3.8-1
|
|
|
f378ea5 |
- new version
|
|
|
f378ea5 |
|
|
|
c99b402 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
|
|
|
c99b402 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
c99b402 |
|
|
|
6091d11 |
* Wed Apr 20 2016 Kevin Fenzi <kevin@scrye.com> - 0.3.6-1
|
|
|
6091d11 |
- Update to 0.3.6. Fixes bug #1328934
|
|
|
6091d11 |
|
|
|
a3389d6 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-4
|
|
|
a3389d6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a3389d6 |
|
|
Robert Kuska |
5208999 |
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 0.3.2-3
|
|
Robert Kuska |
5208999 |
- Rebuilt for Python3.5 rebuild
|
|
Robert Kuska |
5208999 |
|
|
|
e0772be |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-2
|
|
|
e0772be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
e0772be |
|
|
|
d51ef70 |
* Thu Apr 16 2015 Adam Williamson <awilliam@redhat.com> - 0.3.2-1
|
|
|
d51ef70 |
- latest upstream release
|
|
|
d51ef70 |
|
|
|
6205f6e |
* Thu Jan 22 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.12-4
|
|
|
6205f6e |
- Adjust tests to actually do something
|
|
|
6205f6e |
|
|
|
f35de12 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.12-3
|
|
|
f35de12 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
f35de12 |
|
|
|
30a911c |
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.1.12-2
|
|
|
30a911c |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
30a911c |
|
|
|
849704c |
* Wed Feb 12 2014 Ralph Bean <rbean@redhat.com> - 0.1.12-1
|
|
|
849704c |
- initial package for Fedora
|