commit 5132434eed6cb92b72bbc831fbbcf7835c8223a1df3673d78f099e86904312ea Author: Adrian Schröter Date: Wed Mar 26 14:25:41 2025 +0100 Sync from SUSE:SLFO:Main python-pytest-shell-utilities revision 65aaf8bcd59fe62d21447f5ddba56487 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/pytest_shell_utilities-1.9.7.tar.gz b/pytest_shell_utilities-1.9.7.tar.gz new file mode 100644 index 0000000..b7bc286 --- /dev/null +++ b/pytest_shell_utilities-1.9.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84a2283333925b43780509ccfd3d5be0d7db243b7414b89f1b63954bbcc9d3ec +size 81231 diff --git a/python-pytest-shell-utilities.changes b/python-pytest-shell-utilities.changes new file mode 100644 index 0000000..f5e84a8 --- /dev/null +++ b/python-pytest-shell-utilities.changes @@ -0,0 +1,61 @@ +------------------------------------------------------------------- +Thu Nov 7 13:31:16 UTC 2024 - Pablo Suárez Hernández + +- update to 1.9.7: + * Rigid support for net_connections was causing breakages, + hence monitor version of psutil and call connections + vs net_connections appropriately + * Need psutil >= 6.0.0 to use net_connections + * fix: handle process shutdown with limited permissions + * Support for psutil 6.0.0 + +------------------------------------------------------------------- +Fri Mar 1 10:20:21 UTC 2024 - Dirk Müller + +- update to 1.9.0: + * Drop support for Python older than 3.8 and Pytest older than + 7.4.x + * The printed output is now the result of json.dumps instead of + pprint.pformat + * Several minor changes to the code base: Update copyright + headers Update pre-commit hook versions (#43) + * Update copyright headers + * Update pre-commit hook versions + * Drop support for python versions older than 3.7 + * Support Python 3.11 + * Set minimal attrs version to 22.1.0 + +------------------------------------------------------------------- +Wed Feb 7 09:00:37 UTC 2024 - Dirk Müller + +- avoid cycle with pytest-skip-markers by separating + test into a :test buildflavor +- remove :test flavor for now to allow bootstrap in Tumbleweed + +------------------------------------------------------------------- +Wed Jan 24 13:39:40 UTC 2024 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Tue Nov 7 20:08:45 UTC 2023 - Dirk Müller + +- update to 1.8.0: + * Drop support for python versions older than 3.7 + * Support Python 3.11 + * Set minimal attrs version to 22.1.0 + * Start running tests against Py3.11 and Pytest `7.3.x` and + `7.4.x` + * Update copyright headers + * ``Subprocess.run()`` now accepts ``shell`` keyword argument + like ``subprocess.Popen``. + +------------------------------------------------------------------- +Thu Oct 12 11:16:06 UTC 2023 - Ondřej Súkup + +- enable testsuite + +------------------------------------------------------------------- +Wed Sep 7 12:41:41 UTC 2022 - Alexander Graul + +- Initial package diff --git a/python-pytest-shell-utilities.spec b/python-pytest-shell-utilities.spec new file mode 100644 index 0000000..2520d74 --- /dev/null +++ b/python-pytest-shell-utilities.spec @@ -0,0 +1,89 @@ +# +# spec file for package python-pytest-shell-utilities +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +%{?sle15_python_module_pythons} +Name: python-pytest-shell-utilities%{psuffix} +Version: 1.9.7 +Release: 0 +Summary: Pytest plugin to simplify running shell commands against the system +License: Apache-2.0 +URL: https://github.com/saltstack/pytest-shell-utilities +Source: https://files.pythonhosted.org/packages/source/p/pytest-shell-utilities/pytest_shell_utilities-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 50.3.2} +BuildRequires: %{python_module setuptools_scm >= 3.4} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +%if %{with test} +BuildRequires: %{python_module attrs >= 22.1.0} +BuildRequires: %{python_module psutil >= 6.0.0} +BuildRequires: %{python_module pytest >= 7.3.0} +BuildRequires: %{python_module pytest-helpers-namespace} +BuildRequires: %{python_module pytest-shell-utilities = %{version}} +BuildRequires: %{python_module pytest-skip-markers} +BuildRequires: %{python_module pytest-subtests} +BuildRequires: %{python_module typing-extensions} +%endif +# /SECTION +BuildRequires: fdupes +Requires: python-attrs >= 22.1.0 +Requires: python-psutil >= 6.0.0 +Requires: python-pytest >= 7.3.0 +Requires: python-pytest-helpers-namespace +Requires: python-pytest-skip-markers +Requires: python-typing-extensions +BuildArch: noarch +%python_subpackages + +%description +Pytest plugin to simplify running shell commands against the system + +%prep +%setup -q -n pytest_shell_utilities-%{version} + +%build +%pyproject_wheel + +%if !%{with test} +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc CHANGELOG.rst README.rst +%license LICENSE +%{python_sitelib}/pytestshellutils +%{python_sitelib}/pytest_shell_utilities-%{version}*-info + +%else + +%check +%pytest +%endif + +%changelog