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
This commit is contained in:
Todd R 2017-05-22 17:20:49 +00:00 committed by Git OBS Bridge
parent 28af8591bc
commit 9503d2fa07
5 changed files with 38 additions and 53 deletions

View File

@ -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',

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a184d75f850e408e38daae15132a0c13fba8336ca78b92378432ec154743c3e9
size 17447

3
freezegun-0.3.9.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:783ccccd7f60968bfe49ad9e114c18ea2b63831faaaf61c1f1f71ddfde1c0eee
size 18118

View File

@ -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

View File

@ -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}/*