~pida/vellum/trunk

78 by Zed A. Shaw
Added copyright statements and GPLv3 statements to all the source.
1
# Copyright (C) 2008 Zed A. Shaw.  You're free to reuse this file
129.1.8 by Ronny Pfannschmidt
undo build.vel changes to fix the unittests
2
# in your build scripts in anyway and remove the copyright 
78 by Zed A. Shaw
Added copyright statements and GPLv3 statements to all the source.
3
# notice.
4
49 by Zed A. Shaw
Just before releasing 0.10.
5
### @export "main" python
53 by Zed A. Shaw
Added a new file for testing the commands, and got vellum to reduce the tasks in the build list to remove sequential dupes.
6
# This is a working build spec, but it is also an example
7
# so it consists of a lot more stuff than you would normally
8
# find in a real project.
49 by Zed A. Shaw
Just before releasing 0.10.
9
47 by Zed A. Shaw
First version with the new fancier and simpler build description format. That'll teach those bastards to have double standards. :-)
10
imports [
80 by Zed A. Shaw
Switched up the imports/modules section to be a bit more explicit and in one spot which is much cleaner.
11
    recipe(from 'scripts/testing' as 'testing')
12
    recipe(from 'scripts/sample' as 'sample')
164 by Ronny Pfannschmidt
add tool for sweet beautiful setup.py files
13
    recipe(from 'scripts/dist' as 'dist')
67 by Zed A. Shaw
Implements refactoring the module loading so that it's explicitly done in a modules section of the build.vel and uses normal python module loading so you can import modules from anywhere in the regular python path.
14
]
15
46 by Zed A. Shaw
new converted build scripts to the vel format
16
options(
114 by Zed A. Shaw
Started the next chapter of the book, and in the process needed to streamline the install procedure. This meant making a standardized build for all my projects and putting them in the cheese shop.
17
        project "vellum"
129.1.8 by Ronny Pfannschmidt
undo build.vel changes to fix the unittests
18
        default 'tests'
19
        sudo 'sudo'
164 by Ronny Pfannschmidt
add tool for sweet beautiful setup.py files
20
        version '0.17'
46 by Zed A. Shaw
new converted build scripts to the vel format
21
        website '../zedshaw.com/output/projects/vellum'
70 by Zed A. Shaw
Cleaned up the commands, fixing a bug with py() and adding the ability to give a list of strings to sh, py, and most other commands that took just strings. Added tests to make sure that works and then created a task that generates the vellum/version.py from the current version and the bzr revision information. Finally, added command line options for -C to list commands and -v to print this new version string.
22
        bzr.revision '.bzr/branch/last-revision'
23
        version.file 'vellum/version.py'
46 by Zed A. Shaw
new converted build scripts to the vel format
24
25
        setup(
26
            name 'vellum'
164 by Ronny Pfannschmidt
add tool for sweet beautiful setup.py files
27
            version '0.17'
28
            author 'Ronny Pfannschmidt'
29
            author_email 'Ronny.Pfannschmidt@gmx.de'
46 by Zed A. Shaw
new converted build scripts to the vel format
30
            description 'A flexible small make alternative for Python programmers.'
167 by Ronny Pfannschmidt
build script cleanup
31
            url 'https://launchpad.net/vellum'
149 by Ali Afshar
Bumped version, and add ext to installable packages.
32
            packages ['vellum' 'vellum.ext']
46 by Zed A. Shaw
new converted build scripts to the vel format
33
            scripts ['bin/vellum']
34
        )
35
)
36
37
depends(
156 by Ronny Pfannschmidt
kill dist.gen.setup, new setup.py
38
        build ['tests' 'version.gen' ]
142.1.4 by Ronny Pfannschmidt
fixed build.vel and resolver tests
39
        tests ['testing.run']
162 by Ronny Pfannschmidt
remove the book build
40
        release ['build' 'dist.release']
46 by Zed A. Shaw
new converted build scripts to the vel format
41
)
42
43
targets(
44
        commit [
45
            $ bzr log --short > CHANGES
46
            $ bzr commit
47
            $ bzr push
48
        ]
49
70 by Zed A. Shaw
Cleaned up the commands, fixing a bug with py() and adding the ability to give a list of strings to sh, py, and most other commands that took just strings. Added tests to make sure that works and then created a task that generates the vellum/version.py from the current version and the bzr revision information. Finally, added command line options for -C to list commands and -v to print this new version string.
50
        version.gen [
167 by Ronny Pfannschmidt
build script cleanup
51
            $ bzr version-info --custom --template 'VERSION = "0.17"\nREV = {revno}, "{revision_id}"\n' > vellum/version.py
79 by Zed A. Shaw
Included a little task that spits out the SLOC with cloc.
52
        ]
46 by Zed A. Shaw
new converted build scripts to the vel format
53
)