Blame SPECS/python-freezegun.spec

daacb6
%global modname freezegun
daacb6
%global sum Let your Python tests travel through time
daacb6
daacb6
Name:               python-freezegun
daacb6
Version:            1.5.1
daacb6
Release:            3%{?dist}
daacb6
Summary:            %{sum}
daacb6
daacb6
License:            Apache-2.0
daacb6
URL:                https://pypi.io/project/freezegun
daacb6
Source0:            https://pypi.io/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz
daacb6
daacb6
Patch:              freezegun-1.5.1-no-coverage.patch
daacb6
daacb6
BuildArch:          noarch
daacb6
daacb6
%description
daacb6
freezegun is a library that allows your python tests to travel through time by
daacb6
mocking the datetime module.
daacb6
daacb6
daacb6
%package -n python3-freezegun
daacb6
Summary:            %{sum}
daacb6
daacb6
BuildRequires:      python3-devel
daacb6
daacb6
%{?python_provide:%python_provide python3-freezegun}
daacb6
daacb6
#Requires:           python3-six
daacb6
#Requires:           python3-dateutil >= 2.7
daacb6
daacb6
%description -n python3-freezegun
daacb6
freezegun is a library that allows your python tests to travel through time by
daacb6
mocking the datetime module. This is the Python 3 library.
daacb6
daacb6
%prep
daacb6
%autosetup -p1 -n %{modname}-%{version}
daacb6
daacb6
%generate_buildrequires
daacb6
%pyproject_buildrequires -t
daacb6
daacb6
%build
daacb6
%pyproject_wheel
daacb6
daacb6
%install
daacb6
%pyproject_install
daacb6
daacb6
%pyproject_save_files -l freezegun
daacb6
daacb6
%check
daacb6
# Ignore two tests that are broken when run on systems in certain timezones.
daacb6
# Reported upstream: https://github.com/spulec/freezegun/issues/348
daacb6
pytest-3 --deselect tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_frozen_time \
daacb6
         --deselect tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_hello
