|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# spec file for package python-pytest-freezegun
|
|
|
|
# spec file for package python-pytest-freezegun
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
@@ -16,7 +16,6 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define skip_python2 1
|
|
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
Name: python-pytest-freezegun
|
|
|
|
Name: python-pytest-freezegun
|
|
|
|
Version: 0.4.2
|
|
|
|
Version: 0.4.2
|
|
|
|
@@ -28,7 +27,9 @@ Source: https://github.com/ktosiek/pytest-freezegun/archive/%{version}.t
|
|
|
|
# PATCH-FIX-UPSTREAM gh#ktosiek/pytest-freezegun#39
|
|
|
|
# PATCH-FIX-UPSTREAM gh#ktosiek/pytest-freezegun#39
|
|
|
|
Patch0: use-packaging.patch
|
|
|
|
Patch0: use-packaging.patch
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-freezegun > 0.3
|
|
|
|
Requires: python-freezegun > 0.3
|
|
|
|
@@ -47,10 +48,10 @@ Wrap tests with fixtures in freeze_time
|
|
|
|
%autosetup -p1 -n pytest-freezegun-%{version}
|
|
|
|
%autosetup -p1 -n pytest-freezegun-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
@@ -61,6 +62,6 @@ Wrap tests with fixtures in freeze_time
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/pytest_freezegun.py
|
|
|
|
%{python_sitelib}/pytest_freezegun.py
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/pytest_freezegun*.pyc
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/pytest_freezegun*.pyc
|
|
|
|
%{python_sitelib}/pytest_freezegun-%{version}*info
|
|
|
|
%{python_sitelib}/pytest_freezegun-%{version}.dist-info
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|