Alle Tasks/tools als Webservice oder CLI
|
|
há 7 meses atrás | |
|---|---|---|
| .vscode | há 9 meses atrás | |
| cognos11 | há 7 meses atrás | |
| cognos7 | há 7 meses atrás | |
| config | há 7 meses atrás | |
| database | há 9 meses atrás | |
| dist | há 7 meses atrás | |
| docs | há 11 meses atrás | |
| excel | há 7 meses atrás | |
| logviewer | há 1 ano atrás | |
| misc | há 7 meses atrás | |
| há 1 ano atrás | ||
| services | há 2 anos atrás | |
| status_client | há 11 meses atrás | |
| tests | há 7 meses atrás | |
| .gitignore | há 2 anos atrás | |
| .python-version | há 7 meses atrás | |
| README.md | há 7 meses atrás | |
| __init__.py | há 11 meses atrás | |
| backup.py | há 7 meses atrás | |
| c11.bat | há 2 anos atrás | |
| c11.py | há 10 meses atrás | |
| c11.spec | há 2 anos atrás | |
| c7.py | há 7 meses atrás | |
| db.bat | há 2 anos atrás | |
| db.py | há 7 meses atrás | |
| db.spec | há 2 anos atrás | |
| docker-compose.yml | há 2 anos atrás | |
| dump.json | há 2 anos atrás | |
| favicon.ico | há 2 anos atrás | |
| gctools.bat | há 9 meses atrás | |
| gctools.py | há 7 meses atrás | |
| gctools.spec | há 11 meses atrás | |
| main.py | há 2 anos atrás | |
| misc2.py | há 9 meses atrás | |
| mkdocs.yml | há 11 meses atrás | |
| pyproject.toml | há 7 meses atrás | |
| requirements.txt | há 11 meses atrás | |
| status.py | há 11 meses atrás | |
| tox.ini | há 2 anos atrás | |
| uv.lock | há 7 meses atrás | |
| uwsgi.ini | há 2 anos atrás | |
| xls.py | há 1 ano atrás |
Zunächst muss uv, der Python-Paketmanager, installiert werden:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Im Anschluss git-Repository klonen (am Beispiel von Ordner C:\Projekte - im Grunde beliebig):
cd C:\Projekte
git clone https://git.global-cube.com/GlobalCube/gctools.git
Git erstellt einen Unterordner C:\Projekte\gctools, in dem das gesamte Projekt abgelegt ist.
Jetzt müssen alle Requirements erfüllt werden: passende Python-Version, benötigte Module mit entsprechenden Abhängigkeiten.
Das übernimmt uv
cd C:\Projekte\gctools
uv run gctools.py
Die Konsole meldet dann Folgendes:
(gctools) C:\Projekte\gctools>uv run gctools.py
Usage: gctools.py [OPTIONS] COMMAND [ARGS]...
gctools.exe - Hilfe unter https://docs.global-cube.com/5_Tasks/3_gctools/
Version 1.0 vom 25.02.2025
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────╮
│ backup │
│ c11 │
│ c7 │
│ db │
│ misc │
│ excel │
│ status │
╰──────────────────────────────────────────────────────────────────────────────────╯
Das Repository ist nun bereit für die Bearbeitung.
Um das Package zu erstellen, muss lediglich die gctools.bat ausgeführt werden.
Damit werden alle Projektdateien und Module zu einer großen exe-Datei zusammengefasst.
Diese wird im Unterordner dist abgelegt.
In der gctools.bat ist noch ein Kopierbefehl für den Ordner P:\GCTools enthalten.
Hier sollte immer die neueste Version abgelegt werden.
Abgesehen von dieser Kurzanleitung ist die Dokumentation unter folgendem Link zu finden: https://docs.global-cube.com/5_Tasks/3_gctools/
Das entsprechende mkdocs-Repository liegt hier: https://github.com/Global-Cube/docs.git