contrib/release..py: the version information has moved to offlineimap.version
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
c13e0135a7
commit
fdb9974ab7
|
@ -204,9 +204,8 @@ class OfflineimapInfo(object):
|
|||
cmd = shlex.split("./offlineimap.py --version")
|
||||
return run(cmd).rstrip().decode(FS_ENCODING)
|
||||
|
||||
def editInit(self):
|
||||
return system("{} ./offlineimap/__init__.py".format(EDITOR))
|
||||
|
||||
def editVersion(self):
|
||||
return system("{} ./offlineimap/version.py".format(EDITOR))
|
||||
|
||||
|
||||
class User(object):
|
||||
|
|
|
@ -357,7 +357,7 @@ class Release(object):
|
|||
User.request("going to make a new release after {}".format(currentVersion))
|
||||
|
||||
def updateVersion(self):
|
||||
self.offlineimapInfo.editInit()
|
||||
self.offlineimapInfo.editVersion()
|
||||
|
||||
def checkVersions(self, current, new):
|
||||
if new == current:
|
||||
|
@ -405,7 +405,7 @@ class Release(object):
|
|||
announce.close()
|
||||
|
||||
def make(self):
|
||||
Git.add('offlineimap/__init__.py')
|
||||
Git.add('offlineimap/version.py')
|
||||
Git.add('Changelog.md')
|
||||
commitMsg = "v{}\n".format(newVersion)
|
||||
for tester in self.testers.getListOk():
|
||||
|
|
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@
|
|||
# IMAP synchronization
|
||||
# Module: installer
|
||||
# COPYRIGHT #
|
||||
# Copyright (C) 2002 - 2018 John Goerzen & contributors
|
||||
# Copyright (C) 2002 - 2020 John Goerzen & contributors
|
||||
#
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue