Skip to content

Commit 151cfe9

Browse files
Review
1 parent 9c017a1 commit 151cfe9

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.github/workflows/pypi-package.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ jobs:
2222

2323
steps:
2424
- uses: actions/checkout@v4
25+
- uses: actions/setup-python@v5
26+
27+
- name: Compile translations
28+
run: |
29+
pip install --upgrade pip
30+
pip install -r requirements.txt
31+
python babel_runner.py compile
2532
2633
- uses: hynek/build-and-inspect-python-package@v2
2734

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ coverage.xml
4747
.hypothesis/
4848

4949
# Translations
50+
*.mo
5051
*.pot
5152

5253
# Django stuff:

babel_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
MAPPING_FILE = ".babel.cfg"
1616

1717
PROJECT_DIR = Path(__file__).resolve().parent
18-
PYPROJECT_TOML = PROJECT_DIR / "pyproject.toml"
18+
PYPROJECT_TOML = Path(PROJECT_DIR, "pyproject.toml")
1919
INIT_PY = PROJECT_DIR / SOURCE_DIR / "__init__.py"
20-
LOCALES_DIR = f"{SOURCE_DIR}/locale"
20+
LOCALES_DIR = Path(f"{SOURCE_DIR}", "locale")
2121
POT_FILE = Path(LOCALES_DIR, f"{DOMAIN}.pot")
2222

2323

-2.13 KB
Binary file not shown.

0 commit comments

Comments
 (0)