From 7b97a4b3236fdbb087ee5732277ebb2a4bf8cc081bc182f959dd7d0a6a3296fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 28 May 2025 11:29:04 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httmock?expand=0&rev=9 --- python-httmock.changes | 5 +++++ python-httmock.spec | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/python-httmock.changes b/python-httmock.changes index ce74d86..80eb423 100644 --- a/python-httmock.changes +++ b/python-httmock.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 28 11:28:35 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun Nov 29 19:33:50 UTC 2020 - ecsos diff --git a/python-httmock.spec b/python-httmock.spec index b061090..b483580 100644 --- a/python-httmock.spec +++ b/python-httmock.spec @@ -1,7 +1,7 @@ # # spec file for package python-httmock # -# Copyright (c) 2020 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 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-httmock Version: 1.4.0 Release: 0 @@ -25,15 +24,16 @@ License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/patrys/httmock Source: https://github.com/patrys/httmock/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-requests >= 1.0.0 +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module requests >= 1.0.0} # /SECTION -Requires: python-requests >= 1.0.0 -BuildArch: noarch - %python_subpackages %description @@ -47,18 +47,19 @@ You can use it to mock third-party APIs and test libraries that use %setup -q -n httmock-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m unittest discover +%pyunittest %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/httmock +%{python_sitelib}/httmock-%{version}*-info %changelog