commit python-sh for openSUSE:Leap:15.2

2020-04-25 Thread root
Hello community,

here is the log from the commit of package python-sh for openSUSE:Leap:15.2 
checked in at 2020-04-25 19:05:32

Comparing /work/SRC/openSUSE:Leap:15.2/python-sh (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.python-sh.new.2738 (New)


Package is "python-sh"

Sat Apr 25 19:05:32 2020 rev:12 rq:797119 version:1.12.14

Changes:

--- /work/SRC/openSUSE:Leap:15.2/python-sh/python-sh.changes2020-03-02 
13:22:44.194324305 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-sh.new.2738/python-sh.changes  
2020-04-25 19:05:37.387665198 +0200
@@ -1,0 +2,5 @@
+Mon Apr 20 17:27:27 UTC 2020 - Matej Cepl 
+
+- Switch off tests, upstream is dead
+
+---



Other differences:
--
++ python-sh.spec ++
--- /var/tmp/diff_new_pack.iKtfhY/_old  2020-04-25 19:05:39.095668870 +0200
+++ /var/tmp/diff_new_pack.iKtfhY/_new  2020-04-25 19:05:39.095668870 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sh
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -56,8 +56,9 @@
 %install
 %python_install
 
-%check
-%python_exec test.py
+# https://trello.com/c/gkuDtBOU
+# %%check
+# %%python_exec test.py
 
 %files %{python_files}
 %license LICENSE.txt




commit python-sh for openSUSE:Leap:15.2

2020-03-02 Thread root
Hello community,

here is the log from the commit of package python-sh for openSUSE:Leap:15.2 
checked in at 2020-03-02 13:22:43

Comparing /work/SRC/openSUSE:Leap:15.2/python-sh (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.python-sh.new.26092 (New)


Package is "python-sh"

Mon Mar  2 13:22:43 2020 rev:11 rq:777135 version:1.12.14

Changes:

--- /work/SRC/openSUSE:Leap:15.2/python-sh/python-sh.changes2020-01-15 
15:52:58.299581682 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-sh.new.26092/python-sh.changes 
2020-03-02 13:22:44.194324305 +0100
@@ -1,0 +2,21 @@
+Mon May 27 11:59:53 UTC 2019 - Alberto Planas Dominguez 
+
+- Add patches to fix some tests:
+  * fix-test_signal_group.diff
+  * fix-test_general_signal.diff (bsc#1120329)
+
+---
+Fri Feb  1 13:16:33 UTC 2019 - Tomáš Chvátal 
+
+- Add patches from Fedora:
+  * always-use-fully-versioned-python-command-in-tests.patch
+  * no-coverage.patch
+  * 0001-Fix-tests-for-the-drop-the-unversion-python.patch
+  * pep-0538-test-fix.patch
+
+---
+Tue Dec  4 12:54:15 UTC 2018 - Matej Cepl 
+
+- Remove superfluous devel dependency for noarch package
+
+---

New:

  0001-Fix-tests-for-the-drop-the-unversion-python.patch
  always-use-fully-versioned-python-command-in-tests.patch
  fix-test_general_signal.diff
  fix-test_signal_group.diff
  no-coverage.patch
  pep-0538-test-fix.patch



Other differences:
--
++ python-sh.spec ++
--- /var/tmp/diff_new_pack.kDHigQ/_old  2020-03-02 13:22:44.986325879 +0100
+++ /var/tmp/diff_new_pack.kDHigQ/_new  2020-03-02 13:22:44.986325879 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sh
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,29 +12,28 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without test
 Name:   python-sh
 Version:1.12.14
 Release:0
 Summary:Python subprocess interface
 License:MIT
 Group:  Development/Languages/Python
-Url:https://github.com/amoffat/sh
+URL:https://github.com/amoffat/sh
 Source: 
https://files.pythonhosted.org/packages/source/s/sh/sh-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %{python_module devel}
+Patch0: always-use-fully-versioned-python-command-in-tests.patch
+Patch1: no-coverage.patch
+Patch2: 0001-Fix-tests-for-the-drop-the-unversion-python.patch
+Patch3: pep-0538-test-fix.patch
+Patch4: fix-test_signal_group.diff
+Patch5: fix-test_general_signal.diff
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
-%if %{with test}
-BuildRequires:  %{python_module coverage}
-%endif
 BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -49,6 +48,7 @@
 
 %prep
 %setup -q -n sh-%{version}
+%autopatch -p1
 
 %build
 %python_build
@@ -56,14 +56,12 @@
 %install
 %python_install
 
-%if %{with test}
 %check
 %python_exec test.py
-%endif
 
 %files %{python_files}
-%defattr(-,root,root)
-%doc CHANGELOG.md LICENSE.txt README.rst
+%license LICENSE.txt
+%doc CHANGELOG.md README.rst
 %{python_sitelib}/sh.py*
 %pycache_only %{python_sitelib}/__pycache__/sh.*py*
 %{python_sitelib}/sh-%{version}-*.egg-info

++ 0001-Fix-tests-for-the-drop-the-unversion-python.patch ++
>From 392a0471ed19d71a226442270127a9414ccc7908 Mon Sep 17 00:00:00 2001
From: Pierre-Yves Chibon 
Date: Tue, 24 Jul 2018 17:39:58 +0200
Subject: [PATCH] Fix tests for the drop the unversion python

Signed-off-by: Pierre-Yves Chibon 
---
 test.py | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test.py b/test.py
index 68ef40c..71994fa 100644
--- a/test.py
+++ b/test.py
@@ -3007,7 +3007,10 @@ class ExecutionContextTests(unittest.TestCase):
 import sh
 _sh = sh()
 omg = _sh
-from omg import python
+if IS_PY2:
+from omg import python2
+else:
+from omg import python3
 
 def test_importer_only_works_with_sh(self):
 def unallowed_import():
-- 
2.14.4

++ always-use-fully