From a19f52c6cf49ac7d3b48556cdd2fad3d877f45b4 Mon Sep 17 00:00:00 2001 From: foxfire52 Date: Fri, 25 Oct 2024 15:36:44 +0200 Subject: Patch version.py --- g4f/version.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'g4f/version.py') diff --git a/g4f/version.py b/g4f/version.py index eda2b8fe..aa9c50ce 100644 --- a/g4f/version.py +++ b/g4f/version.py @@ -76,6 +76,7 @@ class VersionUtils: # Read from docker environment version = environ.get("G4F_VERSION") + version = "0.3.3.6" if version: return version @@ -116,4 +117,4 @@ class VersionUtils: except Exception as e: print(f'Failed to check g4f version: {e}') -utils = VersionUtils() \ No newline at end of file +utils = VersionUtils() -- cgit v1.2.3 From e605d4c4cbeab5b720a51cd14b37b7e7f4b3f66f Mon Sep 17 00:00:00 2001 From: foxfire52 Date: Sat, 26 Oct 2024 15:19:05 +0200 Subject: Remove patch version.py --- g4f/version.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'g4f/version.py') diff --git a/g4f/version.py b/g4f/version.py index aa9c50ce..eff72303 100644 --- a/g4f/version.py +++ b/g4f/version.py @@ -76,12 +76,10 @@ class VersionUtils: # Read from docker environment version = environ.get("G4F_VERSION") - version = "0.3.3.6" if version: return version - # Read from git repository - try: + # Read from git repository try: command = ["git", "describe", "--tags", "--abbrev=0"] return check_output(command, text=True, stderr=PIPE).strip() except CalledProcessError: -- cgit v1.2.3 From 751a979797d23e51b04ef167b383e7913a381831 Mon Sep 17 00:00:00 2001 From: foxfire52 Date: Sat, 26 Oct 2024 15:23:11 +0200 Subject: Update version.py --- g4f/version.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'g4f/version.py') diff --git a/g4f/version.py b/g4f/version.py index eff72303..403ce370 100644 --- a/g4f/version.py +++ b/g4f/version.py @@ -79,7 +79,8 @@ class VersionUtils: if version: return version - # Read from git repository try: + # Read from git repository + try: command = ["git", "describe", "--tags", "--abbrev=0"] return check_output(command, text=True, stderr=PIPE).strip() except CalledProcessError: -- cgit v1.2.3