From 1b3edc74446dd5f915029989b7c7d21f52ada8a5d591e235045996fc0c09961a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 14:04:32 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ghp-import?expand=0&rev=12 --- python-ghp-import.changes | 5 +++++ python-ghp-import.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-ghp-import.changes b/python-ghp-import.changes index 5207900..4b65860 100644 --- a/python-ghp-import.changes +++ b/python-ghp-import.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 14:04:18 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Jul 6 11:06:17 UTC 2023 - ecsos diff --git a/python-ghp-import.spec b/python-ghp-import.spec index 72cb94c..f557ae0 100644 --- a/python-ghp-import.spec +++ b/python-ghp-import.spec @@ -1,7 +1,7 @@ # # spec file for package python-ghp-import # -# 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 @@ -26,12 +26,14 @@ Group: Development/Languages/Python URL: https://pypi.org/project/ghp-import/ Source: https://files.pythonhosted.org/packages/source/g/ghp-import/ghp-import-%{version}.tar.gz BuildRequires: %{python_module dateutil >= 2.8.1} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-dateutil >= 2.8.1 -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -47,10 +49,10 @@ will lose your work. sed -i '1d' ghp_import.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/ghp-import %python_expand %fdupes %{buildroot}%{$python_sitelib}