Skip to content

Commit 14feb43

Browse files
committed
Added python-qwt-tests cl script to launch tests
1 parent af7aad8 commit 14feb43

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
recursive-include qwt *.png *.svg *.pot *.po *.mo *.dcm *.ui
22
recursive-include examples *.py *.png *.svg *.pot *.po *.mo *.dcm *.ui
3+
recursive-include scripts *.*
34
recursive-include src *.hpp *.cpp *.pyx
45
recursive-include doc *.py *.rst *.png *.ico
56
include MANIFEST.in

scripts/python-qwt-tests

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env python
2+
from qwt import tests
3+
tests.run()

scripts/python-qwt-tests.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
python "%~dpn0" %*

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@
5959
CLASSIFIERS += ['Development Status :: 3 - Alpha']
6060
else:
6161
CLASSIFIERS += ['Development Status :: 5 - Production/Stable']
62+
if os.name == 'nt':
63+
SCRIPTS = ['python-qwt-tests', 'python-qwt-tests.bat']
64+
else:
65+
SCRIPTS = ['python-tests']
66+
SCRIPTS = [osp.join('scripts', fname) for fname in SCRIPTS]
6267

6368

6469
def get_package_data(name, extlist):
@@ -123,6 +128,7 @@ def run(self):
123128
package_data={PACKAGE_NAME:
124129
get_package_data(PACKAGE_NAME, ('.png', '.svg', '.mo'))},
125130
requires=["PyQt4 (>4.3)",],
131+
scripts=SCRIPTS,
126132
author = "Pierre Raybaut",
127133
author_email = 'pierre.raybaut@gmail.com',
128134
url = 'https://github.com/PierreRaybaut/%s' % LIBNAME,

0 commit comments

Comments
 (0)