Sync from SUSE:SLFO:Main python-sh revision a0a531e7f72344e8341d890f86ce68af

This commit is contained in:
Adrian Schröter 2024-12-13 12:23:23 +01:00
parent 7539025be0
commit 427c4faa83
4 changed files with 48 additions and 11 deletions

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Mon Jun 10 09:09:25 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.0.7:
* Fix `sh.glob` arguments #708
* Misc modernizations
-------------------------------------------------------------------
Tue Oct 17 06:31:32 UTC 2023 - Daniel Garcia Moreno <daniel.garcia@suse.com>
- Use pytest for running tests
-------------------------------------------------------------------
Thu Sep 7 11:16:26 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2.0.6:
* Add back appropriate sdist files comment
* Allow nested `with` contexts #690
* Call correct asyncio function for getting event loop #683
-------------------------------------------------------------------
Mon May 22 21:07:07 UTC 2023 - Dirk Müller <dmueller@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
------------------------------------------------------------------- -------------------------------------------------------------------
Sat May 6 20:58:14 UTC 2023 - Matej Cepl <mcepl@suse.com> Sat May 6 20:58:14 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-sh # spec file for package python-sh
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-sh Name: python-sh
Version: 2.0.3 Version: 2.0.7
Release: 0 Release: 0
Summary: Python subprocess interface Summary: Python subprocess interface
License: MIT License: MIT
@ -26,7 +26,7 @@ URL: https://github.com/amoffat/sh
Source: https://files.pythonhosted.org/packages/source/s/sh/sh-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/sh/sh-%{version}.tar.gz
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core} BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module testsuite} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@ -55,7 +55,17 @@ sh is not a collection of system commands implemented in Python.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pyunittest -v test export SH_TESTS_RUNNING=1
export SH_TESTS_USE_SELECT=0
export LANG=C
# disable broken tests in obs environment
donttest="test_stringio_output"
donttest+=" or test_environment"
donttest+=" or test_no_interfere1"
donttest+=" or test_set_in_parent_function"
donttest+=" or test_basic"
donttest+=" or test_multiline_defaults"
%pytest -k "not ($donttest)"
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt

BIN
sh-2.0.3.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
sh-2.0.7.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.