Skip to content

Add script for handling translations #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add tomli import to support python<3.11
  • Loading branch information
rffontenelle committed Aug 3, 2024
commit e3e08ebcc6c1201302d73808c7fd8d324501af55
10 changes: 9 additions & 1 deletion babel_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@
import subprocess
from pathlib import Path

import tomllib
try:
import tomllib
except ImportError:
try:
import tomli as tomllib
except ImportError as ie:
raise ImportError(
"tomli or tomllib is required to parse pyproject.toml"
) from ie

PROJECT_DIR = Path(__file__).resolve().parent

Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# for babel_runner.py
setuptools
Babel
Jinja2
tomli; python_version < "3.10"