diff options
author | Michele Simionato <michele.simionato@gmail.com> | 2010-06-11 13:56:32 +0200 |
---|---|---|
committer | Michele Simionato <michele.simionato@gmail.com> | 2010-06-11 13:56:32 +0200 |
commit | 849146671104cda0b95d4a80ccc8c0e9ce0410dc (patch) | |
tree | 51173b0b6835d10812770add166501872efcd768 | |
parent | f0f53be87f5cf5a3c7f30136a27401a68114baa5 (diff) | |
download | micheles-849146671104cda0b95d4a80ccc8c0e9ce0410dc.tar.gz |
Fixed the installation procedure to automatically download argparse if needed;
bumped release number to 0.4.3
-rw-r--r-- | plac/CHANGES.txt | 6 | ||||
-rw-r--r-- | plac/README.txt | 4 | ||||
-rw-r--r-- | plac/plac.py | 2 | ||||
-rw-r--r-- | plac/setup.py | 11 |
4 files changed, 16 insertions, 7 deletions
diff --git a/plac/CHANGES.txt b/plac/CHANGES.txt index 2fb6f07..84cdaea 100644 --- a/plac/CHANGES.txt +++ b/plac/CHANGES.txt @@ -1,7 +1,11 @@ HISTORY ---------- -0.4.1. Changed the default formatting class and fixed a bug in the +0.4.3 Fixed the installation procedure to automatically download argparse + if needed (2010-06-11) +0.4.2 Added missing .help files, made the tests generative and added a + note about Clap in the documentation (2010-06-04) +0.4.1 Changed the default formatting class and fixed a bug in the display of the default arguments. Added more stringent tests. (2010-06-03) 0.4.0 abbrev is now optional. Added a note about CLIArgs and opterate. Added keyword arguments recognition. ``plac.call`` now returns the diff --git a/plac/README.txt b/plac/README.txt index 6c5d887..0e23cc7 100644 --- a/plac/README.txt +++ b/plac/README.txt @@ -5,7 +5,7 @@ plac, the easiest command line arguments parser in the world :E-mail: michele.simionato@gmail.com :Requires: Python 2.3+ :Download page: http://pypi.python.org/pypi/plac -:Installation: ``easy_install plac`` +:Installation: ``easy_install -U plac`` :License: BSD license Installation @@ -15,7 +15,7 @@ If you are lazy, just perform :: - $ easy_install plac + $ easy_install -U plac which will install just the module on your system. Notice that Python 3 requires the easy_install version of the distribute_ project. diff --git a/plac/plac.py b/plac/plac.py index 33dc85f..d3c782b 100644 --- a/plac/plac.py +++ b/plac/plac.py @@ -29,7 +29,7 @@ See plac/doc.html for the documentation. """ # this module should be kept Python 2.3 compatible -__version__ = '0.4.2' +__version__ = '0.4.3' import re, sys, inspect, argparse diff --git a/plac/setup.py b/plac/setup.py index ca34c5b..ea88431 100644 --- a/plac/setup.py +++ b/plac/setup.py @@ -3,11 +3,16 @@ try: except ImportError: from distutils.core import setup import os.path -import plac + +def getversion(fname): + "Get the __version__ without importing plac" + for line in open(fname): + if line.startswith('__version__'): + return eval(line[13:]) if __name__ == '__main__': - setup(name=plac.__name__, - version=plac.__version__, + setup(name='plac', + version=getversion(os.path.join(os.path.dirname(__file__),'plac.py')), description='The easiest command line arguments parser in the world', long_description=open('README.txt').read(), author='Michele Simionato', |