1
0

Accepting request 842656 from devel:languages:python

- Update to 1.0.0:
  * Dropped Py2 support
  * Added as_kwarg argument in order to have the frozen time object passed
    with the name provided in as_kwarg argument 
- Drop denose.patch
- Drop python-six from {Build,}Requires
- Update version of python-dateutil in {Build,}Requires

OBS-URL: https://build.opensuse.org/request/show/842656
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-freezegun?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2020-10-23 10:18:57 +00:00 committed by Git OBS Bridge
commit d8668967ae
5 changed files with 17 additions and 24 deletions

View File

@ -1,14 +0,0 @@
Index: freezegun-0.3.15/setup.py
===================================================================
--- freezegun-0.3.15.orig/setup.py
+++ freezegun-0.3.15/setup.py
@@ -5,8 +5,7 @@ from setuptools import setup
requires = ['six']
tests_require = [
- 'mock;python_version<"3.4"',
- 'nose'
+ 'mock;python_version<"3.4"'
]
if sys.version_info.major == 2:

View File

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

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

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

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Oct 20 01:42:22 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.0.0:
* Dropped Py2 support
* Added as_kwarg argument in order to have the frozen time object passed
with the name provided in as_kwarg argument
- Drop denose.patch
- Drop python-six from {Build,}Requires
- Update version of python-dateutil in {Build,}Requires
-------------------------------------------------------------------
Tue Aug 18 22:52:14 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@ -19,24 +19,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-freezegun
Version: 0.3.15
Version: 1.0.0
Release: 0
Summary: Mock time date for Python
License: Apache-2.0
URL: https://github.com/spulec/freezegun
Source: https://files.pythonhosted.org/packages/source/f/freezegun/freezegun-%{version}.tar.gz
# gh#spulec/freezegun#259
Patch1: denose.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil > 2.0}
BuildRequires: %{python_module python-dateutil > 2.7}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{pythons}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python
Requires: python-python-dateutil > 2.0
Requires: python-six
Requires: python-python-dateutil > 2.7
BuildArch: noarch
%if %{with python2}
BuildRequires: python-mock