updated version and version script

This commit is contained in:
Erik Fröjdh
2025-11-21 16:14:05 +01:00
parent a9de336817
commit e8402d9d36
2 changed files with 5 additions and 3 deletions

View File

@@ -1 +1 @@
2025.8.22
2025.11.21

View File

@@ -8,11 +8,12 @@ import sys
import os
import re
from datetime import datetime
from pathlib import Path
from packaging.version import Version, InvalidVersion
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
SCRIPT_DIR = Path(__file__).absolute().parent.parent
def is_integer(value):
try:
@@ -46,7 +47,8 @@ def get_version():
def write_version_to_file(version):
version_file_path = os.path.join(SCRIPT_DIR, "VERSION")
version_file_path = SCRIPT_DIR/"VERSION"
print(version_file_path)
with open(version_file_path, "w") as version_file:
version_file.write(version)
print(f"Version {version} written to VERSION file.")