Skip to content

Commit

Permalink
Correct typo and come up with a better way to handle library version.
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurp committed Jul 8, 2016
1 parent ad0bb33 commit 5a621c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions libzilla/basecommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"""The BaseCommand class is an entry point into the `lzilla' command which
dispatches keywords to sub commands."""

VERSION='1.0'

class BaseCommand:
"""lzilla is a tool for managing Bugzilla bug reports.
All communications are carried out using
Bugzilla REST API over the HTTPS scheme.
the Bugzilla REST API over the HTTPS scheme.
Usage:
lzilla [-h|--help] <command> [<args>...]
Expand All @@ -26,7 +27,7 @@ class BaseCommand:
def __init__(self):
args = docopt(
BaseCommand.__doc__,
version='0.1',
version=VERSION,
help=True,
options_first=True
)
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Always prefer setuptools over distutils
from setuptools import setup
from libzilla.basecommand import VERSION

# To use a consistent encoding
from codecs import open
Expand All @@ -17,7 +18,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1.0',
version=VERSION,

description='Libzilla Python library',
long_description=long_description,
Expand Down

0 comments on commit 5a621c8

Please sign in to comment.