~pida/vellum/trunk

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
# Copyright (C) 2008 Zed A. Shaw.  You're free to reuse this file
# in your build scripts in anyway and remove the copyright 
# notice.

### @export "main" python
# This is a working build spec, but it is also an example
# so it consists of a lot more stuff than you would normally
# find in a real project.

imports [
    recipe(from 'scripts/testing' as 'testing')
    recipe(from 'scripts/sample' as 'sample')
    recipe(from 'scripts/dist' as 'dist')
]

options(
        project "vellum"
        default 'tests'
        sudo 'sudo'
        version '0.17'
        website '../zedshaw.com/output/projects/vellum'
        bzr.revision '.bzr/branch/last-revision'
        version.file 'vellum/version.py'

        setup(
            name 'vellum'
            version '0.17'
            author 'Ronny Pfannschmidt'
            author_email 'Ronny.Pfannschmidt@gmx.de'
            description 'A flexible small make alternative for Python programmers.'
            url 'https://launchpad.net/vellum'
            packages ['vellum' 'vellum.ext']
            scripts ['bin/vellum']
        )
)

depends(
        build ['tests' 'version.gen' ]
        tests ['testing.run']
        release ['build' 'dist.release']
)

targets(
        commit [
            $ bzr log --short > CHANGES
            $ bzr commit
            $ bzr push
        ]

        version.gen [
            $ bzr version-info --custom --template 'VERSION = "0.17"\nREV = {revno}, "{revision_id}"\n' > vellum/version.py
        ]
)