[python-stem] Run tests
Juan Orti
jorti at fedoraproject.org
Wed Dec 24 08:59:47 UTC 2014
commit 6162fcd14ba974e4c0993357d64d8eb25e2f6a11
Author: Juan Orti Alcaine <juan.orti at miceliux.com>
Date: Wed Dec 24 09:59:24 2014 +0100
Run tests
python-stem.spec | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/python-stem.spec b/python-stem.spec
index d9a0672..3dced92 100644
--- a/python-stem.spec
+++ b/python-stem.spec
@@ -3,7 +3,7 @@
Name: python-stem
Version: 1.3.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Python controller library for Tor
Group: Development/Libraries
@@ -17,6 +17,10 @@ Source1: https://pypi.python.org/packages/source/s/stem/%{pkgname}-%{vers
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-sphinx
+BuildRequires: python-mock
+BuildRequires: python-flake8
+BuildRequires: tor
+BuildRequires: procps-ng
%if 0%{?with_python3}
BuildRequires: python3-devel
%endif
@@ -88,6 +92,9 @@ find docs -name .buildinfo -exec rm -f {} \;
install -d %{buildroot}%{_mandir}/man1/
install -m 0644 docs/_build/man/%{pkgname}.1 %{buildroot}%{_mandir}/man1/
+%check
+%{__python2} run_tests.py --all
+
%files
%doc LICENSE
%{_bindir}/tor-prompt
@@ -107,6 +114,9 @@ install -m 0644 docs/_build/man/%{pkgname}.1 %{buildroot}%{_mandir}/man1/
%{_mandir}/man1/%{pkgname}.1*
%changelog
+* Wed Dec 24 2014 Juan Orti Alcaine <jorti at fedoraproject.org> - 1.3.0-2
+- Run tests
+
* Tue Dec 23 2014 Juan Orti Alcaine <jorti at fedoraproject.org> - 1.3.0-1
- Version 1.3.0
- Add documentation in text format
More information about the scm-commits
mailing list