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")
|
cmd = shlex.split("./offlineimap.py --version")
|
||||||
return run(cmd).rstrip().decode(FS_ENCODING)
|
return run(cmd).rstrip().decode(FS_ENCODING)
|
||||||
|
|
||||||
def editInit(self):
|
def editVersion(self):
|
||||||
return system("{} ./offlineimap/__init__.py".format(EDITOR))
|
return system("{} ./offlineimap/version.py".format(EDITOR))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class User(object):
|
class User(object):
|
||||||
|
|
|
@ -357,7 +357,7 @@ class Release(object):
|
||||||
User.request("going to make a new release after {}".format(currentVersion))
|
User.request("going to make a new release after {}".format(currentVersion))
|
||||||
|
|
||||||
def updateVersion(self):
|
def updateVersion(self):
|
||||||
self.offlineimapInfo.editInit()
|
self.offlineimapInfo.editVersion()
|
||||||
|
|
||||||
def checkVersions(self, current, new):
|
def checkVersions(self, current, new):
|
||||||
if new == current:
|
if new == current:
|
||||||
|
@ -405,7 +405,7 @@ class Release(object):
|
||||||
announce.close()
|
announce.close()
|
||||||
|
|
||||||
def make(self):
|
def make(self):
|
||||||
Git.add('offlineimap/__init__.py')
|
Git.add('offlineimap/version.py')
|
||||||
Git.add('Changelog.md')
|
Git.add('Changelog.md')
|
||||||
commitMsg = "v{}\n".format(newVersion)
|
commitMsg = "v{}\n".format(newVersion)
|
||||||
for tester in self.testers.getListOk():
|
for tester in self.testers.getListOk():
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@
|
||||||
# IMAP synchronization
|
# IMAP synchronization
|
||||||
# Module: installer
|
# Module: installer
|
||||||
# COPYRIGHT #
|
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
|
Loading…
Reference in New Issue