From f3418bda4cecc8b131eb045f6585f7c9cb974ae3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Feb 2014 13:08:20 +0000 Subject: [PATCH 01/46] Initial setup of the repo --- .gitignore | 0 sources | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 .gitignore create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/sources b/sources new file mode 100644 index 0000000..e69de29 From 849704c5e8398f8cd2e7cb974490a4af6ee5864e Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 27 Feb 2014 13:11:37 -0500 Subject: [PATCH 02/46] Initial packaging (#1064576) --- .gitignore | 1 + python-freezegun-unconstrain-six.patch | 25 ++++++ python-freezegun.spec | 111 +++++++++++++++++++++++++ sources | 1 + 4 files changed, 138 insertions(+) create mode 100644 python-freezegun-unconstrain-six.patch create mode 100644 python-freezegun.spec diff --git a/.gitignore b/.gitignore index e69de29..37ce2ab 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/freezegun-0.1.12.tar.gz diff --git a/python-freezegun-unconstrain-six.patch b/python-freezegun-unconstrain-six.patch new file mode 100644 index 0000000..6f3468d --- /dev/null +++ b/python-freezegun-unconstrain-six.patch @@ -0,0 +1,25 @@ +From f627be59881f26b7da4392e89189e09d1153b215 Mon Sep 17 00:00:00 2001 +From: Ralph Bean +Date: Wed, 12 Feb 2014 16:27:15 -0500 +Subject: [PATCH] Unconstrain six. + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 1b5632e..fc2d769 100644 +--- a/setup.py ++++ b/setup.py +@@ -3,7 +3,7 @@ + import sys + from setuptools import setup, find_packages + +-requires = ['six<=1.4'] ++requires = ['six'] + + if sys.version_info[0] == 2: + requires += ['python-dateutil>=1.0, <2.0, >=2.1'] +-- +1.8.5.3 + diff --git a/python-freezegun.spec b/python-freezegun.spec new file mode 100644 index 0000000..f8df649 --- /dev/null +++ b/python-freezegun.spec @@ -0,0 +1,111 @@ +%if 0%{?fedora} +%global with_python3 1 +%endif + +%if 0%{?rhel} && 0%{?rhel} <= 6 +%{!?__python2: %global __python2 /usr/bin/python2} +%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%endif + +%global modname freezegun + +Name: python-freezegun +Version: 0.1.12 +Release: 1%{?dist} +Summary: Let your Python tests travel through time + +Group: Development/Libraries +License: ASL 2.0 +URL: http://pypi.python.org/pypi/freezegun +Source0: http://pypi.python.org/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz +#https://github.com/spulec/freezegun/pull/33 +Patch0: python-freezegun-unconstrain-six.patch + +BuildArch: noarch + + +BuildRequires: python2-devel +BuildRequires: python-setuptools +BuildRequires: python-six +BuildRequires: python-dateutil +BuildRequires: python-sure + +%if 0%{?with_python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-six +BuildRequires: python3-dateutil +BuildRequires: python3-sure +%endif + +Requires: python-six +Requires: python-dateutil + +%description +python-freezegun is a library that allows your python tests to travel through +time by mocking the datetime module. + +%if 0%{?with_python3} +%package -n python3-freezegun +Summary: Let your Python tests travel through time +Group: Development/Libraries + +Requires: python3-six +Requires: python3-dateutil + +%description -n python3-freezegun +python3-freezegun is a library that allows your python tests to travel through +time by mocking the datetime module. +%endif + +%prep +%setup -q -n %{modname}-%{version} +%patch0 -p1 + +# Remove bundled egg-info in case it exists +rm -rf %{modname}.egg-info +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif + +%build +%{__python2} setup.py build +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py build +popd +%endif + +%install +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install -O1 --skip-build --root=%{buildroot} +popd +%endif +%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} + +%check +%{__python2} setup.py test +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py test +popd +%endif + +%files +%doc README.rst LICENSE +%{python2_sitelib}/%{modname}/ +%{python2_sitelib}/%{modname}-%{version}* + +%if 0%{?with_python3} +%files -n python3-freezegun +%doc README.rst LICENSE +%{python3_sitelib}/%{modname}/ +%{python3_sitelib}/%{modname}-%{version}-* +%endif + +%changelog +* Wed Feb 12 2014 Ralph Bean - 0.1.12-1 +- initial package for Fedora diff --git a/sources b/sources index e69de29..c66ca1c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6e32a43e9fa8e28f8262952f55fbb1af freezegun-0.1.12.tar.gz From 30a911ccc45bffe428109c11515d1ffd4a96c416 Mon Sep 17 00:00:00 2001 From: Slavek Kabrda Date: Fri, 16 May 2014 08:30:07 +0200 Subject: [PATCH 03/46] Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index f8df649..b90be87 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -12,7 +12,7 @@ Name: python-freezegun Version: 0.1.12 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries @@ -107,5 +107,8 @@ popd %endif %changelog +* Wed May 14 2014 Bohuslav Kabrda - 0.1.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + * Wed Feb 12 2014 Ralph Bean - 0.1.12-1 - initial package for Fedora From f35de1290f9bb54c8cbe32558eb9c246ca22dce2 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 7 Jun 2014 15:30:20 -0500 Subject: [PATCH 04/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index b90be87..8cb920d 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -12,7 +12,7 @@ Name: python-freezegun Version: 0.1.12 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries @@ -107,6 +107,9 @@ popd %endif %changelog +* Sat Jun 07 2014 Fedora Release Engineering - 0.1.12-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Wed May 14 2014 Bohuslav Kabrda - 0.1.12-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 From 6205f6e62aaf073743f1f591aecac951e5a66f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 22 Jan 2015 17:50:34 -0500 Subject: [PATCH 05/46] Adjust tests to actually do something python setup.py test is a noop. Upstream is using nosetests to run tests under travis. Do the same here. --- python-freezegun.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 8cb920d..af06fea 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -12,7 +12,7 @@ Name: python-freezegun Version: 0.1.12 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries @@ -30,6 +30,9 @@ BuildRequires: python-setuptools BuildRequires: python-six BuildRequires: python-dateutil BuildRequires: python-sure +BuildRequires: python-nose +BuildRequires: python-coverage +BuildRequires: python-mock %if 0%{?with_python3} BuildRequires: python3-devel @@ -37,6 +40,9 @@ BuildRequires: python3-setuptools BuildRequires: python3-six BuildRequires: python3-dateutil BuildRequires: python3-sure +BuildRequires: python3-nose +BuildRequires: python3-coverage +BuildRequires: python3-mock %endif Requires: python-six @@ -87,13 +93,14 @@ popd %{__python2} setup.py install -O1 --skip-build --root=%{buildroot} %check -%{__python2} setup.py test -%if 0%{?with_python3} +%if %with python3 pushd %{py3dir} -%{__python3} setup.py test +nosetests-%{python3_version} tests/ popd %endif +nosetests-%{python2_version} tests/ + %files %doc README.rst LICENSE %{python2_sitelib}/%{modname}/ @@ -107,6 +114,9 @@ popd %endif %changelog +* Thu Jan 22 2015 Zbigniew Jędrzejewski-Szmek - 0.1.12-4 +- Adjust tests to actually do something + * Sat Jun 07 2014 Fedora Release Engineering - 0.1.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From d51ef709b866f5425064353fbb2ffc72ddb13600 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 16 Apr 2015 17:46:59 -0700 Subject: [PATCH 06/46] new release 0.3.2, drop patch merged upstream --- .gitignore | 1 + python-freezegun-unconstrain-six.patch | 25 ------------------------- python-freezegun.spec | 10 +++++----- sources | 2 +- 4 files changed, 7 insertions(+), 31 deletions(-) delete mode 100644 python-freezegun-unconstrain-six.patch diff --git a/.gitignore b/.gitignore index 37ce2ab..5654b8d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /freezegun-0.1.12.tar.gz +/freezegun-0.3.2.tar.gz diff --git a/python-freezegun-unconstrain-six.patch b/python-freezegun-unconstrain-six.patch deleted file mode 100644 index 6f3468d..0000000 --- a/python-freezegun-unconstrain-six.patch +++ /dev/null @@ -1,25 +0,0 @@ -From f627be59881f26b7da4392e89189e09d1153b215 Mon Sep 17 00:00:00 2001 -From: Ralph Bean -Date: Wed, 12 Feb 2014 16:27:15 -0500 -Subject: [PATCH] Unconstrain six. - ---- - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index 1b5632e..fc2d769 100644 ---- a/setup.py -+++ b/setup.py -@@ -3,7 +3,7 @@ - import sys - from setuptools import setup, find_packages - --requires = ['six<=1.4'] -+requires = ['six'] - - if sys.version_info[0] == 2: - requires += ['python-dateutil>=1.0, <2.0, >=2.1'] --- -1.8.5.3 - diff --git a/python-freezegun.spec b/python-freezegun.spec index af06fea..a994644 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -11,16 +11,14 @@ %global modname freezegun Name: python-freezegun -Version: 0.1.12 -Release: 4%{?dist} +Version: 0.3.2 +Release: 1%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries License: ASL 2.0 URL: http://pypi.python.org/pypi/freezegun Source0: http://pypi.python.org/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz -#https://github.com/spulec/freezegun/pull/33 -Patch0: python-freezegun-unconstrain-six.patch BuildArch: noarch @@ -67,7 +65,6 @@ time by mocking the datetime module. %prep %setup -q -n %{modname}-%{version} -%patch0 -p1 # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info @@ -114,6 +111,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Thu Apr 16 2015 Adam Williamson - 0.3.2-1 +- latest upstream release + * Thu Jan 22 2015 Zbigniew Jędrzejewski-Szmek - 0.1.12-4 - Adjust tests to actually do something diff --git a/sources b/sources index c66ca1c..0af17be 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6e32a43e9fa8e28f8262952f55fbb1af freezegun-0.1.12.tar.gz +70506e4bdb19f78f8561741fc91e7390 freezegun-0.3.2.tar.gz From e0772be298c817b13552004f050ab4c3bfb2bdb8 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 18 Jun 2015 19:26:13 +0000 Subject: [PATCH 07/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index a994644..3da9a25 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -12,7 +12,7 @@ Name: python-freezegun Version: 0.3.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries @@ -111,6 +111,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Thu Jun 18 2015 Fedora Release Engineering - 0.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Thu Apr 16 2015 Adam Williamson - 0.3.2-1 - latest upstream release From 520899995505d7a4182ea4830f7a06b9562bc0da Mon Sep 17 00:00:00 2001 From: Robert Kuska Date: Wed, 14 Oct 2015 09:21:31 +0200 Subject: [PATCH 08/46] Rebuilt for Python3.5 rebuild --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 3da9a25..227eae6 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -12,7 +12,7 @@ Name: python-freezegun Version: 0.3.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries @@ -111,6 +111,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Wed Oct 14 2015 Robert Kuska - 0.3.2-3 +- Rebuilt for Python3.5 rebuild + * Thu Jun 18 2015 Fedora Release Engineering - 0.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From a3389d68432f39c345dc7346369cdab95d03662a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 4 Feb 2016 19:44:13 +0000 Subject: [PATCH 09/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 227eae6..4adbac9 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -12,7 +12,7 @@ Name: python-freezegun Version: 0.3.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries @@ -111,6 +111,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Thu Feb 04 2016 Fedora Release Engineering - 0.3.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Wed Oct 14 2015 Robert Kuska - 0.3.2-3 - Rebuilt for Python3.5 rebuild From 6091d116ba98be75417e170a6ece691bacee1666 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 20 Apr 2016 10:29:17 -0600 Subject: [PATCH 10/46] Update to 0.3.6. Fixes bug #1328934 --- .gitignore | 1 + python-freezegun.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5654b8d..71c8638 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /freezegun-0.1.12.tar.gz /freezegun-0.3.2.tar.gz +/freezegun-0.3.6.tar.gz diff --git a/python-freezegun.spec b/python-freezegun.spec index 4adbac9..e6181b3 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -11,8 +11,8 @@ %global modname freezegun Name: python-freezegun -Version: 0.3.2 -Release: 4%{?dist} +Version: 0.3.6 +Release: 1%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries @@ -111,6 +111,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Wed Apr 20 2016 Kevin Fenzi - 0.3.6-1 +- Update to 0.3.6. Fixes bug #1328934 + * Thu Feb 04 2016 Fedora Release Engineering - 0.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index 0af17be..42f55aa 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -70506e4bdb19f78f8561741fc91e7390 freezegun-0.3.2.tar.gz +c321cf7392343f91e524eec0b601e8ec freezegun-0.3.6.tar.gz From c99b40284b5bc6f0413151fa2034da9eeaf540ea Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 19 Jul 2016 09:48:43 +0000 Subject: [PATCH 11/46] - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index e6181b3..0397d49 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -12,7 +12,7 @@ Name: python-freezegun Version: 0.3.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries @@ -111,6 +111,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Tue Jul 19 2016 Fedora Release Engineering - 0.3.6-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + * Wed Apr 20 2016 Kevin Fenzi - 0.3.6-1 - Update to 0.3.6. Fixes bug #1328934 From f378ea5c75e89b16ca2e716db19a120edafd16d2 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 7 Nov 2016 19:57:22 -0500 Subject: [PATCH 12/46] 0.3.8 --- .gitignore | 1 + python-freezegun.spec | 11 +++++++---- sources | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 71c8638..03b4155 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /freezegun-0.1.12.tar.gz /freezegun-0.3.2.tar.gz /freezegun-0.3.6.tar.gz +/freezegun-0.3.8.tar.gz diff --git a/python-freezegun.spec b/python-freezegun.spec index 0397d49..0dfaf89 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -11,14 +11,14 @@ %global modname freezegun Name: python-freezegun -Version: 0.3.6 -Release: 2%{?dist} +Version: 0.3.8 +Release: 1%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries License: ASL 2.0 -URL: http://pypi.python.org/pypi/freezegun -Source0: http://pypi.python.org/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz +URL: https://pypi.io/project/freezegun +Source0: https://pypi.io/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz BuildArch: noarch @@ -111,6 +111,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Tue Nov 08 2016 Ralph Bean - 0.3.8-1 +- new version + * Tue Jul 19 2016 Fedora Release Engineering - 0.3.6-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages diff --git a/sources b/sources index 42f55aa..4927848 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c321cf7392343f91e524eec0b601e8ec freezegun-0.3.6.tar.gz +6bc229de8f6ae1f1906172b7189f7d0e freezegun-0.3.8.tar.gz From 54b7eec57e90c59624f1710bbb5915b72f729a2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 19 Dec 2016 18:20:37 +0100 Subject: [PATCH 13/46] Rebuild for Python 3.6 --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 0dfaf89..955e1b3 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -12,7 +12,7 @@ Name: python-freezegun Version: 0.3.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Let your Python tests travel through time Group: Development/Libraries @@ -111,6 +111,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Mon Dec 19 2016 Miro Hrončok - 0.3.8-2 +- Rebuild for Python 3.6 + * Tue Nov 08 2016 Ralph Bean - 0.3.8-1 - new version From d0ec6e2b584adce5d3578fde3d28edae2a047401 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 21 Dec 2016 10:29:34 -0800 Subject: [PATCH 14/46] Rebuild for Python 3.6 again, rename python2 package --- python-freezegun.spec | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 955e1b3..ea55c6a 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -9,11 +9,12 @@ %endif %global modname freezegun +%global sum Let your Python tests travel through time Name: python-freezegun Version: 0.3.8 -Release: 2%{?dist} -Summary: Let your Python tests travel through time +Release: 3%{?dist} +Summary: %{sum} Group: Development/Libraries License: ASL 2.0 @@ -43,24 +44,37 @@ BuildRequires: python3-coverage BuildRequires: python3-mock %endif +%description +freezegun is a library that allows your python tests to travel through time by +mocking the datetime module. + + +%package -n python2-freezegun +Summary: %{sum} +Group: Development/Libraries +%{?python_provide:%python_provide python2-freezegun} + +# EL packages don't provide python2-foo Requires: python-six Requires: python-dateutil -%description -python-freezegun is a library that allows your python tests to travel through -time by mocking the datetime module. +%description -n python2-freezegun +freezegun is a library that allows your python tests to travel through time by +mocking the datetime module. This is the Python 2 library. + %if 0%{?with_python3} %package -n python3-freezegun -Summary: Let your Python tests travel through time +Summary: %{sum} Group: Development/Libraries +%{?python_provide:%python_provide python3-freezegun} Requires: python3-six Requires: python3-dateutil %description -n python3-freezegun -python3-freezegun is a library that allows your python tests to travel through -time by mocking the datetime module. +freezegun is a library that allows your python tests to travel through time by +mocking the datetime module. This is the Python 3 library. %endif %prep @@ -111,6 +125,10 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Wed Dec 21 2016 Adam Williamson - 0.3.8-3 +- Rebuild with Python 3.6 again (now python-sure is built) +- rename Python 2 package to python2-freezegun + * Mon Dec 19 2016 Miro Hrončok - 0.3.8-2 - Rebuild for Python 3.6 From 2118accea81b80455d0e361eaee0101ff6643a3e Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 28 Dec 2016 14:52:41 -0800 Subject: [PATCH 15/46] REALLY rename Python 2 package to python2-freezegun --- python-freezegun.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index ea55c6a..a428995 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -13,7 +13,7 @@ Name: python-freezegun Version: 0.3.8 -Release: 3%{?dist} +Release: 4%{?dist} Summary: %{sum} Group: Development/Libraries @@ -112,7 +112,7 @@ popd nosetests-%{python2_version} tests/ -%files +%files -n python2-freezegun %doc README.rst LICENSE %{python2_sitelib}/%{modname}/ %{python2_sitelib}/%{modname}-%{version}* @@ -125,6 +125,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Wed Dec 28 2016 Adam Williamson - 0.3.8-4 +- REALLY rename Python 2 package to python2-freezegun + * Wed Dec 21 2016 Adam Williamson - 0.3.8-3 - Rebuild with Python 3.6 again (now python-sure is built) - rename Python 2 package to python2-freezegun From 690cfd679498bd0621839ec6e952beef582015bb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 11 Feb 2017 09:06:31 +0000 Subject: [PATCH 16/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index a428995..557bc67 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -13,7 +13,7 @@ Name: python-freezegun Version: 0.3.8 -Release: 4%{?dist} +Release: 5%{?dist} Summary: %{sum} Group: Development/Libraries @@ -125,6 +125,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Sat Feb 11 2017 Fedora Release Engineering - 0.3.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Wed Dec 28 2016 Adam Williamson - 0.3.8-4 - REALLY rename Python 2 package to python2-freezegun From 431f7f85ebe36f4a3f7f1e6d3a1ae338835435a1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 10:25:09 +0000 Subject: [PATCH 17/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 557bc67..58034b5 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -13,7 +13,7 @@ Name: python-freezegun Version: 0.3.8 -Release: 5%{?dist} +Release: 6%{?dist} Summary: %{sum} Group: Development/Libraries @@ -125,6 +125,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 0.3.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Sat Feb 11 2017 Fedora Release Engineering - 0.3.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 5859d0f63f4ab48743bd550e89d15c7bd995fae1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 08:00:43 +0000 Subject: [PATCH 18/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 58034b5..c1b3361 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -13,7 +13,7 @@ Name: python-freezegun Version: 0.3.8 -Release: 6%{?dist} +Release: 7%{?dist} Summary: %{sum} Group: Development/Libraries @@ -125,6 +125,9 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 0.3.8-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Thu Jul 27 2017 Fedora Release Engineering - 0.3.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 23ddc4783c43b8244c9cf5b68837535632624df4 Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Wed, 21 Feb 2018 05:23:18 +0100 Subject: [PATCH 19/46] Update Python 2 dependency declarations to new packaging standards --- python-freezegun.spec | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index c1b3361..647ab43 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -13,7 +13,7 @@ Name: python-freezegun Version: 0.3.8 -Release: 7%{?dist} +Release: 8%{?dist} Summary: %{sum} Group: Development/Libraries @@ -25,13 +25,13 @@ BuildArch: noarch BuildRequires: python2-devel -BuildRequires: python-setuptools -BuildRequires: python-six -BuildRequires: python-dateutil -BuildRequires: python-sure -BuildRequires: python-nose -BuildRequires: python-coverage -BuildRequires: python-mock +BuildRequires: python2-setuptools +BuildRequires: python2-six +BuildRequires: python2-dateutil +BuildRequires: python2-sure +BuildRequires: python2-nose +BuildRequires: python2-coverage +BuildRequires: python2-mock %if 0%{?with_python3} BuildRequires: python3-devel @@ -55,8 +55,8 @@ Group: Development/Libraries %{?python_provide:%python_provide python2-freezegun} # EL packages don't provide python2-foo -Requires: python-six -Requires: python-dateutil +Requires: python2-six +Requires: python2-dateutil %description -n python2-freezegun freezegun is a library that allows your python tests to travel through time by @@ -125,6 +125,10 @@ nosetests-%{python2_version} tests/ %endif %changelog +* Wed Feb 21 2018 Iryna Shcherbina - 0.3.8-8 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + * Fri Feb 09 2018 Fedora Release Engineering - 0.3.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From 89cc12b61d7b89196a91ab4958bd05ed9332b86c Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Thu, 5 Apr 2018 15:22:12 +0200 Subject: [PATCH 20/46] Conditionalize the Python 2 subpackage and don't build it on EL > 7 Some SPEC file modernizations. --- python-freezegun.spec | 101 +++++++++++++++++++++++------------------- 1 file changed, 56 insertions(+), 45 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 647ab43..fd2e2aa 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -1,11 +1,15 @@ -%if 0%{?fedora} -%global with_python3 1 +%if 0%{?fedora} || 0%{?rhel} > 7 +# Enable python3 build by default +%bcond_without python3 +%else +%bcond_with python3 %endif -%if 0%{?rhel} && 0%{?rhel} <= 6 -%{!?__python2: %global __python2 /usr/bin/python2} -%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%if 0%{?rhel} > 7 +# Disable python2 build by default +%bcond_with python2 +%else +%bcond_without python2 %endif %global modname freezegun @@ -13,7 +17,7 @@ Name: python-freezegun Version: 0.3.8 -Release: 8%{?dist} +Release: 9%{?dist} Summary: %{sum} Group: Development/Libraries @@ -23,6 +27,13 @@ Source0: https://pypi.io/packages/source/f/%{modname}/%{modname}-%{ve BuildArch: noarch +%description +freezegun is a library that allows your python tests to travel through time by +mocking the datetime module. + +%if %{with python2} +%package -n python2-freezegun +Summary: %{sum} BuildRequires: python2-devel BuildRequires: python2-setuptools @@ -33,40 +44,29 @@ BuildRequires: python2-nose BuildRequires: python2-coverage BuildRequires: python2-mock -%if 0%{?with_python3} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-six -BuildRequires: python3-dateutil -BuildRequires: python3-sure -BuildRequires: python3-nose -BuildRequires: python3-coverage -BuildRequires: python3-mock -%endif - -%description -freezegun is a library that allows your python tests to travel through time by -mocking the datetime module. - - -%package -n python2-freezegun -Summary: %{sum} -Group: Development/Libraries %{?python_provide:%python_provide python2-freezegun} -# EL packages don't provide python2-foo Requires: python2-six Requires: python2-dateutil %description -n python2-freezegun freezegun is a library that allows your python tests to travel through time by mocking the datetime module. This is the Python 2 library. +%endif # with python2 - -%if 0%{?with_python3} +%if %{with python3} %package -n python3-freezegun Summary: %{sum} -Group: Development/Libraries + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-six +BuildRequires: python3-dateutil +BuildRequires: python3-sure +BuildRequires: python3-nose +BuildRequires: python3-coverage +BuildRequires: python3-mock + %{?python_provide:%python_provide python3-freezegun} Requires: python3-six @@ -75,56 +75,67 @@ Requires: python3-dateutil %description -n python3-freezegun freezegun is a library that allows your python tests to travel through time by mocking the datetime module. This is the Python 3 library. -%endif +%endif # with python3 %prep %setup -q -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info -%if 0%{?with_python3} +%if %{with python3} rm -rf %{py3dir} cp -a . %{py3dir} -%endif +%endif # with python3 %build -%{__python2} setup.py build -%if 0%{?with_python3} +%if %{with python2} +%py2_build +%endif # with python2 +%if %{with python3} pushd %{py3dir} -%{__python3} setup.py build +%py3_build popd -%endif +%endif # with python3 %install -%if 0%{?with_python3} +%if %{with python3} pushd %{py3dir} -%{__python3} setup.py install -O1 --skip-build --root=%{buildroot} +%py3_install popd -%endif -%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} +%endif # with python3 +%if %{with python2} +%py2_install +%endif # with python2 %check -%if %with python3 +%if %{with python3} pushd %{py3dir} nosetests-%{python3_version} tests/ popd -%endif +%endif # with python3 +%if %{with python2} nosetests-%{python2_version} tests/ +%endif # with python2 +%if %{with python2} %files -n python2-freezegun %doc README.rst LICENSE %{python2_sitelib}/%{modname}/ %{python2_sitelib}/%{modname}-%{version}* +%endif # with python2 -%if 0%{?with_python3} +%if %{with python3} %files -n python3-freezegun %doc README.rst LICENSE %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-* -%endif +%endif # with python3 %changelog +* Thu Apr 05 2018 Charalampos Stratakis - 0.3.8-9 +- Conditionalize the Python 2 subpackage and don't build it on EL > 7 + * Wed Feb 21 2018 Iryna Shcherbina - 0.3.8-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) From ceeb06af4977cd26fa7c219ab87ff0451189ae77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sat, 16 Jun 2018 02:53:45 +0200 Subject: [PATCH 21/46] Rebuilt for Python 3.7 --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index fd2e2aa..d252952 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -17,7 +17,7 @@ Name: python-freezegun Version: 0.3.8 -Release: 9%{?dist} +Release: 10%{?dist} Summary: %{sum} Group: Development/Libraries @@ -133,6 +133,9 @@ nosetests-%{python2_version} tests/ %endif # with python3 %changelog +* Sat Jun 16 2018 Miro Hrončok - 0.3.8-10 +- Rebuilt for Python 3.7 + * Thu Apr 05 2018 Charalampos Stratakis - 0.3.8-9 - Conditionalize the Python 2 subpackage and don't build it on EL > 7 From 6e588bbe565d45a53c373df614802397dad09672 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 00:21:22 +0000 Subject: [PATCH 22/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index d252952..a3cae74 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -17,7 +17,7 @@ Name: python-freezegun Version: 0.3.8 -Release: 10%{?dist} +Release: 11%{?dist} Summary: %{sum} Group: Development/Libraries @@ -133,6 +133,9 @@ nosetests-%{python2_version} tests/ %endif # with python3 %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 0.3.8-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Sat Jun 16 2018 Miro Hrončok - 0.3.8-10 - Rebuilt for Python 3.7 From 5611096d996086af134a0037a1e030f1e4c9a58a Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Sun, 11 Nov 2018 22:06:38 +0000 Subject: [PATCH 23/46] Update to 0.3.11 --- .gitignore | 2 ++ python-freezegun.spec | 10 +++++++--- sources | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 03b4155..5b2e10a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /freezegun-0.3.2.tar.gz /freezegun-0.3.6.tar.gz /freezegun-0.3.8.tar.gz +/freezegun-0.3.10.tar.gz +/freezegun-0.3.11.tar.gz diff --git a/python-freezegun.spec b/python-freezegun.spec index a3cae74..93db094 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -5,7 +5,7 @@ %bcond_with python3 %endif -%if 0%{?rhel} > 7 +%if 0%{?rhel} > 7 || 0%{?fedora} >= 30 # Disable python2 build by default %bcond_with python2 %else @@ -16,8 +16,8 @@ %global sum Let your Python tests travel through time Name: python-freezegun -Version: 0.3.8 -Release: 11%{?dist} +Version: 0.3.11 +Release: 1%{?dist} Summary: %{sum} Group: Development/Libraries @@ -133,6 +133,10 @@ nosetests-%{python2_version} tests/ %endif # with python3 %changelog +* Sun Nov 11 2018 Ankur Sinha - 0.3.11-1 +- Update to latest upstream release +- Disable py2 on F30+ + * Sat Jul 14 2018 Fedora Release Engineering - 0.3.8-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index 4927848..bde0cc6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6bc229de8f6ae1f1906172b7189f7d0e freezegun-0.3.8.tar.gz +SHA512 (freezegun-0.3.11.tar.gz) = e8b392176641d52f6ed795c9af5fbc0a62892aeedf32b42375b56ab44a9ad7a5ecd3bb81363ed0ae65204aff2ef894cd7f2e17f42be72f31d3409b2bffa59ab8 From 88260747cc9af46cad44c9b96233a6fb75647e43 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Sun, 9 Dec 2018 14:23:18 +0000 Subject: [PATCH 24/46] Fix py2 build --- python-freezegun.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-freezegun.spec b/python-freezegun.spec index 93db094..bfd4554 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -91,6 +91,7 @@ cp -a . %{py3dir} %if %{with python2} %py2_build %endif # with python2 + %if %{with python3} pushd %{py3dir} %py3_build @@ -105,6 +106,8 @@ popd %endif # with python3 %if %{with python2} %py2_install +# Remove py3 only async module +rm -f $RPM_BUILD_ROOT/%{python2_sitelib}/%{modname}/_async.py %endif # with python2 %check @@ -136,6 +139,7 @@ nosetests-%{python2_version} tests/ * Sun Nov 11 2018 Ankur Sinha - 0.3.11-1 - Update to latest upstream release - Disable py2 on F30+ +- Fix py2 build * Sat Jul 14 2018 Fedora Release Engineering - 0.3.8-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 524a79237ad427692928ad9cfa165d5976b1bf24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 14 Dec 2018 16:02:17 +0100 Subject: [PATCH 25/46] Enable py2 on all Fedoras, it is unfortunately still needed By: babel-0:2.6.0-5.fc29.src datagrepper-0:0.9.5-1.fc30.src python-dateutil-1:2.7.3-1.fc30.src python-pip-0:18.1-1.fc30.src statscache-0:0.0.4-9.fc29.src --- python-freezegun.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index bfd4554..75cb9cf 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -5,7 +5,7 @@ %bcond_with python3 %endif -%if 0%{?rhel} > 7 || 0%{?fedora} >= 30 +%if 0%{?rhel} > 7 # Disable python2 build by default %bcond_with python2 %else @@ -17,7 +17,7 @@ Name: python-freezegun Version: 0.3.11 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{sum} Group: Development/Libraries @@ -136,6 +136,9 @@ nosetests-%{python2_version} tests/ %endif # with python3 %changelog +* Fri Dec 14 2018 Miro Hrončok - 0.3.11-2 +- Enable py2 on all Fedoras, it is unfortunately still needed + * Sun Nov 11 2018 Ankur Sinha - 0.3.11-1 - Update to latest upstream release - Disable py2 on F30+ From 4b801db511bdea2eb6d049c07382767afea21edb Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:18:16 +0100 Subject: [PATCH 26/46] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- python-freezegun.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 75cb9cf..169ee17 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -20,7 +20,6 @@ Version: 0.3.11 Release: 2%{?dist} Summary: %{sum} -Group: Development/Libraries License: ASL 2.0 URL: https://pypi.io/project/freezegun Source0: https://pypi.io/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz From 996f96ba0b2aae19bc75fb67b6dfe9b6b41a62ca Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 2 Feb 2019 06:53:59 +0000 Subject: [PATCH 27/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 169ee17..67d947f 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -17,7 +17,7 @@ Name: python-freezegun Version: 0.3.11 -Release: 2%{?dist} +Release: 3%{?dist} Summary: %{sum} License: ASL 2.0 @@ -135,6 +135,9 @@ nosetests-%{python2_version} tests/ %endif # with python3 %changelog +* Sat Feb 02 2019 Fedora Release Engineering - 0.3.11-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Dec 14 2018 Miro Hrončok - 0.3.11-2 - Enable py2 on all Fedoras, it is unfortunately still needed From 93a0af381c87cbaf1b679e2177104a34a5d139c2 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 11 Feb 2019 15:29:43 -0800 Subject: [PATCH 28/46] Backport fix for #269 that should fix cached-property tests --- ...-relevant-parts-of-pytest-by-default.patch | 26 +++++++++++++++++++ python-freezegun.spec | 13 ++++++++-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 0001-Ignore-relevant-parts-of-pytest-by-default.patch diff --git a/0001-Ignore-relevant-parts-of-pytest-by-default.patch b/0001-Ignore-relevant-parts-of-pytest-by-default.patch new file mode 100644 index 0000000..6cbe3b5 --- /dev/null +++ b/0001-Ignore-relevant-parts-of-pytest-by-default.patch @@ -0,0 +1,26 @@ +From d584b65de98a886bfdb4c7747bcdddf9931e0fb3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Anders=20Hovm=C3=B6ller?= +Date: Wed, 24 Oct 2018 11:19:11 +0200 +Subject: [PATCH] Ignore relevant parts of pytest by default + +--- + freezegun/api.py | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/freezegun/api.py b/freezegun/api.py +index 1bda951..e7aa199 100644 +--- a/freezegun/api.py ++++ b/freezegun/api.py +@@ -705,6 +705,9 @@ def freeze_time(time_to_freeze=None, tz_offset=0, ignore=None, tick=False, as_ar + ignore.append('google.gax') + ignore.append('threading') + ignore.append('Queue') ++ ignore.append('selenium') ++ ignore.append('_pytest.terminal') ++ ignore.append('_pytest.runner') + return _freeze_time(time_to_freeze, tz_offset, ignore, tick, as_arg) + + +-- +2.20.1 + diff --git a/python-freezegun.spec b/python-freezegun.spec index 67d947f..287b4fe 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -17,12 +17,18 @@ Name: python-freezegun Version: 0.3.11 -Release: 3%{?dist} +Release: 4%{?dist} Summary: %{sum} License: ASL 2.0 URL: https://pypi.io/project/freezegun Source0: https://pypi.io/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz +# https://github.com/spulec/freezegun/commit/028dee229f06d200d0f79a130deaad65b14779ef +# (rediffed) Fixes an issue that broke the python-cached_property tests +# https://github.com/spulec/freezegun/issues/269 +# https://github.com/ktosiek/pytest-freezegun/issues/6 +# https://github.com/pydanny/cached-property/issues/131 +Patch0: 0001-Ignore-relevant-parts-of-pytest-by-default.patch BuildArch: noarch @@ -77,7 +83,7 @@ mocking the datetime module. This is the Python 3 library. %endif # with python3 %prep -%setup -q -n %{modname}-%{version} +%autosetup -p1 -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info @@ -135,6 +141,9 @@ nosetests-%{python2_version} tests/ %endif # with python3 %changelog +* Mon Feb 11 2019 Adam Williamson - 0.3.11-4 +- Backport fix for #269 that should fix cached-property tests + * Sat Feb 02 2019 Fedora Release Engineering - 0.3.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From db4a533c328a416c9217ae9c9a144973b82d6007 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Wed, 5 Jun 2019 14:26:53 +0200 Subject: [PATCH 29/46] Update to 0.3.12 Also change to pytest and ignore two test cases failing with Python 3.8 --- .gitignore | 1 + ...-relevant-parts-of-pytest-by-default.patch | 26 ------------------- python-freezegun.spec | 23 ++++++++-------- sources | 2 +- 4 files changed, 13 insertions(+), 39 deletions(-) delete mode 100644 0001-Ignore-relevant-parts-of-pytest-by-default.patch diff --git a/.gitignore b/.gitignore index 5b2e10a..c180d69 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /freezegun-0.3.8.tar.gz /freezegun-0.3.10.tar.gz /freezegun-0.3.11.tar.gz +/freezegun-0.3.12.tar.gz diff --git a/0001-Ignore-relevant-parts-of-pytest-by-default.patch b/0001-Ignore-relevant-parts-of-pytest-by-default.patch deleted file mode 100644 index 6cbe3b5..0000000 --- a/0001-Ignore-relevant-parts-of-pytest-by-default.patch +++ /dev/null @@ -1,26 +0,0 @@ -From d584b65de98a886bfdb4c7747bcdddf9931e0fb3 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Anders=20Hovm=C3=B6ller?= -Date: Wed, 24 Oct 2018 11:19:11 +0200 -Subject: [PATCH] Ignore relevant parts of pytest by default - ---- - freezegun/api.py | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/freezegun/api.py b/freezegun/api.py -index 1bda951..e7aa199 100644 ---- a/freezegun/api.py -+++ b/freezegun/api.py -@@ -705,6 +705,9 @@ def freeze_time(time_to_freeze=None, tz_offset=0, ignore=None, tick=False, as_ar - ignore.append('google.gax') - ignore.append('threading') - ignore.append('Queue') -+ ignore.append('selenium') -+ ignore.append('_pytest.terminal') -+ ignore.append('_pytest.runner') - return _freeze_time(time_to_freeze, tz_offset, ignore, tick, as_arg) - - --- -2.20.1 - diff --git a/python-freezegun.spec b/python-freezegun.spec index 287b4fe..40288c8 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -16,19 +16,13 @@ %global sum Let your Python tests travel through time Name: python-freezegun -Version: 0.3.11 -Release: 4%{?dist} +Version: 0.3.12 +Release: 1%{?dist} Summary: %{sum} License: ASL 2.0 URL: https://pypi.io/project/freezegun Source0: https://pypi.io/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz -# https://github.com/spulec/freezegun/commit/028dee229f06d200d0f79a130deaad65b14779ef -# (rediffed) Fixes an issue that broke the python-cached_property tests -# https://github.com/spulec/freezegun/issues/269 -# https://github.com/ktosiek/pytest-freezegun/issues/6 -# https://github.com/pydanny/cached-property/issues/131 -Patch0: 0001-Ignore-relevant-parts-of-pytest-by-default.patch BuildArch: noarch @@ -45,7 +39,7 @@ BuildRequires: python2-setuptools BuildRequires: python2-six BuildRequires: python2-dateutil BuildRequires: python2-sure -BuildRequires: python2-nose +BuildRequires: python2-pytest BuildRequires: python2-coverage BuildRequires: python2-mock @@ -68,7 +62,7 @@ BuildRequires: python3-setuptools BuildRequires: python3-six BuildRequires: python3-dateutil BuildRequires: python3-sure -BuildRequires: python3-nose +BuildRequires: python3-pytest BuildRequires: python3-coverage BuildRequires: python3-mock @@ -118,12 +112,14 @@ rm -f $RPM_BUILD_ROOT/%{python2_sitelib}/%{modname}/_async.py %check %if %{with python3} pushd %{py3dir} -nosetests-%{python3_version} tests/ +# Ignore test_uuid1_future and test_uuid1_past for now as they fail with Python 3.8 +# Reported upstream: https://github.com/spulec/freezegun/issues/293 +pytest-3 --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_uuid.py::test_uuid1_past popd %endif # with python3 %if %{with python2} -nosetests-%{python2_version} tests/ +pytest-2 %endif # with python2 %if %{with python2} @@ -141,6 +137,9 @@ nosetests-%{python2_version} tests/ %endif # with python3 %changelog +* Wed Jun 05 2019 Charalampos Stratakis - 0.3.12-1 +- Update to 0.3.12 + * Mon Feb 11 2019 Adam Williamson - 0.3.11-4 - Backport fix for #269 that should fix cached-property tests diff --git a/sources b/sources index bde0cc6..81f76de 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (freezegun-0.3.11.tar.gz) = e8b392176641d52f6ed795c9af5fbc0a62892aeedf32b42375b56ab44a9ad7a5ecd3bb81363ed0ae65204aff2ef894cd7f2e17f42be72f31d3409b2bffa59ab8 +SHA512 (freezegun-0.3.12.tar.gz) = f7d98ea84735b24380fa53e1e62622fe91be5a35cb75221ca4cb02418add9b0a4add9b2f691242be75acbc45d4745fef82ffe3c89890dcdffa4405940e527af4 From bd6dbaa9b361023b0b42ee17e36231f1da332e02 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jul 2019 13:36:22 +0000 Subject: [PATCH 30/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 40288c8..4944634 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -17,7 +17,7 @@ Name: python-freezegun Version: 0.3.12 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{sum} License: ASL 2.0 @@ -137,6 +137,9 @@ pytest-2 %endif # with python3 %changelog +* Fri Jul 26 2019 Fedora Release Engineering - 0.3.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Wed Jun 05 2019 Charalampos Stratakis - 0.3.12-1 - Update to 0.3.12 From 1771215cb3b3a062dba1bb2fbc69eb414c6dced2 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Thu, 15 Aug 2019 01:49:01 -0500 Subject: [PATCH 31/46] Rebuild with Python 3.8. --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 4944634..4596732 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -17,7 +17,7 @@ Name: python-freezegun Version: 0.3.12 -Release: 2%{?dist} +Release: 3%{?dist} Summary: %{sum} License: ASL 2.0 @@ -137,6 +137,9 @@ pytest-2 %endif # with python3 %changelog +* Thu Aug 15 2019 Richard Shaw - 0.3.12-3 +- Rebuild with Python 3.8. + * Fri Jul 26 2019 Fedora Release Engineering - 0.3.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From fd557f78e41feafa71bf9319e45c37c8651be678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sat, 21 Sep 2019 22:31:30 +0200 Subject: [PATCH 32/46] Subpackage python2-freezegun has been removed --- python-freezegun.spec | 80 +++---------------------------------------- 1 file changed, 5 insertions(+), 75 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 4596732..834a938 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -1,23 +1,9 @@ -%if 0%{?fedora} || 0%{?rhel} > 7 -# Enable python3 build by default -%bcond_without python3 -%else -%bcond_with python3 -%endif - -%if 0%{?rhel} > 7 -# Disable python2 build by default -%bcond_with python2 -%else -%bcond_without python2 -%endif - %global modname freezegun %global sum Let your Python tests travel through time Name: python-freezegun Version: 0.3.12 -Release: 3%{?dist} +Release: 4%{?dist} Summary: %{sum} License: ASL 2.0 @@ -30,30 +16,7 @@ BuildArch: noarch freezegun is a library that allows your python tests to travel through time by mocking the datetime module. -%if %{with python2} -%package -n python2-freezegun -Summary: %{sum} - -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-six -BuildRequires: python2-dateutil -BuildRequires: python2-sure -BuildRequires: python2-pytest -BuildRequires: python2-coverage -BuildRequires: python2-mock - -%{?python_provide:%python_provide python2-freezegun} - -Requires: python2-six -Requires: python2-dateutil -%description -n python2-freezegun -freezegun is a library that allows your python tests to travel through time by -mocking the datetime module. This is the Python 2 library. -%endif # with python2 - -%if %{with python3} %package -n python3-freezegun Summary: %{sum} @@ -74,69 +37,36 @@ Requires: python3-dateutil %description -n python3-freezegun freezegun is a library that allows your python tests to travel through time by mocking the datetime module. This is the Python 3 library. -%endif # with python3 %prep %autosetup -p1 -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info -%if %{with python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -%endif # with python3 %build -%if %{with python2} -%py2_build -%endif # with python2 - -%if %{with python3} -pushd %{py3dir} %py3_build -popd -%endif # with python3 %install -%if %{with python3} -pushd %{py3dir} %py3_install -popd -%endif # with python3 -%if %{with python2} -%py2_install -# Remove py3 only async module -rm -f $RPM_BUILD_ROOT/%{python2_sitelib}/%{modname}/_async.py -%endif # with python2 %check -%if %{with python3} -pushd %{py3dir} # Ignore test_uuid1_future and test_uuid1_past for now as they fail with Python 3.8 # Reported upstream: https://github.com/spulec/freezegun/issues/293 pytest-3 --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_uuid.py::test_uuid1_past -popd -%endif # with python3 -%if %{with python2} -pytest-2 -%endif # with python2 -%if %{with python2} -%files -n python2-freezegun -%doc README.rst LICENSE -%{python2_sitelib}/%{modname}/ -%{python2_sitelib}/%{modname}-%{version}* -%endif # with python2 -%if %{with python3} %files -n python3-freezegun %doc README.rst LICENSE %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-* -%endif # with python3 %changelog +* Sat Sep 21 2019 Miro Hrončok - 0.3.12-4 +- Subpackage python2-freezegun has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Thu Aug 15 2019 Richard Shaw - 0.3.12-3 - Rebuild with Python 3.8. From c1c87c7b79156d873c4be93e6484c72e950ae813 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 30 Jan 2020 12:20:18 +0000 Subject: [PATCH 33/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 834a938..45f1b5a 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -3,7 +3,7 @@ Name: python-freezegun Version: 0.3.12 -Release: 4%{?dist} +Release: 5%{?dist} Summary: %{sum} License: ASL 2.0 @@ -63,6 +63,9 @@ pytest-3 --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_ %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Thu Jan 30 2020 Fedora Release Engineering - 0.3.12-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Sat Sep 21 2019 Miro Hrončok - 0.3.12-4 - Subpackage python2-freezegun has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal From fc24a9eb0f4e0c190c3d49339cf0a3abd3132b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sat, 23 May 2020 01:13:24 +0200 Subject: [PATCH 34/46] Rebuilt for Python 3.9 --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 45f1b5a..93eada4 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -3,7 +3,7 @@ Name: python-freezegun Version: 0.3.12 -Release: 5%{?dist} +Release: 6%{?dist} Summary: %{sum} License: ASL 2.0 @@ -63,6 +63,9 @@ pytest-3 --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_ %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Fri May 22 2020 Miro Hrončok - 0.3.12-6 +- Rebuilt for Python 3.9 + * Thu Jan 30 2020 Fedora Release Engineering - 0.3.12-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 4b62b6ee4ef3fdb28423fd99c049f340d8a77aa4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jul 2020 01:10:29 +0000 Subject: [PATCH 35/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 93eada4..f3a14fd 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -3,7 +3,7 @@ Name: python-freezegun Version: 0.3.12 -Release: 6%{?dist} +Release: 7%{?dist} Summary: %{sum} License: ASL 2.0 @@ -63,6 +63,9 @@ pytest-3 --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_ %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Wed Jul 29 2020 Fedora Release Engineering - 0.3.12-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Fri May 22 2020 Miro Hrončok - 0.3.12-6 - Rebuilt for Python 3.9 From 677a0160af4a9d98b3b628ef536a899297846938 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Tue, 8 Sep 2020 13:51:38 +0530 Subject: [PATCH 36/46] Update to 0.3.15 --- .gitignore | 1 + python-freezegun.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c180d69..8b0a9ba 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /freezegun-0.3.10.tar.gz /freezegun-0.3.11.tar.gz /freezegun-0.3.12.tar.gz +/freezegun-0.3.15.tar.gz diff --git a/python-freezegun.spec b/python-freezegun.spec index f3a14fd..ce9770c 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -2,8 +2,8 @@ %global sum Let your Python tests travel through time Name: python-freezegun -Version: 0.3.12 -Release: 7%{?dist} +Version: 0.3.15 +Release: 1%{?dist} Summary: %{sum} License: ASL 2.0 @@ -63,6 +63,9 @@ pytest-3 --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_ %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Tue Sep 08 2020 Yatin Karel - 0.3.15-1 +- Update to 0.3.15 + * Wed Jul 29 2020 Fedora Release Engineering - 0.3.12-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 81f76de..77ffd3b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (freezegun-0.3.12.tar.gz) = f7d98ea84735b24380fa53e1e62622fe91be5a35cb75221ca4cb02418add9b0a4add9b2f691242be75acbc45d4745fef82ffe3c89890dcdffa4405940e527af4 +SHA512 (freezegun-0.3.15.tar.gz) = 9f3836f8c9f207d9bccbcaec3f1af977b26aa3699ad5f792d052e105a0de530c6dda1641480c9cd551627186bf0c65d92bf39a6f4a61f458f762d8aa999180ba From 0fcddec2f3217a0a8248c2fe0ad876933dbea8f4 Mon Sep 17 00:00:00 2001 From: Joel Capitao Date: Thu, 19 Nov 2020 16:25:34 +0100 Subject: [PATCH 37/46] Update to 1.0.0 --- .gitignore | 1 + python-freezegun.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8b0a9ba..6f6ff34 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /freezegun-0.3.11.tar.gz /freezegun-0.3.12.tar.gz /freezegun-0.3.15.tar.gz +/freezegun-1.0.0.tar.gz diff --git a/python-freezegun.spec b/python-freezegun.spec index ce9770c..0fb19d8 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -2,7 +2,7 @@ %global sum Let your Python tests travel through time Name: python-freezegun -Version: 0.3.15 +Version: 1.0.0 Release: 1%{?dist} Summary: %{sum} @@ -23,7 +23,7 @@ Summary: %{sum} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-six -BuildRequires: python3-dateutil +BuildRequires: python3-dateutil >= 2.7 BuildRequires: python3-sure BuildRequires: python3-pytest BuildRequires: python3-coverage @@ -32,7 +32,7 @@ BuildRequires: python3-mock %{?python_provide:%python_provide python3-freezegun} Requires: python3-six -Requires: python3-dateutil +Requires: python3-dateutil >= 2.7 %description -n python3-freezegun freezegun is a library that allows your python tests to travel through time by @@ -63,6 +63,9 @@ pytest-3 --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_ %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Thu Nov 19 2020 Joel Capitao - 1.0.0-1 +- Update to 1.0.0 + * Tue Sep 08 2020 Yatin Karel - 0.3.15-1 - Update to 0.3.15 diff --git a/sources b/sources index 77ffd3b..4986615 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (freezegun-0.3.15.tar.gz) = 9f3836f8c9f207d9bccbcaec3f1af977b26aa3699ad5f792d052e105a0de530c6dda1641480c9cd551627186bf0c65d92bf39a6f4a61f458f762d8aa999180ba +SHA512 (freezegun-1.0.0.tar.gz) = b6e19cf7799c0689eb756f6ce922797f2f0622f03d13aaf81c62d777d00b660b6619cff996f7a89c54b2e9f33641401e04e72a455a03ba0c7dfca09b64cfecb0 From 0ac8ac55ad7b796fe945b3555f542f8a3e7634fe Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 24 Nov 2020 12:47:03 -0800 Subject: [PATCH 38/46] Drop build deps on python-mock and python-coverage. --- python-freezegun.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 0fb19d8..cb7ee3d 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -3,7 +3,7 @@ Name: python-freezegun Version: 1.0.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{sum} License: ASL 2.0 @@ -26,8 +26,6 @@ BuildRequires: python3-six BuildRequires: python3-dateutil >= 2.7 BuildRequires: python3-sure BuildRequires: python3-pytest -BuildRequires: python3-coverage -BuildRequires: python3-mock %{?python_provide:%python_provide python3-freezegun} @@ -63,6 +61,9 @@ pytest-3 --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_ %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Tue Nov 24 2020 Kevin Fenzi - 1.0.0-2 +- Drop build deps on python-mock and python-coverage. + * Thu Nov 19 2020 Joel Capitao - 1.0.0-1 - Update to 1.0.0 From 42246689edec604672b0254b5671e50b7f7d4540 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 27 Jan 2021 10:47:05 +0000 Subject: [PATCH 39/46] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index cb7ee3d..324ccfc 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -3,7 +3,7 @@ Name: python-freezegun Version: 1.0.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: %{sum} License: ASL 2.0 @@ -61,6 +61,9 @@ pytest-3 --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_ %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Wed Jan 27 2021 Fedora Release Engineering - 1.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Tue Nov 24 2020 Kevin Fenzi - 1.0.0-2 - Drop build deps on python-mock and python-coverage. From 3192c99f3a8f2614f5d59934b48033434f58d898 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 19 Feb 2021 10:54:59 -0500 Subject: [PATCH 40/46] Skip tests that are buggy on certain architectures Restore the UUID tests, as the bug was fixed some time ago Signed-off-by: Stephen Gallagher --- python-freezegun.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 324ccfc..b035750 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -3,7 +3,7 @@ Name: python-freezegun Version: 1.0.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: %{sum} License: ASL 2.0 @@ -49,9 +49,10 @@ rm -rf %{modname}.egg-info %py3_install %check -# Ignore test_uuid1_future and test_uuid1_past for now as they fail with Python 3.8 -# Reported upstream: https://github.com/spulec/freezegun/issues/293 -pytest-3 --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_uuid.py::test_uuid1_past +# Ignore two tests that are broken when run on systems in certain timezones. +# Reported upstream: https://github.com/spulec/freezegun/issues/348 +pytest-3 --deselect tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_frozen_time \ + --deselect tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_hello @@ -61,6 +62,10 @@ pytest-3 --deselect tests/test_uuid.py::test_uuid1_future --deselect tests/test_ %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Fri Feb 19 2021 Stephen Gallagher - 1.0.0-4 +- Skip tests that are buggy on certain architectures +- Restore the UUID tests, as the bug was fixed some time ago + * Wed Jan 27 2021 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 933e982bc0d6bf6d7d59d9e86d9bae6383aa6930 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 2 Jun 2021 22:19:00 +0200 Subject: [PATCH 41/46] Rebuilt for Python 3.10 --- python-freezegun.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index b035750..4c7feab 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -3,7 +3,7 @@ Name: python-freezegun Version: 1.0.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: %{sum} License: ASL 2.0 @@ -62,6 +62,9 @@ pytest-3 --deselect tests/test_datetimes.py::TestUnitTestMethodDecorator::test_m %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Wed Jun 02 2021 Python Maint - 1.0.0-5 +- Rebuilt for Python 3.10 + * Fri Feb 19 2021 Stephen Gallagher - 1.0.0-4 - Skip tests that are buggy on certain architectures - Restore the UUID tests, as the bug was fixed some time ago From da8be3f62ba2311be9cb261ccf48e360d788e22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 2 Jun 2021 22:36:29 +0200 Subject: [PATCH 42/46] Fix decorate_class for Python 3.10 where staticmethod is callable --- 397.patch | 26 ++++++++++++++++++++++++++ python-freezegun.spec | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 397.patch diff --git a/397.patch b/397.patch new file mode 100644 index 0000000..53f67f3 --- /dev/null +++ b/397.patch @@ -0,0 +1,26 @@ +From e63874ce75a74a1159390914045fe8e7955b24c4 Mon Sep 17 00:00:00 2001 +From: Karthikeyan Singaravelan +Date: Fri, 7 May 2021 15:51:33 +0000 +Subject: [PATCH] Fix decorate_class for Python 3.10 where staticmethod is + callable. + +--- + freezegun/api.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/freezegun/api.py b/freezegun/api.py +index cab9ebe..55a80c7 100644 +--- a/freezegun/api.py ++++ b/freezegun/api.py +@@ -598,7 +598,10 @@ def tearDownClass(cls): + continue + seen.add(attr) + +- if not callable(attr_value) or inspect.isclass(attr_value): ++ # staticmethods are callable from Python 3.10 . Hence skip them from decoration ++ if (not callable(attr_value) ++ or inspect.isclass(attr_value) ++ or isinstance(attr_value, staticmethod)): + continue + + try: diff --git a/python-freezegun.spec b/python-freezegun.spec index 4c7feab..e1c0b3a 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -10,6 +10,9 @@ License: ASL 2.0 URL: https://pypi.io/project/freezegun Source0: https://pypi.io/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz +# Fix decorate_class for Python 3.10 where staticmethod is callable +Patch1: https://github.com/spulec/freezegun/pull/397.patch + BuildArch: noarch %description From b51fffdf9306b61d3bb62e0cebfd90ab60bfad49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 22 Jun 2021 01:34:40 +0200 Subject: [PATCH 43/46] Remove unused build dependency on python-sure --- python-freezegun.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index e1c0b3a..36c435d 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -3,7 +3,7 @@ Name: python-freezegun Version: 1.0.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: %{sum} License: ASL 2.0 @@ -27,7 +27,6 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-six BuildRequires: python3-dateutil >= 2.7 -BuildRequires: python3-sure BuildRequires: python3-pytest %{?python_provide:%python_provide python3-freezegun} @@ -65,6 +64,9 @@ pytest-3 --deselect tests/test_datetimes.py::TestUnitTestMethodDecorator::test_m %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Mon Jun 21 2021 Miro Hrončok - 1.0.0-6 +- Remove unused build dependency on python-sure + * Wed Jun 02 2021 Python Maint - 1.0.0-5 - Rebuilt for Python 3.10 From a6d14de4a1a3816ca258fff835f53523a0c2741c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 27 Jul 2021 08:16:56 +0000 Subject: [PATCH 44/46] - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-freezegun.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 36c435d..b3f7326 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -3,7 +3,7 @@ Name: python-freezegun Version: 1.0.0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: %{sum} License: ASL 2.0 @@ -64,6 +64,10 @@ pytest-3 --deselect tests/test_datetimes.py::TestUnitTestMethodDecorator::test_m %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Tue Jul 27 2021 Fedora Release Engineering - 1.0.0-7 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Mon Jun 21 2021 Miro Hrončok - 1.0.0-6 - Remove unused build dependency on python-sure From 2bfae94ef5d79757ed906026653cddca169a1fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Wed, 15 Sep 2021 14:06:21 +0200 Subject: [PATCH 45/46] Update to 1.1.0 --- .gitignore | 1 + python-freezegun.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6f6ff34..8e3adb3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /freezegun-0.3.12.tar.gz /freezegun-0.3.15.tar.gz /freezegun-1.0.0.tar.gz +/freezegun-1.1.0.tar.gz diff --git a/python-freezegun.spec b/python-freezegun.spec index b3f7326..8b673bf 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -2,8 +2,8 @@ %global sum Let your Python tests travel through time Name: python-freezegun -Version: 1.0.0 -Release: 7%{?dist} +Version: 1.1.0 +Release: 1%{?dist} Summary: %{sum} License: ASL 2.0 @@ -64,6 +64,9 @@ pytest-3 --deselect tests/test_datetimes.py::TestUnitTestMethodDecorator::test_m %{python3_sitelib}/%{modname}-%{version}-* %changelog +* Wed Sep 15 2021 Tomáš Hrnčiar - 1.1.0-1 +- Update to 1.1.0 + * Tue Jul 27 2021 Fedora Release Engineering - 1.0.0-7 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 4986615..170e1c2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (freezegun-1.0.0.tar.gz) = b6e19cf7799c0689eb756f6ce922797f2f0622f03d13aaf81c62d777d00b660b6619cff996f7a89c54b2e9f33641401e04e72a455a03ba0c7dfca09b64cfecb0 +SHA512 (freezegun-1.1.0.tar.gz) = 41d2bd18c5115416679602c53aff10891dd8e97402f641eeb3819a3b84d34351c238dece8e68fe267d572693ea08b421510726b6d7c9fdb1d6d70ddc96954d54 From aeefff3fc44d01755a3e7160500a9550c62ab43d Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 30 Oct 2023 23:53:12 +0300 Subject: [PATCH 46/46] Remove unnecessary files --- sources | 1 - 1 file changed, 1 deletion(-) delete mode 100644 sources diff --git a/sources b/sources deleted file mode 100644 index 170e1c2..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (freezegun-1.1.0.tar.gz) = 41d2bd18c5115416679602c53aff10891dd8e97402f641eeb3819a3b84d34351c238dece8e68fe267d572693ea08b421510726b6d7c9fdb1d6d70ddc96954d54