From e3a9937778879a536bf3d6f6933b2a01c3f4ccf5 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 6 Dec 2024 14:06:29 -0500 Subject: [PATCH] Updated the version to show codeName which is provided by the current branch. --- .../commands/commands/announce_fenrir_version.py | 2 +- src/fenrirscreenreader/core/fenrirManager.py | 2 +- src/fenrirscreenreader/fenrirVersion.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fenrirscreenreader/commands/commands/announce_fenrir_version.py b/src/fenrirscreenreader/commands/commands/announce_fenrir_version.py index e2a80505..8e29064a 100644 --- a/src/fenrirscreenreader/commands/commands/announce_fenrir_version.py +++ b/src/fenrirscreenreader/commands/commands/announce_fenrir_version.py @@ -19,7 +19,7 @@ class command(): def run(self): try: - self.env['runtime']['outputManager'].presentText(f'Fenrir screen reader version {fenrirVersion.version}', interrupt=True) + self.env['runtime']['outputManager'].presentText(f'Fenrir screen reader version {fenrirVersion.version}-{fenrirVersion.codeName}', interrupt=True) except exception as e: self.env['runtime']['outputManager'].presentText(_('Version information is unavailable.'), interrupt=True) diff --git a/src/fenrirscreenreader/core/fenrirManager.py b/src/fenrirscreenreader/core/fenrirManager.py index ed6fb567..d7bf2ff8 100644 --- a/src/fenrirscreenreader/core/fenrirManager.py +++ b/src/fenrirscreenreader/core/fenrirManager.py @@ -47,7 +47,7 @@ class fenrirManager(): parser.add_argument( '-v', '--version', action='version', - version=f'Fenrir screen reader version {fenrirVersion.version}', + version=f'Fenrir screen reader version {fenrirVersion.version}-{fenrirVersion.codeName}', help='Show version information and exit' ) parser.add_argument( diff --git a/src/fenrirscreenreader/fenrirVersion.py b/src/fenrirscreenreader/fenrirVersion.py index e59e978b..95e8f2ec 100644 --- a/src/fenrirscreenreader/fenrirVersion.py +++ b/src/fenrirscreenreader/fenrirVersion.py @@ -4,4 +4,5 @@ # Fenrir TTY screen reader # By Chrys, Storm Dragon, and contributers. -version = '2024.12' +version = "2024.12.06" +codeName = "testing"