From 951afa1a935cc9565c2c9864bde096496fb90b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Blondon?= Date: Sat, 14 May 2022 23:58:26 +0200 Subject: [PATCH] poetry compiles translation files --- build.py | 1 + pyproject.toml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/build.py b/build.py index dddacf4e..528bc9a0 100644 --- a/build.py +++ b/build.py @@ -1,5 +1,6 @@ import subprocess + def create_mo_files(setup_kwargs): print("Compile translations:") subprocess.run(["pybabel", "compile", "--directory", "canaille/translations"]) diff --git a/pyproject.toml b/pyproject.toml index 503d13f6..5f4cb2d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,6 +78,10 @@ exclude = [ "doc.*", ] +[tool.poetry.build] +generate-setup-file = false +script = "build.py" + [tool.coverage.run] source = [ "canaille",