versioning: avoid confusing pip by spliting out __version__ with __revision__
Python tools are not used to a __revision__. Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
36375daee6
commit
281bcefb52
@ -1,15 +1,13 @@
|
||||
__all__ = ['OfflineImap']
|
||||
|
||||
__productname__ = 'OfflineIMAP'
|
||||
__version__ = "6.7.0"
|
||||
__revision__ = "-rc1" # Expecting "-rcN" or "" for stable releases.
|
||||
__bigversion__ = __version__ + __revision__
|
||||
__version__ = "6.7.0-rc1" # Expecting "-rcN" or "" for stable releases.
|
||||
__copyright__ = "Copyright 2002-2015 John Goerzen & contributors"
|
||||
__author__ = "John Goerzen"
|
||||
__author_email__= "offlineimap-project@lists.alioth.debian.org"
|
||||
__description__ = "Disconnected Universal IMAP Mail Synchronization/Reader Support"
|
||||
__license__ = "Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)"
|
||||
__bigcopyright__ = """%(__productname__)s %(__bigversion__)s
|
||||
__bigcopyright__ = """%(__productname__)s %(__version__)s
|
||||
%(__license__)s""" % locals()
|
||||
__homepage__ = "http://www.offlineimap.org"
|
||||
|
||||
|
@ -54,7 +54,7 @@ class OfflineImap:
|
||||
return self.__sync(options)
|
||||
|
||||
def __parse_cmd_options(self):
|
||||
parser = OptionParser(version=offlineimap.__bigversion__,
|
||||
parser = OptionParser(version=offlineimap.__version__,
|
||||
description="%s.\n\n%s" %
|
||||
(offlineimap.__copyright__,
|
||||
offlineimap.__license__))
|
||||
|
Loading…
Reference in New Issue
Block a user