From 9503d2fa07a579a6101ff1d82e5927c127518b9d0edf0c9aa90f63b0e35d94af Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 22 May 2017 17:20:49 +0000 Subject: [PATCH] Accepting request 497355 from home:TheBlackCat:branches:devel:languages:python - Implement single-spec version - Fix source URL - update to version 0.3.9 OBS-URL: https://build.opensuse.org/request/show/497355 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freezegun?expand=0&rev=9 --- freeze_hideDeps.patch | 30 --------------------------- freezegun-0.3.8.tar.gz | 3 --- freezegun-0.3.9.tar.gz | 3 +++ python-freezegun.changes | 11 ++++++++++ python-freezegun.spec | 44 ++++++++++++++++++++++------------------ 5 files changed, 38 insertions(+), 53 deletions(-) delete mode 100644 freeze_hideDeps.patch delete mode 100644 freezegun-0.3.8.tar.gz create mode 100644 freezegun-0.3.9.tar.gz diff --git a/freeze_hideDeps.patch b/freeze_hideDeps.patch deleted file mode 100644 index 8701508..0000000 --- a/freeze_hideDeps.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- setup.py.orig -+++ setup.py -@@ -3,13 +3,13 @@ - import sys - from setuptools import setup, find_packages - --requires = ['six'] -+#requires = ['six'] - --if sys.version_info[0] == 2: -- requires += ['python-dateutil>=1.0, != 2.0'] --else: -+#if sys.version_info[0] == 2: -+# requires += ['python-dateutil>=1.0, != 2.0'] -+#else: - # Py3k -- requires += ['python-dateutil>=2.0'] -+# requires += ['python-dateutil>=2.0'] - - setup( - name='freezegun', -@@ -19,7 +19,7 @@ setup( - author_email='spulec@gmail', - url='https://github.com/spulec/freezegun', - packages=find_packages(exclude=("tests", "tests.*",)), -- install_requires=requires, -+# install_requires=requires, - include_package_data=True, - classifiers=[ - 'Programming Language :: Python :: 2', diff --git a/freezegun-0.3.8.tar.gz b/freezegun-0.3.8.tar.gz deleted file mode 100644 index 5605a73..0000000 --- a/freezegun-0.3.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a184d75f850e408e38daae15132a0c13fba8336ca78b92378432ec154743c3e9 -size 17447 diff --git a/freezegun-0.3.9.tar.gz b/freezegun-0.3.9.tar.gz new file mode 100644 index 0000000..6131cbc --- /dev/null +++ b/freezegun-0.3.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:783ccccd7f60968bfe49ad9e114c18ea2b63831faaaf61c1f1f71ddfde1c0eee +size 18118 diff --git a/python-freezegun.changes b/python-freezegun.changes index 8732db3..6031fd3 100644 --- a/python-freezegun.changes +++ b/python-freezegun.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon May 22 17:13:40 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Fix source URL +- update to version 0.3.9 + * If no time to be frozen, use current time + * Fix uuid1 issues + * Add support for python 3.6 +- Remove unused freeze_hideDeps.patch + ------------------------------------------------------------------- Fri Nov 25 07:35:48 UTC 2016 - tbechtold@suse.com diff --git a/python-freezegun.spec b/python-freezegun.spec index 429b2cd..e5311bf 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -1,7 +1,7 @@ # # spec file for package python-freezegun # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,30 +16,32 @@ # +%bcond_without tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-freezegun -Version: 0.3.8 +Version: 0.3.9 Release: 0 Url: https://github.com/spulec/freezegun Summary: Mock time date for Python License: Apache-2.0 Group: Development/Languages/Python -Source: https://pypi.io/packages/source/f/freezegun/freezegun-%{version}.tar.gz -# Patch0: freeze_hideDeps.patch +Source: https://files.pythonhosted.org/packages/source/f/freezegun/freezegun-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python -BuildRequires: python-coverage -BuildRequires: python-nose -BuildRequires: python-python-dateutil > 2.0 -BuildRequires: python-setuptools -BuildRequires: python-six -BuildRequires: python-sure +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module python-dateutil > 2.0} +BuildRequires: %{python_module six} +%if %{with tests} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module sure} +%endif Requires: python-python-dateutil > 2.0 Requires: python-six -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description FreezeGun is a library that allows your python tests to travel through @@ -47,18 +49,20 @@ time by mocking the datetime module. %prep %setup -q -n freezegun-%{version} -# %patch0 %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with tests} %check -nosetests +%python_expand nosetests-%{$python_bin_suffix} +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitelib}/*