[Pkg-privacy-commits] [mat] 16/68: `python setup.py test` will now run the testsuite
Sascha Steinbiss
sascha at steinbiss.name
Sun Jan 3 12:32:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
sascha-guest pushed a commit to branch master
in repository mat.
commit 4de7342a67e3cf08dabf616e6bbf0bbbae2f507f
Author: jvoisin <julien.voisin at dustri.org>
Date: Wed Nov 25 12:24:43 2015 +0100
`python setup.py test` will now run the testsuite
It's basically a simple wrapper around
`cd test/ ; python test.py --local`.
---
setup.py | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 097d8f0..7e1e4f3 100755
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
import os
-from distutils.core import setup
+from distutils.core import setup, Command
from DistUtilsExtra.command import *
__version__ = '0.5.3'
@@ -13,6 +13,22 @@ __version__ = '0.5.3'
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
+
+class PyTest(Command):
+ user_options = []
+ def initialize_options(self):
+ pass
+
+ def finalize_options(self):
+ pass
+
+ def run(self):
+ import subprocess
+ import sys
+ os.chdir('test')
+ errno = subprocess.call([sys.executable, 'test.py', '--local'])
+ raise SystemExit(errno)
+
setup(
name='MAT',
version=__version__,
@@ -34,6 +50,7 @@ setup(
('share/nautilus-python/extensions', ['nautilus/nautilus-mat.py'])
],
cmdclass={
+ 'test': PyTest,
'build': build_extra.build_extra,
'build_i18n': build_i18n.build_i18n,
'build_help': build_help.build_help,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git
More information about the Pkg-privacy-commits
mailing list