Define version constants etc in __init__.py
Move central constant definitions into __init__.py. This does away with version.py which contained nothing else and __init__.py is where things like __VERSION__ are usually defined. This commit also changes code to use offlineimap.__version__ rather than offlineimap.version.__version__ as was before. Cleaned up some duplicate or unneeded imports while touching those, formatting import statements per PEP8 (one import per row). Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:

committed by
Nicolas Sebrecht

parent
229bcca491
commit
0b5b38d298
@ -1,5 +1,23 @@
|
||||
__all__ = ['OfflineImap']
|
||||
|
||||
__productname__ = 'OfflineIMAP'
|
||||
__version__ = "6.3.1"
|
||||
__copyright__ = "Copyright (C) 2002 - 2010 John Goerzen"
|
||||
__author__ = "John Goerzen"
|
||||
__author_email__= "john@complete.org"
|
||||
__description__ = "Disconnected Universal IMAP Mail Synchronization/Reader Support"
|
||||
__bigcopyright__ = """%(__productname__)s %(__version__)s
|
||||
%(__copyright__)s <%(__author_email__)s>""" % locals()
|
||||
|
||||
banner = __bigcopyright__ + """
|
||||
|
||||
This software comes with ABSOLUTELY NO WARRANTY; see the file
|
||||
COPYING for details. This is free software, and you are welcome
|
||||
to distribute it under the conditions laid out in COPYING."""
|
||||
|
||||
__homepage__ = "http://github.com/nicolas33/offlineimap"
|
||||
__license__ = "Licensed under the GNU GPL v2+ (v2 or any later version)."
|
||||
|
||||
# put this last, so we don't run into circular dependencies using
|
||||
# e.g. offlineimap.__version__.
|
||||
from offlineimap.init import OfflineImap
|
||||
|
||||
__all__ = ['ui', 'folder', 'repository', 'mbnames', 'threadutil', 'init']
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user