From fdb9974ab7dcc013defef163966693abd11daac7 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Wed, 22 Apr 2020 16:04:25 +0200 Subject: [PATCH] contrib/release..py: the version information has moved to offlineimap.version Signed-off-by: Nicolas Sebrecht --- contrib/helpers.py | 5 ++--- contrib/release.py | 4 ++-- setup.py | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/contrib/helpers.py b/contrib/helpers.py index e46e96d..c60b139 100644 --- a/contrib/helpers.py +++ b/contrib/helpers.py @@ -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): diff --git a/contrib/release.py b/contrib/release.py index 21d1ca6..ba25e16 100755 --- a/contrib/release.py +++ b/contrib/release.py @@ -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(): diff --git a/setup.py b/setup.py index 30be722..6757ba4 100644 --- a/setup.py +++ b/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