Skip to content

Commit c5f4abc

Browse files
committed
Use flit-gettext to compile gettext in distributions
1 parent 08597e0 commit c5f4abc

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
- uses: actions/setup-python@v6
1313
with:
1414
python-version: "3.x"
15+
- run: sudo apt-get update && sudo apt-get install -y gettext
1516
- name: Install Python dependencies
1617
run: python -m pip install --upgrade pip build wheel twine readme-renderer
1718
- run: python -m build --sdist --wheel
@@ -26,7 +27,7 @@ jobs:
2627
- uses: actions/setup-python@v6
2728
with:
2829
python-version: "3.11"
29-
- run: sudo apt install -y python3-enchant
30+
- run: sudo apt-get update && sudo apt-get install -y gettext python3-enchant
3031
- run: python -m pip install sphinxcontrib-spelling
3132
- run: python -m pip install -e '.[docs]'
3233
- run: python -m sphinx -W -b spelling docs docs/_build
@@ -49,6 +50,7 @@ jobs:
4950
- uses: actions/setup-python@v6
5051
with:
5152
python-version: ${{ matrix.python-version }}
53+
- run: sudo apt-get update && sudo apt-get install -y gettext
5254
- run: python -m pip install -e '.[test]'
5355
- run: python -m pip install Django~=${{ matrix.django-version }}.0
5456
- run: python -m pytest
@@ -72,6 +74,7 @@ jobs:
7274
uses: actions/setup-python@v6
7375
with:
7476
python-version: ${{ matrix.python-version }}
77+
- run: sudo apt-get update && sudo apt-get install -y gettext
7578
- run: python -m pip install -e ".[test,wagtail]"
7679
- run: python -m pip install wagtail~=${{ matrix.wagtail-version }}
7780
- run: python -m pytest
@@ -100,6 +103,7 @@ jobs:
100103
with:
101104
python-version: ${{ matrix.python-version }}
102105
- uses: actions/checkout@v5
106+
- run: sudo apt-get update && sudo apt-get install -y gettext
103107
- run: python -m pip install -e ".[test,postgres]"
104108
- run: psql template1 -c "CREATE EXTENSION citext;"
105109
env:

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
- uses: actions/setup-python@v6
1212
with:
1313
python-version: "3.x"
14+
- run: sudo apt-get update && sudo apt-get install -y gettext
1415
- run: python -m pip install --upgrade pip build wheel
1516
- run: python -m build --sdist --wheel
1617
- uses: actions/upload-artifact@v5

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["flit_core>=3.2", "flit_scm", "wheel"]
3-
build-backend = "flit_scm:buildapi"
2+
requires = ["flit-gettext[scm]", "wheel"]
3+
build-backend = "flit_gettext.scm"
44

55
[project]
66
name = "django-mail-auth"

0 commit comments

Comments
 (0)