-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpavement.py
66 lines (52 loc) · 1.45 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
66
import os
import sys
from os.path import join, pardir, abspath, dirname, split
from paver.easy import *
from paver.setuputils import setup
from setuptools import find_packages
VERSION = (0, 1, 4)
__version__ = VERSION
__versionstr__ = '.'.join(map(str, VERSION))
setup(
name = 'djangomarkup',
version = __versionstr__,
description = 'Support for various markup languages in Django applications',
long_description = '\n'.join((
'(TODO)',
)),
author = 'centrum holdings s.r.o',
license = 'BSD',
packages = find_packages(
where = '.',
exclude = ('docs', 'tests')
),
include_package_data = True,
)
options(
citools = Bunch(
rootdir = abspath(dirname(__file__))
),
)
try:
from citools.pavement import *
except ImportError:
pass
@task
def install_dependencies():
sh('pip install -r requirements.txt')
@task
def bootstrap():
options.virtualenv = {'packages_to_install' : ['pip']}
call_task('paver.virtual.bootstrap')
sh("python bootstrap.py")
path('bootstrap.py').remove()
print '*'*80
if sys.platform in ('win32', 'winnt'):
print "* Before running other commands, You now *must* run %s" % os.path.join("bin", "activate.bat")
else:
print "* Before running other commands, You now *must* run source %s" % os.path.join("bin", "activate")
print '*'*80
@task
@needs('install_dependencies')
def prepare():
""" Prepare complete environment """