From 997bc3ad8c431bec598dcd80be36e808f95c1aa5b46d821cc571e2cbef6becdd Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 12 Mar 2024 01:33:15 +0000 Subject: [PATCH] - Switch to pyproject macros. - Correct one test unit assertion method. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-hawk?expand=0&rev=16 --- python-requests-hawk.changes | 6 ++++++ python-requests-hawk.spec | 11 +++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-requests-hawk.changes b/python-requests-hawk.changes index bc4bf3a..b29cec3 100644 --- a/python-requests-hawk.changes +++ b/python-requests-hawk.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 12 01:32:27 UTC 2024 - Steve Kowalik + +- Switch to pyproject macros. +- Correct one test unit assertion method. + ------------------------------------------------------------------- Mon May 8 12:13:51 UTC 2023 - Antoine Belvire diff --git a/python-requests-hawk.spec b/python-requests-hawk.spec index 665d294..7ad9191 100644 --- a/python-requests-hawk.spec +++ b/python-requests-hawk.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests-hawk # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,8 +24,10 @@ License: Apache-2.0 URL: https://github.com/mozilla-services/requests-hawk Source: https://files.pythonhosted.org/packages/source/r/requests-hawk/requests-hawk-%{version}.tar.gz BuildRequires: %{python_module mohawk} +BuildRequires: %{python_module pip} BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-mohawk @@ -43,12 +45,13 @@ across mozilla services projects. %prep %setup -q -n requests-hawk-%{version} +sed -ie 's/\(assertEqual\)s/\1/' requests_hawk/tests/test_hawkauth.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -58,6 +61,6 @@ across mozilla services projects. %license LICENSE.txt %doc CHANGES.txt README.rst %{python_sitelib}/requests_hawk -%{python_sitelib}/requests_hawk-%{version}*-info +%{python_sitelib}/requests_hawk-%{version}.dist-info %changelog