forked from shahryarabaki/ICE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pavement.py
45 lines (37 loc) · 971 Bytes
/
pavement.py
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
#!/usr/bin/python3.5
from paver.easy import *
from paver.setuputils import setup
import paver.doctools
import os
import glob
import shutil
setup(
name="CollocationExtractor",
packages=['src'],
version="0.5",
url="http://www.uh.edu/",
author="RedAs Lab UH",
author_email="[email protected]",
install_requires=["nltk",
"unidecode>=0.04.19"]
)
@task
@needs(['sdist'])
def install_dependencies():
sh('pip install -r CollocationExtractor.egg-info/requires.txt')
pass
@task
def test():
sh('nosetests --with-coverage --cover-erase --cover-package=src --cover-html test')
pass
@task
def clean():
for pycfile in glob.glob("*/*.pyc"): os.remove(pycfile)
for pycfile in glob.glob("*/*/*.pyc"): os.remove(pycfile)
for pycache in glob.glob("*/__pycache__"): os.removedirs(pycache)
for pycache in glob.glob("./__pycache__"): shutil.rmtree(pycache)
pass
@task
@needs(['test', 'clean'])
def default():
pass