Compiling gettext i18n messages during project bundling.
Project description
Flit gettext
Compiling gettext i18n messages during project bundling.
"Binary files should never be committed to a repository to promote transparency and security." That is why this project was created.
Usage
Simple, just add flit-gettext
to your pyproject.toml
build-system requirements and set the build-backend
:
# pyproject.toml
[build-system]
requires = [
"flit-gettext[scm]", # [scm] is optional
# …others, like wheel, etc.
]
# using flit-core as a base build-backend
build-backend = "flit_gettext.core"
# or using flit-scm as a base build-backend for git-based versioning
build-backend = "flit_gettext.scm"
# To use use flit-scm, you will need to include the optional dependency above.
Please make sure, your build system has gettext
installed.
If you ship wheels, those will include the compiled .mo
files.
That's it!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flit_gettext-1.0.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for flit_gettext-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29e643472113b4f350b0478383569ecf30773bba5873b6f33e34b367a9924b35 |
|
MD5 | de60ed043ca70f88eb899c7c99d93f84 |
|
BLAKE2b-256 | bf38c459b585008e58deba7ec94e151cb8b47cd5fa952b71b23086ca4bd3bbe9 |