From 974b1ba0424389913e493d30208cbd8a49a7643fec935b2bad75f548556444e8 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Fri, 9 May 2025 15:49:10 +0000 Subject: [PATCH] Accepting request 1275159 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1275159 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyCondor?expand=0&rev=6 --- python-PyCondor.changes | 5 +++++ python-PyCondor.spec | 17 +++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/python-PyCondor.changes b/python-PyCondor.changes index 59cde42..7811e68 100644 --- a/python-PyCondor.changes +++ b/python-PyCondor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 6 12:36:10 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Aug 19 14:03:26 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-PyCondor.spec b/python-PyCondor.spec index 0b4bd3c..2dcc503 100644 --- a/python-PyCondor.spec +++ b/python-PyCondor.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyCondor # -# Copyright (c) 2022 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 @@ # -%global modname PyCondor Name: python-PyCondor Version: 0.6.0 Release: 0 @@ -24,12 +23,14 @@ Summary: Python utility for HTCondor License: MIT URL: https://github.com/jrbourbeau/pycondor Source: https://files.pythonhosted.org/packages/source/P/PyCondor/PyCondor-%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires: python-click >= 7.0 +Requires(post): alts +Requires(postun): alts BuildArch: noarch # SECTION For tests BuildRequires: %{python_module click >= 7.0} @@ -45,10 +46,10 @@ PyCondor (Python HTCondor) is a tool to help build and submit workflows to HTCon sed -Ei "1{/^#!\/usr\/bin\/env python/d}" pycondor/tests/example_script.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/pycondor @@ -68,6 +69,6 @@ sed -Ei "1{/^#!\/usr\/bin\/env python/d}" pycondor/tests/example_script.py %doc README.md %python_alternative %{_bindir}/pycondor %{python_sitelib}/pycondor/ -%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/ +%{python_sitelib}/[Pp]y[Cc]ondor-%{version}*-info/ %changelog