forked from chevah/python-package
/
pavement.py
65 lines (56 loc) · 1.38 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright (c) 2010-2013 Adi Roiban.
# See LICENSE for details.
"""
Build script for Python binary distribution.
"""
RUN_PACKAGES = [
'zope.interface==3.8.0',
'twisted==12.1.0-chevah3',
# Buildbot is used for try scheduler
'buildbot==0.8.11.pre.143.gac88f1b.c2',
# Required for some unicode handling.
'unidecode',
]
from brink.pavement_commons import (
buildbot_list,
buildbot_try,
default,
github,
harness,
help,
pave,
SETUP,
test_remote,
test_review,
)
from paver.easy import task
# Make pylint shut up.
buildbot_list
buildbot_try
default
github
harness
help
test_remote
test_review
SETUP['product']['name'] = 'python'
SETUP['folders']['source'] = u'src'
SETUP['repository']['name'] = u'python-package'
SETUP['pocket-lint']['include_files'] = ['pavement.py']
SETUP['pocket-lint']['include_folders'] = ['src']
SETUP['pocket-lint']['exclude_files'] = []
SETUP['test']['package'] = None
SETUP['pypi']['index_url'] = 'http://pypi.chevah.com:10042/simple'
SETUP['github']['repo'] = 'chevah/python-package'
SETUP['buildbot']['server'] = 'build.chevah.com'
SETUP['buildbot']['web_url'] = 'http://build.chevah.com:10088'
@task
def deps():
"""
Copy external dependencies.
"""
print('Installing dependencies to %s...' % (pave.path.build))
pave.pip(
command='install',
arguments=RUN_PACKAGES,
)