Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pegasus-wms.common for
openSUSE:Factory checked in at 2023-01-03 15:06:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pegasus-wms.common (Old)
and /work/SRC/openSUSE:Factory/.python-pegasus-wms.common.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pegasus-wms.common"
Tue Jan 3 15:06:13 2023 rev:3 rq:1046482 version:5.0.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pegasus-wms.common/python-pegasus-wms.common.changes
2022-10-29 20:18:31.102661928 +0200
+++
/work/SRC/openSUSE:Factory/.python-pegasus-wms.common.new.1563/python-pegasus-wms.common.changes
2023-01-03 15:06:33.574928067 +0100
@@ -1,0 +2,8 @@
+Tue Jan 3 11:58:52 UTC 2023 - Ben Greiner <[email protected]>
+
+- Add pegasus-wms-python3-to-sys.executable.patch for compatibility
+ with 15.X backports not necessarily having primary python3
+ installed.
+- Move to PEP517 build
+
+-------------------------------------------------------------------
New:
----
pegasus-wms-python3-to-sys.executable.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pegasus-wms.common.spec ++++++
--- /var/tmp/diff_new_pack.kzlYCE/_old 2023-01-03 15:06:33.994930519 +0100
+++ /var/tmp/diff_new_pack.kzlYCE/_new 2023-01-03 15:06:33.998930542 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pegasus-wms.common
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 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() python3-%{**}}
%define skip_python2 1
Name: python-pegasus-wms.common
Version: 5.0.3
@@ -24,8 +23,13 @@
Summary: Pegasus Workflow Management System Python Commons
License: Apache-2.0
URL: https://pegasus.isi.edu
+# SourceRepository:
https://github.com/pegasus-isi/pegasus/packages/pegasus-python
Source: pegasus-wms.common-gh-%{version}.tar.xz
+# PATCH-FIX-OPENSUSE pegasus-wms-python3-to-sys.executable.patch
[email protected]
+Patch1: pegasus-wms-python3-to-sys.executable.patch
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module PyYAML > 5.3}
@@ -41,14 +45,14 @@
This package contains common files for the Python APIs for Pegasus WMS.
%prep
-%setup -q -n pegasus-wms.common-gh-%{version}
+%autosetup -p1 -n pegasus-wms.common-gh-%{version}
sed -i 's/version=read_version(),/version="%{version}",/' setup.py
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -58,6 +62,6 @@
%doc README.md
%license LICENSE
%{python_sitelib}/Pegasus
-%{python_sitelib}/pegasus_wms.common-%{version}*-info
+%{python_sitelib}/pegasus_wms.common-%{version}.dist-info
%changelog
++++++ pegasus-wms-python3-to-sys.executable.patch ++++++
python3 might not be installed in a non-primary python environment
(15.4_py39 backports)
Index: pegasus-wms.common-gh-5.0.3/test/client/test_client.py
===================================================================
--- pegasus-wms.common-gh-5.0.3.orig/test/client/test_client.py
+++ pegasus-wms.common-gh-5.0.3/test/client/test_client.py
@@ -5,6 +5,7 @@ import subprocess
from collections import namedtuple
from pathlib import Path
from subprocess import Popen
+import sys
from tempfile import TemporaryDirectory
from textwrap import dedent
@@ -81,7 +82,7 @@ class TestClient:
# fork process to print 0\n1\n..4\n"
proc = Popen(
- ["python3", "-c", 'exec("for i in range(5):\\n\\tprint(i)\\n")'],
+ [sys.executable, "-c", 'exec("for i in
range(5):\\n\\tprint(i)\\n")'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
@@ -109,7 +110,7 @@ class TestClient:
# fork process to print 0\n1\n..4\n"
proc = Popen(
- ["python3", "-c", 'exec("for i in range(5):\\n\\tprint(i)\\n")'],
+ [sys.executable, "-c", 'exec("for i in
range(5):\\n\\tprint(i)\\n")'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
@@ -132,7 +133,7 @@ class TestClient:
# fork process to print 0\n1\n..4\n"
proc = Popen(
- ["python3", "-c", 'exec("for i in range(5):\\n\\tprint(i)\\n")'],
+ [sys.executable, "-c", 'exec("for i in
range(5):\\n\\tprint(i)\\n")'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)