forked from Github-Mirrors/canaille
poetry compiles translation files
This commit is contained in:
parent
ee2135963e
commit
951afa1a93
2 changed files with 5 additions and 0 deletions
1
build.py
1
build.py
|
@ -1,5 +1,6 @@
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
def create_mo_files(setup_kwargs):
|
def create_mo_files(setup_kwargs):
|
||||||
print("Compile translations:")
|
print("Compile translations:")
|
||||||
subprocess.run(["pybabel", "compile", "--directory", "canaille/translations"])
|
subprocess.run(["pybabel", "compile", "--directory", "canaille/translations"])
|
||||||
|
|
|
@ -78,6 +78,10 @@ exclude = [
|
||||||
"doc.*",
|
"doc.*",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.poetry.build]
|
||||||
|
generate-setup-file = false
|
||||||
|
script = "build.py"
|
||||||
|
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
source = [
|
source = [
|
||||||
"canaille",
|
"canaille",
|
||||||
|
|
Loading…
Reference in a new issue