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",