Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sh for openSUSE:Factory 
checked in at 2023-05-24 20:21:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sh (Old)
 and      /work/SRC/openSUSE:Factory/.python-sh.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sh"

Wed May 24 20:21:34 2023 rev:14 rq:1088461 version:2.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sh/python-sh.changes      2023-05-09 
13:07:20.137020187 +0200
+++ /work/SRC/openSUSE:Factory/.python-sh.new.1533/python-sh.changes    
2023-05-24 20:21:40.875935854 +0200
@@ -1,0 +2,7 @@
+Mon May 22 21:07:07 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 2.0.4:
+  * Allow `ok_code` to be used with `fg` #655
+  * Make sure `new_group` never creates a new session #675
+
+-------------------------------------------------------------------

Old:
----
  sh-2.0.3.tar.gz

New:
----
  sh-2.0.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-sh.spec ++++++
--- /var/tmp/diff_new_pack.ZIjXfz/_old  2023-05-24 20:21:41.467939384 +0200
+++ /var/tmp/diff_new_pack.ZIjXfz/_new  2023-05-24 20:21:41.471939408 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-sh
-Version:        2.0.3
+Version:        2.0.4
 Release:        0
 Summary:        Python subprocess interface
 License:        MIT

++++++ sh-2.0.3.tar.gz -> sh-2.0.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sh-2.0.3/CHANGELOG.md new/sh-2.0.4/CHANGELOG.md
--- old/sh-2.0.3/CHANGELOG.md   2023-03-20 20:58:54.699480300 +0100
+++ new/sh-2.0.4/CHANGELOG.md   2023-05-15 17:25:18.729174000 +0200
@@ -1,6 +1,11 @@
 # Changelog
 
-## 2.0.2 - 2/13/22
+## 2.0.4 - 5/13/22
+
+- Allow `ok_code` to be used with `fg` 
[#655](https://github.com/amoffat/sh/pull/655)
+- Make sure `new_group` never creates a new session 
[#675](https://github.com/amoffat/sh/pull/675)
+
+## 2.0.2 / 2.0.3 (misversioned) - 2/13/22
 
 - Performance regression when using a generator with `_in` 
[#650](https://github.com/amoffat/sh/pull/650)
 - Adding test support for python 3.11
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sh-2.0.3/PKG-INFO new/sh-2.0.4/PKG-INFO
--- old/sh-2.0.3/PKG-INFO       1970-01-01 01:00:00.000000000 +0100
+++ new/sh-2.0.4/PKG-INFO       1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: sh
-Version: 2.0.3
+Version: 2.0.4
 Summary: Python subprocess replacement
 Home-page: https://amoffat.github.io/sh/
 License: MIT
@@ -19,10 +19,7 @@
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: 3.11
-Classifier: Programming Language :: Python :: 3.10
-Classifier: Programming Language :: Python :: 3.11
 Classifier: Programming Language :: Python :: 3.8
-Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Software Development :: Build Tools
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sh-2.0.3/pyproject.toml new/sh-2.0.4/pyproject.toml
--- old/sh-2.0.3/pyproject.toml 2023-03-20 20:58:54.703480200 +0100
+++ new/sh-2.0.4/pyproject.toml 2023-05-15 17:25:18.729174000 +0200
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "sh"
-version = "2.0.3"
+version = "2.0.4"
 description = "Python subprocess replacement"
 authors = ["Andrew Moffat <arwmof...@gmail.com>"]
 readme = "README.rst"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sh-2.0.3/sh.py new/sh-2.0.4/sh.py
--- old/sh-2.0.3/sh.py  2023-03-20 20:58:54.703480200 +0100
+++ new/sh-2.0.4/sh.py  2023-05-15 17:25:18.729174000 +0200
@@ -1116,7 +1116,7 @@
 _fg is invalid with nearly every other option, see warning and workaround here:
 
     https://amoffat.github.io/sh/sections/special_arguments.html#fg""";
-    allowlist = {"env", "fg", "cwd"}
+    allowlist = {"env", "fg", "cwd", "ok_code"}
     offending = set(passed_kwargs.keys()) - allowlist
 
     if "fg" in passed_kwargs and passed_kwargs["fg"] and offending:
@@ -2037,7 +2037,7 @@
                 if new_session:
                     os.setsid()
                 elif new_group:
-                    os.setpgrp()
+                    os.setpgid(0, 0)
 
                 sid = os.getsid(0)
                 pgid = os.getpgid(0)

Reply via email to