daacb6
daacb6
%files -n python3-freezegun -f %{pyproject_files}
daacb6
%doc README.rst LICENSE
daacb6
daacb6
%changelog
daacb6
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
daacb6
daacb6
* Sat Nov 02 2024 Kevin Fenzi <kevin@scrye.com> - 1.5.1-2
daacb6
- Add patch to not run coverage tests to allow epel10. rhbz#2321257
daacb6
daacb6
* Sat Nov 02 2024 Kevin Fenzi <kevin@scrye.com> - 1.5.1-1
daacb6
- Upgrade to 1.5.1.
daacb6
- Modernize spec.
daacb6
daacb6
* Wed Jul 24 2024 Miroslav Suchý <msuchy@redhat.com> - 1.2.2-9
daacb6
- convert license to SPDX
daacb6
daacb6
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-8
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
daacb6
daacb6
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1.2.2-7
daacb6
- Rebuilt for Python 3.13
daacb6
daacb6
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-6
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
daacb6
daacb6
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-5
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
daacb6
daacb6
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-4
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
daacb6
daacb6
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.2.2-3
daacb6
- Rebuilt for Python 3.12
daacb6
daacb6
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
daacb6
daacb6
* Wed Oct 26 2022 Roman Inflianskas <rominf@aiven.io> - 1.2.2-1
daacb6
- Update to 1.2.2
daacb6
daacb6
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
daacb6
daacb6
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.1.0-3
daacb6
- Rebuilt for Python 3.11
daacb6
daacb6
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
daacb6
daacb6
* Wed Sep 15 2021 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.1.0-1
daacb6
- Update to 1.1.0
daacb6
daacb6
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-7
daacb6
- Second attempt - Rebuilt for
daacb6
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
daacb6
daacb6
* Mon Jun 21 2021 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-6
daacb6
- Remove unused build dependency on python-sure
daacb6
daacb6
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.0.0-5
daacb6
- Rebuilt for Python 3.10
daacb6
daacb6
* Fri Feb 19 2021 Stephen Gallagher <sgallagh@redhat.com> - 1.0.0-4
daacb6
- Skip tests that are buggy on certain architectures
daacb6
- Restore the UUID tests, as the bug was fixed some time ago
daacb6
daacb6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
daacb6
daacb6
* Tue Nov 24 2020 Kevin Fenzi <kevin@scrye.com> - 1.0.0-2
daacb6
- Drop build deps on python-mock and python-coverage.
daacb6
daacb6
* Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 1.0.0-1
daacb6
- Update to 1.0.0
daacb6
daacb6
* Tue Sep 08 2020 Yatin Karel <ykarel@redhat.com> - 0.3.15-1
daacb6
- Update to 0.3.15
daacb6
daacb6
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.12-7
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
daacb6
daacb6
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.12-6
daacb6
- Rebuilt for Python 3.9
daacb6
daacb6
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.12-5
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
daacb6
daacb6
* Sat Sep 21 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.12-4
daacb6
- Subpackage python2-freezegun has been removed
daacb6
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
daacb6
daacb6
* Thu Aug 15 2019 Richard Shaw <hobbes1069@gmail.com> - 0.3.12-3
daacb6
- Rebuild with Python 3.8.
daacb6
daacb6
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.12-2
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
daacb6
daacb6
* Wed Jun 05 2019 Charalampos Stratakis <cstratak@redhat.com> - 0.3.12-1
daacb6
- Update to 0.3.12
daacb6
daacb6
* Mon Feb 11 2019 Adam Williamson <awilliam@redhat.com> - 0.3.11-4
daacb6
- Backport fix for #269 that should fix cached-property tests
daacb6
daacb6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.11-3
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
daacb6
daacb6
* Fri Dec 14 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.11-2
daacb6
- Enable py2 on all Fedoras, it is unfortunately still needed
daacb6
daacb6
* Sun Nov 11 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3.11-1
daacb6
- Update to latest upstream release
daacb6
- Disable py2 on F30+
daacb6
- Fix py2 build
daacb6
daacb6
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-11
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
daacb6
daacb6
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.8-10
daacb6
- Rebuilt for Python 3.7
daacb6
daacb6
* Thu Apr 05 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.3.8-9
daacb6
- Conditionalize the Python 2 subpackage and don't build it on EL > 7
daacb6
daacb6
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.8-8
daacb6
- Update Python 2 dependency declarations to new packaging standards
daacb6
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
daacb6
daacb6
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-7
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
daacb6
daacb6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-6
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
daacb6
daacb6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-5
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
daacb6
daacb6
* Wed Dec 28 2016 Adam Williamson <awilliam@redhat.com> - 0.3.8-4
daacb6
- REALLY rename Python 2 package to python2-freezegun
daacb6
daacb6
* Wed Dec 21 2016 Adam Williamson <awilliam@redhat.com> - 0.3.8-3
daacb6
- Rebuild with Python 3.6 again (now python-sure is built)
daacb6
- rename Python 2 package to python2-freezegun
daacb6
daacb6
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.8-2
daacb6
- Rebuild for Python 3.6
daacb6
daacb6
* Tue Nov 08 2016 Ralph Bean <rbean@redhat.com> - 0.3.8-1
daacb6
- new version
daacb6
daacb6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
daacb6
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
daacb6
daacb6
* Wed Apr 20 2016 Kevin Fenzi <kevin@scrye.com> - 0.3.6-1
daacb6
- Update to 0.3.6. Fixes bug #1328934
daacb6
daacb6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-4
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
daacb6
daacb6
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 0.3.2-3
daacb6
- Rebuilt for Python3.5 rebuild
daacb6
daacb6
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-2
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
daacb6
daacb6
* Thu Apr 16 2015 Adam Williamson <awilliam@redhat.com> - 0.3.2-1
daacb6
- latest upstream release
daacb6
daacb6
* Thu Jan 22 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.12-4
daacb6
- Adjust tests to actually do something
daacb6
daacb6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.12-3
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
daacb6
daacb6
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.1.12-2
daacb6
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
daacb6
daacb6
* Wed Feb 12 2014 Ralph Bean <rbean@redhat.com> - 0.1.12-1
daacb6
- initial package for Fedora