diff --git a/python-pytest-freezegun.changes b/python-pytest-freezegun.changes index 9051c42..1309610 100644 --- a/python-pytest-freezegun.changes +++ b/python-pytest-freezegun.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 7 06:50:11 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Wed May 3 03:17:36 UTC 2023 - Steve Kowalik diff --git a/python-pytest-freezegun.spec b/python-pytest-freezegun.spec index d7634b2..d7c5773 100644 --- a/python-pytest-freezegun.spec +++ b/python-pytest-freezegun.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-pytest-freezegun 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 Patch0: use-packaging.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-freezegun > 0.3 @@ -47,10 +48,10 @@ Wrap tests with fixtures in freeze_time %autosetup -p1 -n pytest-freezegun-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -61,6 +62,6 @@ Wrap tests with fixtures in freeze_time %license LICENSE %{python_sitelib}/pytest_freezegun.py %pycache_only %{python_sitelib}/__pycache__/pytest_freezegun*.pyc -%{python_sitelib}/pytest_freezegun-%{version}*info +%{python_sitelib}/pytest_freezegun-%{version}.dist-info %changelog