#1 Add bcond_without tests
Merged 5 years ago by churchyard. Opened 5 years ago by kanarip.
rpms/ kanarip/python-ptyprocess epel8  into  master

Add bcond_without tests to break dependency loop on pytest
Jeroen van Meeuwen (Kolab Systems) • 5 years ago  
file modified
+7 -1
@@ -1,5 +1,7 @@ 

  %global modname ptyprocess


+ %bcond_without tests


  Name:           python-ptyprocess

  Version:        0.6.0

  Release:        4%{?dist}
@@ -11,9 +13,11 @@ 


  BuildArch:      noarch

  BuildRequires:  python2-devel

- BuildRequires:  pytest

  BuildRequires:  python%{python3_pkgversion}-devel

+ %if %{with tests}

+ BuildRequires:  pytest

  BuildRequires:  python%{python3_pkgversion}-pytest

+ %endif



  Launch a subprocess in a pseudo terminal (pty), and interact with both the
@@ -44,9 +48,11 @@ 




+ %if %{with tests}


  %{_bindir}/py.test-3.* -v

  %{_bindir}/py.test-2.* -v

+ %endif


  %files -n python2-ptyprocess

  %license LICENSE

Allow ptyprocess to be built without requiring pytest so pytest can be built.

plese move this one line up, sot here is no %check if there is no %check

rebased onto 7f883e8

5 years ago

Pull-Request has been merged by churchyard

5 years ago