Blame SPECS/python-freezegun.spec

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