Skip to content

Commit

Permalink
0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
timbertson committed Aug 7, 2013
1 parent 0cec74b commit 9d761fd
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 16 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.10
0.10.1
2 changes: 1 addition & 1 deletion version.py
Expand Up @@ -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
Expand Down
49 changes: 35 additions & 14 deletions version.xml.template
@@ -1,22 +1,47 @@
<?xml version="1.0" ?>
<?xml version="1.0"?>
<?xml-stylesheet type='text/xsl' href='interface.xsl'?>
<interface
xmlns="http://zero-install.sourceforge.net/2004/injector/interface"
xmlns:compile="http://zero-install.sourceforge.net/2006/namespaces/0compile"
xmlns:release="http://zero-install.sourceforge.net/2007/namespaces/0release">

<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface" xmlns:compile="http://zero-install.sourceforge.net/2006/namespaces/0compile" xmlns:release="http://zero-install.sourceforge.net/2007/namespaces/0release">
<name>version</name>
<summary>version</summary>
<publish mode="featured|third-party|package|0tools|ignore" xmlns="http://gfxmonk.net/dist/0install"/>
<description>
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 \&lt;number\&gt;

To set the version number across all supported files.

version +

To increment the minor version number (e.g 0.1.2 -&gt; 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 -&gt; 0.2.0)

.. and so on for more plusses, for as many as you require.
</description>
<feed-for interface="http://gfxmonk.net/dist/0install/version.xml"/>

<group>
<environment insert="" mode="prepend" name="PYTHONPATH"/>
<command name="run" path="version.py">
</command>

<command name="test">
<runner command="run-py2" interface="http://gfxmonk.net/dist/0install/nosetests-runner.xml">
<arg>--with-doctest</arg>
Expand All @@ -27,13 +52,9 @@
<version before="3"/>
</requires>
<environment insert="" mode="prepend" name="PYTHONPATH"/>


<implementation version="{version}" released="{date}">
<implementation released="{date}" version="{version}">
<manifest-digest/>
<archive href="{archive}"/>
</implementation>
</group>

</interface>

0 comments on commit 9d761fd

Please sign in to comment.