From 281589b84236b830d22a9a5ad3d37ab6ffef25674e773b578cfc62df00ed12f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 10:18:52 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evilunit?expand=0&rev=3 --- python-evilunit.changes | 5 +++++ python-evilunit.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-evilunit.changes b/python-evilunit.changes index 1d2f4f4..2592cb7 100644 --- a/python-evilunit.changes +++ b/python-evilunit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 10:18:35 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Aug 12 04:13:37 UTC 2020 - John Vandenberg diff --git a/python-evilunit.spec b/python-evilunit.spec index 9d6fc44..1bd3a38 100644 --- a/python-evilunit.spec +++ b/python-evilunit.spec @@ -1,7 +1,7 @@ # # spec file for package python-evilunit # -# 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-%{**}} %define skip_python2 1 Name: python-evilunit Version: 0.2.1 @@ -26,8 +25,10 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/podhmo/evilunit Source: https://github.com/podhmo/evilunit/archive/%{version}.tar.gz#/evilunit-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools @@ -43,10 +44,10 @@ and nested test classes. %setup -q -n evilunit-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -55,6 +56,7 @@ and nested test classes. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/evilunit +%{python_sitelib}/evilunit-%{version}*-info %changelog