Add bcond_without tests to break dependency loop on pytest

This commit is contained in:
Jeroen van Meeuwen (Kolab Systems) 2019-03-08 10:54:21 +01:00
parent 0fc86773a3
commit 7f883e8d2b

View File

@ -1,5 +1,7 @@
%global modname ptyprocess
%bcond_without tests
Name: python-ptyprocess
Version: 0.6.0
Release: 4%{?dist}
@ -11,9 +13,11 @@ Source0: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyp
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: pytest
BuildRequires: python%{python3_pkgversion}-devel
%if %{with tests}
BuildRequires: pytest
BuildRequires: python%{python3_pkgversion}-pytest
%endif
%description
Launch a subprocess in a pseudo terminal (pty), and interact with both the
@ -44,9 +48,11 @@ process and its pty.
%py3_install
%py2_install
%if %{with tests}
%check
%{_bindir}/py.test-3.* -v
%{_bindir}/py.test-2.* -v
%endif
%files -n python2-ptyprocess
%license LICENSE