summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-02-20 17:15:47 +0200
committerLars Wirzenius <liw@liw.fi>2016-02-20 17:16:31 +0200
commit067c7d39988bb1bb81b4cd5e8f90eadee1b7a12a (patch)
treed2735945887314f813177dbc7f570a1a6fd22406
parent510a8867c44b83a2f6f5d279749a4713c2c06081 (diff)
downloadcliapp-067c7d39988bb1bb81b4cd5e8f90eadee1b7a12a.tar.gz
Move __version__ into version.py
This should silence pep8 version 1.6 and later. Also allows me to use my bumper tool for releases. Thank you to Michel Alexandre Salim for reporting the pep8 issue.
-rw-r--r--cliapp/__init__.py4
-rw-r--r--cliapp/version.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/cliapp/__init__.py b/cliapp/__init__.py
index 7e0aca1..23fd939 100644
--- a/cliapp/__init__.py
+++ b/cliapp/__init__.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2011 Lars Wirzenius
+# Copyright (C) 2011-2016 Lars Wirzenius
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -27,7 +27,7 @@ Homepage: http://liw.fi/cliapp/
'''
-__version__ = '1.20160109'
+from .version import __version__, __version_info__
from .util import MemoryProfileDumper
diff --git a/cliapp/version.py b/cliapp/version.py
new file mode 100644
index 0000000..0c4e276
--- /dev/null
+++ b/cliapp/version.py
@@ -0,0 +1,2 @@
+__version__ = '1.20160109+git'
+__version_info__ = (1, 20160109, '+git')