From 9d761fdcca375bb6e26c634e1521a8ba03c141c6 Mon Sep 17 00:00:00 2001 From: Tim Cuthbertson Date: Thu, 8 Aug 2013 09:41:56 +1000 Subject: [PATCH] 0.10.1 --- VERSION | 2 +- version.py | 2 +- version.xml.template | 49 +++++++++++++++++++++++++++++++------------- 3 files changed, 37 insertions(+), 16 deletions(-) diff --git a/VERSION b/VERSION index 688abaa..71172b4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.10 \ No newline at end of file +0.10.1 \ No newline at end of file diff --git a/version.py b/version.py index f3c8ed5..aa761e8 100755 --- a/version.py +++ b/version.py @@ -128,7 +128,7 @@ def parse(cls, number, desc=None, coerce=False, expand_symbolic=False): if expand_symbolic: if number.lower() == 'date': import time - return cls.parse("0." + time.strftime("%Y%M%d.%H%M"), desc=desc) + return cls.parse("0." + time.strftime("%Y%m%d.%H%M"), desc=desc) if coerce: number = number.lower() # combine lonely suffixes into their surrounding numbers diff --git a/version.xml.template b/version.xml.template index 006b10c..3d0faca 100644 --- a/version.xml.template +++ b/version.xml.template @@ -1,22 +1,47 @@ - + - - + version version - +version parses common files to find and change +the current version number of your project. + +Supported file names are: + + - VERSION (obviously) + - setup.py (python setuptools) + - conf.py (sphinx configuration) + +.. but new file formats can be added fairly easily when required. + +# Usage: + + version + +To print out your current version number(s) (one line per file). + + version \<number\> + +To set the version number across all supported files. + + version + + +To increment the minor version number (e.g 0.1.2 -> 0.1.3) +and save the results to every supported file. + + version ++ + +To increment the second-most minor version number +(e.g 0.1.2 -> 0.2.0) + +.. and so on for more plusses, for as many as you require. - - --with-doctest @@ -27,13 +52,9 @@ - - - + - -