From 4dbb257f409305c3ba1b468740e3a176d122905ae1f36d9806a3f7ab3c5fa24f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 12:09:56 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pretend?expand=0&rev=14 --- python-pretend.changes | 5 +++++ python-pretend.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-pretend.changes b/python-pretend.changes index 217d630..21d92b6 100644 --- a/python-pretend.changes +++ b/python-pretend.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 12:09:40 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Apr 21 12:29:41 UTC 2023 - Dirk Müller diff --git a/python-pretend.spec b/python-pretend.spec index 7707b64..1cefcad 100644 --- a/python-pretend.spec +++ b/python-pretend.spec @@ -1,7 +1,7 @@ # # spec file for package python-pretend # -# 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 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-pretend Version: 1.0.9 @@ -27,8 +26,10 @@ Group: Development/Languages/Python URL: https://github.com/alex/pretend Source: https://files.pythonhosted.org/packages/source/p/pretend/pretend-%{version}.tar.gz Source1: https://raw.githubusercontent.com/alex/pretend/master/test_pretend.py +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages @@ -41,13 +42,13 @@ Pretend is a library to make stubbing with Python easier. cp %{SOURCE1} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %check -%python_exec -m pytest +%pytest %files %{python_files} %license LICENSE.rst