forked from zedshaw/lamson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.vel
84 lines (74 loc) · 2.69 KB
/
build.vel
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright (C) 2008 Zed A. Shaw. You're free to reuse this file
# in your build scripts in anyway and remove the copyright
# notice.
imports [
recipe(from 'scripts/testing' as 'testing')
recipe(from 'scripts/dist' as 'dist')
recipe(from 'scripts/sample' as 'sample')
]
options(
project "lamson"
default 'tests'
sudo 'sudo'
version '1.1'
website './doc/lamsonproject.org/output/releases/'
version.file 'lamson/version.py'
setup(
name 'lamson'
version '1.1'
author 'Zed A. Shaw'
description 'Lamson is a modern Pythonic mail server built like a web application server.'
url 'http://pypi.python.org/pypi/lamson'
download_url 'http://pypi.python.org/pypi/lamson'
author_email '[email protected]'
package_data ( lamson [ 'data/prototype.zip' ])
packages ['lamson' 'lamson.handlers']
scripts ['bin/lamson']
install_requires ['chardet' 'jinja2' 'mock' 'nose' 'python-daemon']
)
)
depends(
build ['tests' 'prototype' 'examples' 'virus' 'version.gen' 'dist.install' 'dist.sdist']
commit ['dist.gen.setup' 'parser' 'dist.clean']
tests ['parser' 'testing.run']
release ['build' 'dist.release' 'book.release' ]
clean ['dist.clean']
pypi ['build']
)
targets(
virus [
$ echo clamscan -i -r
]
examples [
$ rm -rf run/queue examples/osb/run/* examples/librelist/run/*
$ rm -rf examples/librelist/app/data/archive/*
$ find . -name "main.db" -exec rm {} \;
$ find . -name "*.log" -exec rm {} \;
$ find . -name "*.err" -exec rm {} \;
$ find . -name "*.out" -exec rm {} \;
$ find . -name "*.pyc" -exec rm {} \;
$ find . -name "*.sw*" -exec rm {} \;
$ rm -f tests/test.db
$ rm -f tests/sbdb
$ rm -rf doc/lamsonproject.org/output/docs/api
]
prototype [
$ rm -f lamson/data/prototype.zip
$ cd lamson/data/prototype ; zip -r ../prototype.zip .
]
version.gen [
$ fossil info | grep checkout > /tmp/lamson.rev
py [
|rev = open("/tmp/lamson.rev").read().split()[1]
|ver = {"version": version, "rev": [rev[:10], rev]}
|open("%(version.file)s", 'w').write(
| "VERSION=" + repr(ver))
]
]
coverage [
$ nosetests --quiet --with-coverage --cover-package lamson
]
pypi [
$ python setup.py register sdist bdist_egg upload
]
)