From 493f2b530ed7ce1f8acb98c74aea620a7bb3d7a0 Mon Sep 17 00:00:00 2001 From: Luthaf Date: Tue, 26 Aug 2014 20:06:01 +0200 Subject: [PATCH] The __version__ attribute's value SHOULD be a string. http://legacy.python.org/dev/peps/pep-0396/#specification --- patacrep/__init__.py | 4 ++-- setup.py | 4 ++-- songbook | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/patacrep/__init__.py b/patacrep/__init__.py index 96f0724e..349000fd 100644 --- a/patacrep/__init__.py +++ b/patacrep/__init__.py @@ -5,8 +5,8 @@ import os # Version -__VERSION__ = (3, 7, 2) -__STR_VERSION__ = '.'.join([str(number) for number in __VERSION__]) +__TUPLE_VERSION__ = (3, 7, 2) +__version__ = '.'.join([str(number) for number in __TUPLE_VERSION__]) # Directory containing shared data (default templates, custom LaTeX packages, # etc.) diff --git a/setup.py b/setup.py index 9b387ae0..f45913fe 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ $ python setup.py install """ -from patacrep import __STR_VERSION__ +from patacrep import __version__ from setuptools import setup @@ -14,7 +14,7 @@ import site SETUP = {"name": 'patacrep', - "version": __STR_VERSION__, + "version": __version__, "description": 'Songbook compilation chain', "author": 'The Songbook team', "author_email": 'crep@team-on-fire.com', diff --git a/songbook b/songbook index 6c82f758..bcf015ee 100755 --- a/songbook +++ b/songbook @@ -12,7 +12,7 @@ import textwrap import sys from patacrep.build import SongbookBuilder, DEFAULT_STEPS -from patacrep import __STR_VERSION__ +from patacrep import __version__ from patacrep import errors from patacrep import encoding @@ -45,7 +45,7 @@ def argument_parser(args): parser = argparse.ArgumentParser(description="A song book compiler") parser.add_argument('--version', help='Show version', action='version', - version='%(prog)s ' + __STR_VERSION__) + version='%(prog)s ' + __version__) parser.add_argument('book', nargs=1, help=textwrap.dedent("""\ Book to compile.