-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
61 lines (49 loc) · 1.65 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[project]
name = "appgenerator"
version = "0.21"
description = "The YunoHost App Generator"
authors = [
{name = "YunoHost", email = "[email protected]"},
{name = "Lapineige", email = "[email protected]"},
]
readme = "README.md"
license = {text = "AGPL-3.0"}
requires-python = ">=3.9"
dependencies = [
"babel ~= 2.0",
"blinker ~= 1.9.0",
"click ~= 8.0",
"Flask ~= 3.1.0",
"flask-babel ~= 4.0",
"Flask-WTF ~= 1.2",
"itsdangerous ~= 2.2",
"Jinja2 ~= 3.1",
"MarkupSafe ~= 3.0",
"packaging == 24.2",
"pytz ~= 2024.2",
"Werkzeug ~= 3.1.0",
"WTForms ~= 3.2.0",
"gunicorn ~= 23.0",
]
[tool.setuptools]
py-modules = []
[tool.pdm]
distribution = false
[tool.pdm.scripts]
start.shell = "FLASK_ENV=development flask -A app.py --debug run"
fetch_assets.shell = "cd static && ./fetch_assets"
## For translation
# Extract the english sentences from the code, needed if you modified it
translation_extract = "pybabel extract --ignore-dirs venv -F babel.cfg -o translations/messages.pot ."
# Update the existing .po:
translation_update = "pybabel update -i translations/messages.pot -d translations"
# ... translate stuff in translations/<lang>/LC_MESSAGES/messages.po
# re-run the 'update' command to let Babel properly format the text
# then compile:
translation_compile = "pybabel compile -d translations"
update_translations.composite = [
"translation_extract", "translation_update", "translation_compile"
]
# If working on a new locale: initialize it (in this example: fr)
# needs to be run like `pdm run translation_create fr`
translation_create = "pybabel init -i translations/messages.pot -d translations -l"