From 13955622664d6c9883a09b8b4a0651bf256fbbae18d13683854c72272a2644a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 13 Jun 2025 12:14:06 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subprocrunner?expand=0&rev=25 --- .gitattributes | 23 +++++++ .gitignore | 1 + python-subprocrunner.changes | 119 +++++++++++++++++++++++++++++++++++ python-subprocrunner.spec | 67 ++++++++++++++++++++ subprocrunner-2.0.1.tar.gz | 3 + 5 files changed, 213 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-subprocrunner.changes create mode 100644 python-subprocrunner.spec create mode 100644 subprocrunner-2.0.1.tar.gz 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-subprocrunner.changes b/python-subprocrunner.changes new file mode 100644 index 0000000..1d00ca4 --- /dev/null +++ b/python-subprocrunner.changes @@ -0,0 +1,119 @@ +------------------------------------------------------------------- +Fri Jun 13 12:13:46 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Sat Apr 20 07:45:10 UTC 2024 - Dirk Müller + +- update to 2.0.1: + * Add `__all__` to `__init__.py` + * Update the package metadata + * Drop support for Python 3.6 + * Add support for Python 3.11 and 3.12 + * Fix type annotations + +------------------------------------------------------------------- +Fri Nov 11 13:18:05 UTC 2022 - pgajdos@suse.com + +- silent rpmlint + +------------------------------------------------------------------- +Fri Nov 11 12:58:18 UTC 2022 - pgajdos@suse.com + +- python-six is not required + +------------------------------------------------------------------- +Tue Oct 11 15:32:48 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 2.0.0 + Drop support for Python 3.5 + Add input/encoding keyword arguments to run method + Add raise_for_returncode method to SubprocessRunner class + +------------------------------------------------------------------- +Thu Apr 21 23:58:17 UTC 2022 - Matej Cepl + +- Add missing BR hostname + +------------------------------------------------------------------- +Sat Jun 5 13:14:13 UTC 2021 - Martin Hauke + +- Update to version 1.6.0 + * Add __repr__ method to Retry/SubprocessRunner classes + * Fix to properly suppress debug logs when quiet=True + * Fixed to save command history at runtime + +------------------------------------------------------------------- +Fri Jun 4 20:34:17 UTC 2021 - Martin Hauke + +- Update to version 1.5.0 + * Add no_retry_returncodes parameter to Retry class +- Update to version 1.4.2 + * Fix retry processing + * Modify log messages +- Update to version 1.4.1 + * Fix retry processing +- Update to version 1.4.0 + * Add quiet mode support for SubprocessRunner/Retry + * Modify a retry log message +- Update to version 1.3.0 + * Add timeout keyword argument to SubprocessRunner.run: + * Add support for retry functionality to SubprocessRunner.run + * Add SubprocessRunner.Retry class + * Modify type annotation of SubprocessRunner.run return value + +------------------------------------------------------------------- +Sun May 16 18:30:07 UTC 2021 - Matej Cepl + +- Don't require pytest-runner, when we don't need it. + +------------------------------------------------------------------- +Thu May 13 16:40:31 UTC 2021 - Martin Hauke + +- Update to version 1.2.2 + * Add support for Python 3.10 + * Modify type annotations + * Add subprocrunner.typing + +------------------------------------------------------------------- +Sat Apr 4 11:15:24 UTC 2020 - Martin Hauke + +- version update to 1.2.1 + * no upstream changelog this time + +------------------------------------------------------------------- +Fri Mar 20 16:52:01 UTC 2020 - Martin Hauke + +- Update to version 1.2.0 + * Add follow_symlinks argument to Which constructor + * Improve path existence check for Which + * Modify an error handling when a command not specified for Which + * Fix to include py.typed to the package + +------------------------------------------------------------------- +Tue Mar 17 11:27:31 UTC 2020 - pgajdos@suse.com + +- version update to 1.1.0 + * no upstream changelog this time + +------------------------------------------------------------------- +Sun Feb 16 19:32:47 UTC 2020 - Martin Hauke + +- Update to version 1.0.0 + * Drop Python 2 support + * Add type annotations and py.typed to the package + * Replace the logging library from Logbook to loguru + * Remove deprecated error classes + * Remove deprecated methods + +------------------------------------------------------------------- +Thu Feb 6 21:44:55 UTC 2020 - Martin Hauke + +- Update to version 0.17.2 +- Specfile cleanup + +------------------------------------------------------------------- +Fri May 10 01:33:56 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.17.0 diff --git a/python-subprocrunner.spec b/python-subprocrunner.spec new file mode 100644 index 0000000..b902897 --- /dev/null +++ b/python-subprocrunner.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-subprocrunner +# +# Copyright (c) 2025 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/ +# + + +Name: python-subprocrunner +Version: 2.0.1 +Release: 0 +Summary: A Python wrapper library for subprocess module +License: MIT +Group: Development/Languages/Python +URL: https://github.com/thombashi/subprocrunner +Source: https://files.pythonhosted.org/packages/source/s/subprocrunner/subprocrunner-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 38.3.0} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-loguru >= 0.4.1 +Requires: python-mbstrdecoder >= 1.0.0 +Requires: python-typepy +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module loguru >= 0.4.1} +BuildRequires: %{python_module mbstrdecoder >= 1.0.0} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module typepy} +BuildRequires: hostname +# /SECTION +%python_subpackages + +%description +A Python wrapper library for subprocess module. + +%prep +%setup -q -n subprocrunner-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/subprocrunner* + +%changelog diff --git a/subprocrunner-2.0.1.tar.gz b/subprocrunner-2.0.1.tar.gz new file mode 100644 index 0000000..7e78b04 --- /dev/null +++ b/subprocrunner-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3723226a1bf6b51569fd8f82aa4f0588eef7adf129d16aac8b317555624e8f69 +size 15112