Browse Source

The __version__ attribute's value SHOULD be a string.

http://legacy.python.org/dev/peps/pep-0396/#specification
pull/66/merge
Luthaf 10 years ago
parent
commit
493f2b530e
  1. 4
      patacrep/__init__.py
  2. 4
      setup.py
  3. 4
      songbook

4
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.)

4
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',

4
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.

Loading…
Cancel
Save