fix: python apps
Deploy and restart modified services / deploy (push) Successful in 23s
Deploy bin / deploy (push) Successful in 1s

This commit is contained in:
Benjamin Labrecque
2026-07-15 14:13:50 +02:00
parent 00f648e909
commit ff6cede146
10 changed files with 38 additions and 16 deletions
+1 -1
View File
@@ -36,4 +36,4 @@ uv sync --frozen --project ${APP_DIR}
source ${APP_DIR}/.venv/bin/activate
# TODO: use `exec python3 ...` here?
python3 -u -B ${APP_DIR}/src/agebd_${SVC_NAME_LOWER_UNDERSCORES}/main.py
python -u -B -m agebd_${SVC_NAME_LOWER_UNDERSCORES}.main
+4
View File
@@ -9,6 +9,10 @@ default:
test-all:
find services -name "pyproject.toml" -execdir uv run pytest \;
# Sync all envs
sync-all:
find services -name "pyproject.toml" -execdir uv sync \;
# Run tests for a SPECIFIC service (e.g., 'just test master')
test service:
cd services/{{service}}/current/app && uv run pytest
+2 -12
View File
@@ -2,11 +2,7 @@
name = "agebd"
version = "0.1.0"
description = "SLS HLA Framework"
readme = "README.md"
requires-python = ">=3.9"
authors = [
{ name = "" }
]
dependencies = [
"typer>=0.23.2",
@@ -21,14 +17,8 @@ dev = [
]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
package = true
@@ -20,6 +20,13 @@ dev = [
# machines (see CI/CD in .gitea/workflows)
agebd = { path = "../../../../packages/agebd", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
package = true
[tool.pytest.ini_options]
pythonpath = ["src"]
env = [
+1 -1
View File
@@ -30,7 +30,7 @@ dev = [
[[package]]
name = "agebd-dbpm3curr"
version = "0.1.0"
source = { virtual = "." }
source = { editable = "." }
dependencies = [
{ name = "agebd" },
{ name = "numpy", version = "2.0.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },
@@ -20,6 +20,13 @@ dev = [
# machines (see CI/CD in .gitea/workflows)
agebd = { path = "../../../../packages/agebd", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
package = true
[tool.pytest.ini_options]
pythonpath = ["src"]
env = [
+1 -1
View File
@@ -30,7 +30,7 @@ dev = [
[[package]]
name = "agebd-master"
version = "0.1.0"
source = { virtual = "." }
source = { editable = "." }
dependencies = [
{ name = "agebd" },
{ name = "pyyaml" },
@@ -21,6 +21,13 @@ dev = [
# machines (see CI/CD in .gitea/workflows)
agebd = { path = "../../../../packages/agebd", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
package = true
[tool.pytest.ini_options]
pythonpath = ["src"]
env = [
+1 -1
View File
@@ -30,7 +30,7 @@ dev = [
[[package]]
name = "agebd-nturns"
version = "0.1.0"
source = { virtual = "." }
source = { editable = "." }
dependencies = [
{ name = "agebd" },
{ name = "numpy", version = "2.0.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },
@@ -19,6 +19,13 @@ dev = [
# machines (see CI/CD in .gitea/workflows)
agebd = { path = "../../../../packages/agebd", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
package = true
[tool.pytest.ini_options]
pythonpath = ["src"]
env = [