[python-structlog] disable tests on rhel

piotrp piotrp at fedoraproject.org
Thu Dec 4 19:53:48 UTC 2014


commit 5ce5e4cfa1331c61a7e114ed47c46af87fd7e3ee
Author: Piotr Popieluch <piotr1212 at gmail.com>
Date:   Thu Dec 4 20:53:32 2014 +0100

    disable tests on rhel

 python-structlog.spec |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/python-structlog.spec b/python-structlog.spec
index db42e30..12604b8 100644
--- a/python-structlog.spec
+++ b/python-structlog.spec
@@ -6,17 +6,20 @@
 %endif
 
 # enable python3 on fedora
+# disable tests on RHEL pytest 2.4 not available
 %if 0%{?fedora}
 %bcond_without python3
+%bcond_without tests
 %else
 %bcond_with python3
+%bcond_with tests
 %endif
 
 %global srcname structlog
 
 Name:           python-structlog
 Version:        0.4.2
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Painless structural logging
 
 Group:          Development/Libraries
@@ -30,14 +33,18 @@ BuildRequires:  pytest
 BuildRequires:  python-devel
 BuildRequires:  python-freezegun
 BuildRequires:  python-pretend
+%if %{with tests}
 BuildRequires:  python-pytest-cov
+%endif
 BuildRequires:  python-setuptools
 %if %{with python3}
 BuildRequires:  python3-devel
 BuildRequires:  python3-freezegun
 BuildRequires:  python3-pretend
+%if %{with tests}
 BuildRequires:  python3-pytest
 BuildRequires:  python3-pytest-cov
+%endif
 BuildRequires:  python3-setuptools
 %endif
 
@@ -92,12 +99,14 @@ popd
 %{__python2} setup.py install -O1 --skip-build --root %{buildroot}
 
 
+%if %{with tests}
 %check
 %{_bindir}/py.test
 
 %if %{with python3}
 %{_bindir}/py.test-3.?
 %endif
+%endif
 
 
 %files
@@ -114,6 +123,9 @@ popd
 
 
 %changelog
+* Thu Dec  4 2014 Piotr Popieluch <piotr1212 at gmail.com> - 0.4.2-5
+- disabled tests on epel
+
 * Sat Nov 22 2014 Piotr Popieluch <piotr1212 at gmail.com> - 0.4.2-4
 - added epel support
 


More information about the scm-commits mailing list