Add bcond_without tests to break dependency loop on pytest
This commit is contained in:
parent
0fc86773a3
commit
7f883e8d2b
@ -1,5 +1,7 @@
|
|||||||
%global modname ptyprocess
|
%global modname ptyprocess
|
||||||
|
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
Name: python-ptyprocess
|
Name: python-ptyprocess
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 4%{?dist}
|
Release: 4%{?dist}
|
||||||
@ -11,9 +13,11 @@ Source0: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyp
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: pytest
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: pytest
|
||||||
BuildRequires: python%{python3_pkgversion}-pytest
|
BuildRequires: python%{python3_pkgversion}-pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Launch a subprocess in a pseudo terminal (pty), and interact with both the
|
Launch a subprocess in a pseudo terminal (pty), and interact with both the
|
||||||
@ -44,9 +48,11 @@ process and its pty.
|
|||||||
%py3_install
|
%py3_install
|
||||||
%py2_install
|
%py2_install
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
%{_bindir}/py.test-3.* -v
|
%{_bindir}/py.test-3.* -v
|
||||||
%{_bindir}/py.test-2.* -v
|
%{_bindir}/py.test-2.* -v
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python2-ptyprocess
|
%files -n python2-ptyprocess
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user