From 7856777a63fc76ead4bbc20a1f1109c7b07dcd59fb23d65ee5789ea2a9967c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 09:40:53 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-entrypoint2?expand=0&rev=31 --- python-entrypoint2.changes | 5 +++++ python-entrypoint2.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-entrypoint2.changes b/python-entrypoint2.changes index f8a331e..f534d3b 100644 --- a/python-entrypoint2.changes +++ b/python-entrypoint2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 09:40:36 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Jun 10 12:21:32 UTC 2023 - ecsos diff --git a/python-entrypoint2.spec b/python-entrypoint2.spec index 280464c..3417b3b 100644 --- a/python-entrypoint2.spec +++ b/python-entrypoint2.spec @@ -1,7 +1,7 @@ # # spec file for package python-entrypoint2 # -# 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 @@ -35,7 +35,9 @@ License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/ponty/entrypoint2 Source: https://github.com/ponty/entrypoint2/archive/%{version}.tar.gz#/entrypoint2-%{version}-gh.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-EasyProcess @@ -60,12 +62,12 @@ off entrypoint. %if !%{with test} %build -%python_build +%pyproject_wheel %endif %if !%{with test} %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -78,7 +80,8 @@ off entrypoint. %files %{python_files} %license LICENSE.txt %doc README.md -%{python_sitelib}/* +%{python_sitelib}/entrypoint2 +%{python_sitelib}/entrypoint2-%{version}*-info %endif %changelog