-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (50 loc) · 1.44 KB
/
setup.py
File metadata and controls
62 lines (50 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env python
from setuptools import setup, Command
class Tester(Command):
user_options = []
def initialize_options(self):
import os
import logging
self._dir = os.getcwd()
logger = logging.getLogger('dag')
logger.setLevel(logging.DEBUG)
fh = logging.FileHandler('test/debug.log')
fh.setLevel(logging.DEBUG)
logger.addHandler(fh)
def finalize_options(self):
pass
def run(self):
import test
print("Testing dag")
if test.test_dag_objects():
print("Success")
else:
print("Failure")
exit(1)
print("Testing gsub")
if test.test_gsub():
print("Success")
else:
print("Failure")
exit(1)
print("Testing shell processes")
if test.test_shell_processes():
print("Success")
else:
print("Failure")
exit(1)
print("Testing progress bar")
test.test_progress_bar()
print("Did you see a progress bar?")
thescripts = ["scripts/gsub", "scripts/update_dag",
"scripts/shell_update"]
setup(name='dag',
version='1.7.0',
description='DAG Batch Job Creator for BOINC',
author='David Coss, PhD',
author_email='[email protected]',
license='GPL v3',
packages=['dag'],
scripts=thescripts,
cmdclass={'test': Tester}
)