commit 5f29213a42be4adf81e1d9074cb81a45fb3256a6 Author: Adrian Schröter Date: Wed Jun 7 08:30:49 2023 +0200 Sync from SUSE:ALP:Source:Standard:1.0 python-EasyProcess revision e0a5678ad01a19b8a1400ce7c9ce1ab6 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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/1.1.tar.gz b/1.1.tar.gz new file mode 100644 index 0000000..8452881 --- /dev/null +++ b/1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b566225ba7b8f7dd3a5356e18209edd5e5bcf002bfd9de6b16cce36d2a68ffc0 +size 13755 diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..83bd4e9 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-EasyProcess.changes b/python-EasyProcess.changes new file mode 100644 index 0000000..1824f58 --- /dev/null +++ b/python-EasyProcess.changes @@ -0,0 +1,131 @@ +------------------------------------------------------------------- +Sat Aug 20 13:01:54 UTC 2022 - Ben Greiner + +- Package only supports Python >= 3.7 +- Remove linter flake8 and static type checker mypy from build + requirements: Not used and not necessary during rpm packaging. +- Remove stray build dependency for six +- Remove entrypoint2 build dependency: only required for building + docs +- Don't catchall in files section + +------------------------------------------------------------------- +Wed Aug 10 07:46:11 UTC 2022 - Otto Hollmann + +- Fix build dependencies for test flavour +- Update to 1.1: + * Use popen timeout parameter, remove daemon thread #22 + * use only kill(), remove terminate(), remove kill* parameters #20 #22 + * add py310 support, remove py36 + * fix EASYPROCESS_USE_TEMP_FILES env var usage + * test: increase timeouts to avoid random fails + * remove py2 + * add py39 support + * Add option to force kill process after timeout + +------------------------------------------------------------------- +Thu Jul 9 00:07:33 UTC 2020 - Ondřej Súkup + +- update to 0.3 + * relpace nose with pytest + +------------------------------------------------------------------- +Thu Mar 26 16:00:25 UTC 2020 - Tomáš Chvátal + +- Switch to multibuild in order to avoid cycle + +------------------------------------------------------------------- +Thu Mar 26 09:06:42 UTC 2020 - Marketa Calabkova + +- update to version 0.2.10 + * test and code fixtures + +------------------------------------------------------------------- +Mon Jan 13 15:13:26 UTC 2020 - Marketa Calabkova + +- update to version 0.2.8 + * enable_stdout_log, enable_stderr_log + * py38 support + * remove py34 support + +------------------------------------------------------------------- +Tue Nov 5 09:53:44 UTC 2019 - Tomáš Chvátal + +- Update with spec-cleaner + +------------------------------------------------------------------- +Sun Sep 15 03:11:23 UTC 2019 - John Vandenberg + +- Fix examples to use sys.executable + +------------------------------------------------------------------- +Mon Jun 17 12:15:09 UTC 2019 - Tomáš Chvátal + +- Update to 0.2.7: + * Small fixes only + +------------------------------------------------------------------- +Fri Apr 5 23:58:47 UTC 2019 - John Vandenberg + +- Add export LANG=en_US.UTF-8 to fix Leap builds + +------------------------------------------------------------------- +Fri Mar 1 12:54:05 UTC 2019 - Tomáš Chvátal + +- Update to 0.2.5: + * Fixes for python 3.7 + * Many utf8 fixes +- Switch to github tarball for tests + +------------------------------------------------------------------- +Wed Dec 5 01:05:28 UTC 2018 - Jan Engelhardt + +- Trim bias from description. Do not put limitations under + "features". + +------------------------------------------------------------------- +Tue Dec 4 12:47:32 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Mon Aug 28 19:32:50 UTC 2017 - toddrme2178@gmail.com + +- update to version 0.2.3: + * no changelog available +- Implement single-spec version +- Fix source URL + +------------------------------------------------------------------- +Mon May 4 13:36:58 UTC 2015 - benoit.monin@gmx.fr + +- update to version 0.1.9: + * no changelog available + +------------------------------------------------------------------- +Thu Oct 24 11:04:50 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Sun Feb 17 14:07:19 UTC 2013 - p.drouand@gmail.com + +- Update to version 0.1.6: + * No changelog available + +------------------------------------------------------------------- +Sat Feb 16 14:52:19 UTC 2013 - p.drouand@gmail.com + +- Update to version 0.1.5: + * No changelog available + +------------------------------------------------------------------- +Thu Jan 10 18:38:33 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support package + +------------------------------------------------------------------- +Mon Mar 26 11:44:14 UTC 2012 - saschpe@suse.de + +- Initial version + diff --git a/python-EasyProcess.spec b/python-EasyProcess.spec new file mode 100644 index 0000000..fb26975 --- /dev/null +++ b/python-EasyProcess.spec @@ -0,0 +1,98 @@ +# +# spec file +# +# Copyright (c) 2022 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 +Name: python-EasyProcess%{psuffix} +Version: 1.1 +Release: 0 +Summary: Python subprocess interface +License: BSD-2-Clause +URL: https://github.com/ponty/easyprocess +Source: https://github.com/ponty/EasyProcess/archive/%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module EasyProcess = %{version}} +BuildRequires: %{python_module Pillow} +BuildRequires: %{python_module PyVirtualDisplay} +BuildRequires: %{python_module pytest-timeout} +BuildRequires: %{python_module pytest} +BuildRequires: ImageMagick +BuildRequires: iputils +%endif +%python_subpackages + +%description +EasyProcess is a Python subprocess interface. + +Features include: + - layer on top of subprocess module + - starting and stopping of programs + - retrieval of standard output/error, return code of programs + - command can be list or string + - logging + - timeout + - unit-tests + - cross-platform, development on linux + - global config file with program aliases + - unicode support + - supported python versions: 2.5, 2.6, 2.7, 3.1, 3.2, PyPy + +Limitations: + - shell is not supported + - pipes are not supported + - stdout/stderr is set only after the subprocess has finished + - stop() does not kill whole subprocess tree + +%prep +%setup -q -n EasyProcess-%{version} + +%build +%python_build + +%install +%if !%{with test} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +export LANG=en_US.UTF-8 +%pytest +%endif + +%if !%{with test} +%files %{python_files} +%license LICENSE.txt +%doc README.md +%{python_sitelib}/easyprocess +%{python_sitelib}/EasyProcess-%{version}*-info +%endif + +%changelog