[python-atomicwrites] Disable tests by default as they require network
Michele Baldessari
mbaldessari at fedoraproject.org
Mon Mar 2 20:11:25 UTC 2015
commit 9375ee0611f0a805c5ad69cedf89f07a7f81482c
Author: Michele Baldessari <michele at acksyn.org>
Date: Mon Mar 2 21:11:18 2015 +0100
Disable tests by default as they require network
python-atomicwrites.spec | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/python-atomicwrites.spec b/python-atomicwrites.spec
index aa71531..ea244e1 100644
--- a/python-atomicwrites.spec
+++ b/python-atomicwrites.spec
@@ -1,11 +1,17 @@
+# invoke with "--with tests" to enable tests, currently disabled
+# as network is required
+
+%bcond_with tests
+
%if 0%{?fedora}
%bcond_without python3
%else
%bcond_with python3
%endif
+
Name: python-atomicwrites
Version: 0.1.4
-Release: 4%{?git_tag}%{?dist}
+Release: 5%{?git_tag}%{?dist}
Summary: Python Atomic file writes on POSIX
License: MIT
@@ -87,7 +93,9 @@ popd
%endif
%check
+%if %{with tests}
%{__python} run-tests.py
+%endif
# needs python3-tox bz #1010767
#if {with python3}
@@ -106,6 +114,9 @@ popd
%endif
%changelog
+* Mon Mar 02 2015 Michele Baldessari <michele at redhat.com> - 0.1.4-5
+- Disable tests as they require network
+
* Sun Mar 01 2015 Michele Baldessari <michele at redhat.com> - 0.1.4-4
- Move it to python 3
More information about the scm-commits
mailing list