blob: 36664194dbb8a7f6223c2b7d6437535d86d9d518 (
plain)
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
|
#!/usr/bin/env python
import xnt
@xnt.target
def clean():
"""Removes Generated folders"""
xnt.rm("Xnt.egg-info",
"build",
"docs/build",
"dist",
"README.html",
"**/*.pyc",
"**/**/*.pyc",
"**__pycache__",
"**/**/__pycache__")
@xnt.target
def build():
return xnt.setup(["build"])
@xnt.target
def test():
"""Tests package"""
print("Python Tests:")
ec1 = xnt.setup(["test"])
clean()
print("Python2 Tests:")
ec2 = xnt.call(["python2", "setup.py", "test"])
clean()
return ec1 | ec2
@xnt.target
def install():
"""Install Xnt"""
ec = xnt.setup(["install", "--user"])
clean()
return ec
@xnt.target
def doc():
"""
Create package documentation
"""
clean()
return xnt.setup(["build_sphinx"])
|