From db7192f403003fd9567a98c718869b01232ba571 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 28 Feb 2026 13:57:27 +0100 Subject: chore: updater tools improvements. Signed-off-by: Amlal El Mahrouss --- .gitignore | 2 ++ tools/__init__.py | 7 +++++++ tools/updater.py | 9 ++------- updater.sh | 6 ++++++ 4 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 tools/__init__.py create mode 100755 updater.sh diff --git a/.gitignore b/.gitignore index 2a1a866..2364b33 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,8 @@ .claude/ +__pycache__/ + build/ doc/html/ diff --git a/tools/__init__.py b/tools/__init__.py new file mode 100644 index 0000000..eeef556 --- /dev/null +++ b/tools/__init__.py @@ -0,0 +1,7 @@ +import updater + +if __name__ == '__main__': + updater.start() + + + diff --git a/tools/updater.py b/tools/updater.py index 1016275..afb32f5 100755 --- a/tools/updater.py +++ b/tools/updater.py @@ -1,5 +1,3 @@ -#! /usr/bin/python3 - # Copyright 2026, Amlal El Mahrouss and Ne.org contributors. # Open C++ Libraries is licensed under BSL-1.0 @@ -14,14 +12,11 @@ class UpdateFunctor: system("git commit -s -S") -def main(): + +def start(): functor = UpdateFunctor() print("INFO: Updater: Functor called") -if __name__ == '__main__': - main() - - diff --git a/updater.sh b/updater.sh new file mode 100755 index 0000000..c22c9a9 --- /dev/null +++ b/updater.sh @@ -0,0 +1,6 @@ +#! /bin/sh + +python3 ./tools/__init__.py + + + -- cgit v1.2.3