RAPTOR v18.4: Исправлена отчетность, активированы выходные

This commit is contained in:
root
2026-04-18 23:26:45 +03:00
commit ef0958239e
312 changed files with 54247 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import re
import sys
def set_version(new_value: str, constant_name: str, file_path: str) -> None:
with open(file_path, "r") as file:
file_data = file.read()
constant_pattern = re.compile(rf'{constant_name}\s*=\s*["\'].*?["\']', re.MULTILINE)
file_data = constant_pattern.sub(f'{constant_name} = "{new_value}"', file_data)
with open(file_path, "w") as file:
file.write(file_data)
def main() -> None:
version = sys.argv[1]
set_version(version, "__version__", "t_tech/invest/__init__.py")
set_version(version, "APP_VERSION", "t_tech/invest/constants.py")
if __name__ == "__main__":
main()