Skip to content

Commit 6c9b2c6

Browse files
committed
Fix __version__
1 parent 406431e commit 6c9b2c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

chdb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# UDF script path will be f"{g_udf_path}/{func_name}.py"
99
g_udf_path = ""
1010

11-
chdb_version = (0, 6, 0)
11+
chdb_version = ('0', '6', '0')
1212
if sys.version_info[:2] >= (3, 7):
1313
# get the path of the current file
1414
current_path = os.path.dirname(os.path.abspath(__file__))

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ def get_latest_git_tag(minor_ver_auto=False):
5858
print(e)
5959
raise
6060

61-
# replace the version in chdb/__init__.py, which is `chdb_version = (0, 1, 0)` by default
62-
# regex replace the version string `chdb_version = (0, 1, 0)` with version parts
61+
# replace the version in chdb/__init__.py, which is `chdb_version = ('0', '1', '0')` by default
62+
# regex replace the version string `chdb_version = ('0', '1', '0')` with version parts
6363
def fix_version_init(version):
6464
# split version string into parts
6565
p1, p2, p3 = version.split('.')
6666
init_file = os.path.join(script_dir, "chdb", "__init__.py")
6767
with open(init_file, "r+") as f:
6868
init_content = f.read()
69-
# regex replace the version string `chdb_version = (0, 1, 0)`
69+
# regex replace the version string `chdb_version = ('0', '1', '0')`
7070
regPattern = r"chdb_version = \(\'\d+\', \'\d+\', \'\d+\'\)"
7171
init_content = re.sub(regPattern, f"chdb_version = ('{p1}', '{p2}', '{p3}')", init_content)
7272
f.seek(0)

0 commit comments

Comments
 (0)