15
0

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
This commit is contained in:
2025-05-09 15:49:10 +00:00
committed by Git OBS Bridge
parent 90ce096995
commit 974b1ba042
2 changed files with 14 additions and 8 deletions

View File

@@ -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