summaryrefslogtreecommitdiff
path: root/build.py
blob: 84e7617ce470d7dd027096fd41c2af600accd869 (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
#!/usr/bin/env python
'''Xnt build script for project'''

import xnt

@xnt.target
def build():
    xnt.setup(['build'])

@xnt.target
def clean():
    xnt.rm('pylibchorus.egg-info',
           'build',
           'dist',
           '.eggs',
           '**/__pycache__',
           '**/tests/__pycache__',
           '**/*.pyc',
           '**/tests/*.pyc')

@xnt.target
def test():
    return xnt.setup(['test'])

@xnt.target
def lint():
    return xnt.call(['pylint', '--rcfile=pylint.conf', 'pylibchorus'])

@xnt.target
def package():
    return xnt.setup(['bdist'])

@xnt.target
def install():
    return xnt.setup(['install', '--user'])