[Subversion] / PEAK / version  

View of /PEAK/version

Parent Directory | Revision Log
Revision: 1374 - (download)
Sat Aug 30 20:37:37 2003 UTC (20 years, 7 months ago) by pje
File size: 825 byte(s)
Added new 'version' tool that automatically edits files to update version
information in them.  Just execute the 'version' file in the main PEAK
source directory.  (Use '--help' for help.)  You can use this tool with your
own projects by creating 'version' and 'version.dat' files in your project
directory, similar to the ones used by PEAK.  The 'version' file is a ZConfig
file that describes your project's version numbering scheme(s), formats,
and the files that need to be edited, while the 'version.dat' file contains
the current version number values.  Source for the tool, including the
configuration file schema, is in the 'peak.running.tools.version' package.
(Error handling and documentation, alas, are still minimal.)

Also, bumped PEAK version stamps to 0.5a3, using the new tool.  (Yay!)
#!invoke peak version-config

<Scheme default>
    DefaultFormat full
    part major
    part minor
    part status choice alpha beta "release candidate" final
    part build
    part date   timestamp

    <Formats>
    trailer   remap status "a%(build)s" "b%(build)s" "c%(build)s" "%(dot-maint)s"
    dot-maint optional build ".%(build)s"
    full      "%(major)s.%(minor)s %(status)s %(build)s"
    short     "%(major)s.%(minor)s%(trailer)s"
    </Formats>
</Scheme>

<Module>
    Name PEAK

    <Edit>
    File setup.py
    Match 'PACKAGE_VERSION = "%(short)s"'
    </Edit>

    <Edit>
    File README.txt
    File INSTALL.txt
    Match "PEAK Release %(full)s"
    Match Optional 'As of version %(short)s,'
    </Edit>

    <Edit>
    File docs/core_tutorial/tut.tex
    Match "\release{%(short)s}"
    </Edit>
</Module>


cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help