Skip to content

Commit

Permalink
Compile *.mo files at release time. (#8)
Browse files Browse the repository at this point in the history
Instead of including them in the repository.
  • Loading branch information
icemac committed May 21, 2024
1 parent a4e8c23 commit 3205bec
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ parts/
pyvenv.cfg
testing.log
var/
*.mo
12 changes: 9 additions & 3 deletions .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@ fail-under = 86

[manifest]
additional-rules = [
"recursive-include src *.mo",
"recursive-include src *.po",
"recursive-include src *.pot",
"recursive-include src *.txt",
"recursive-include src *.zcml",
]

[check-manifest]
ignore-bad-ideas = [
"src/z3c/password/locales/*/LC_MESSAGES/z3c.password.mo",
[zest-releaser]
options = [
"prereleaser.before = zest.pocompile.available",
]

[git]
ignore = [
"*.mo",
]
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ CHANGES

- Add support for Python 3.11, 3.12.

- Compile ``*.mo`` files at release time instead of including them in the
repository.

- Drop support for Python 2.7, 3.5, 3.6.


Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ include buildout.cfg
include tox.ini

recursive-include src *.py
recursive-include src *.mo
recursive-include src *.po
recursive-include src *.pot
recursive-include src *.txt
Expand Down
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python

[zest.releaser]
prereleaser.before = zest.pocompile.available

[flake8]
doctests = 1

[check-manifest]
ignore =
.editorconfig
.meta.toml
ignore-bad-ideas =
src/z3c/password/locales/*/LC_MESSAGES/z3c.password.mo

[isort]
force_single_line = True
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 3205bec

Please sign in to comment.