15
0

Accepting request 788605 from devel:languages:python

- Switch to multibuild in order to avoid cycle

- update to version 0.2.10
  * test and code fixtures

OBS-URL: https://build.opensuse.org/request/show/788605
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-EasyProcess?expand=0&rev=20
This commit is contained in:
2020-03-26 23:30:25 +00:00
committed by Git OBS Bridge
5 changed files with 39 additions and 17 deletions

3
0.2.10.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:72a59e5c350292fb003b1679f11c543d803d2187cba75ac8993a01d0f37003c1
size 13909

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c5db8adac49dac0fa24f5aa23be44f063cceb5bad9a91ddd6c27f0e3563145b8
size 13695

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Mar 26 16:00:25 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Switch to multibuild in order to avoid cycle
-------------------------------------------------------------------
Thu Mar 26 09:06:42 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- update to version 0.2.10
* test and code fixtures
-------------------------------------------------------------------
Mon Jan 13 15:13:26 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -17,21 +17,31 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-EasyProcess
Version: 0.2.8
%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: 0.2.10
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 nose}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: iputils
BuildRequires: python-rpm-macros
BuildRequires: python3-2to3
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module PyVirtualDisplay}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module six}
%endif
%python_subpackages
%description
@@ -58,29 +68,27 @@ Limitations:
%prep
%setup -q -n EasyProcess-%{version}
# https://github.com/ponty/EasyProcess/issues/18
sed -i "s/from easyprocess import EasyProcess/from easyprocess import EasyProcess;import sys/" easyprocess/examples/*.py
sed -i "s/'python /sys.executable + ' /" easyprocess/examples/*.py
sed -i "s/'python'/sys.executable/" easyprocess/examples/*.py
# requires pyvirtualdisplay which is mostly dead package
rm -f tests/coverage/fast/test_deadlock.py
2to3 -w easyprocess/examples/log.py
%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
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v tests/coverage/
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v tests/
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/*
%endif
%changelog