Setuptools gettext extension plugin
Project description
setuptools plugin for gettext
Compile .po files into .mo files.
This plugin adds build_mo, clean_mo and install_mo subcommands for
setup.py as well as hooking those into standard commands.
Usage
By default, setuptools_gettext compiles and installs mo files when there is a
po directory present that contains .po files.
The .mo files are installed adjacent to your package as package data in a subdirectory called locale.
You can override these settings in pyproject.toml:
[build-system]
requires = ["setuptools", "setuptools-gettext"]
...
[tool.setuptools-gettext]
# directory in which the .po files can be found
source_dir = "po"
# directory in which the generated .mo files are placed when building
build_dir = "breezy/locale"
Compilation tool
By default, either msgfmt or the translate-toolkit package is used to
compile the .po files into .mo files - whichever is available.
The --msgfmt option can be used to force the use of msgfmt, and the
--translate-toolkit option can be used to force the use of the
translate-toolkit.
At the moment, msgfmt is preferred. In the future, the translate-toolkit
will become the default.
You can use the translate-toolkit extra to install the translate-toolkit
package.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setuptools_gettext-0.1.16.tar.gz.
File metadata
- Download URL: setuptools_gettext-0.1.16.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aeae31fbf701e1a45e7e245867a07701e33ebe463994f105f496e832f6393f91
|
|
| MD5 |
9b3da8a4f0b9bd52b4de84ae1b43e4eb
|
|
| BLAKE2b-256 |
7fe69b5d065dd3ab416a00350f5321653e3b31bc56c104ad6d45fcc1c8c090bb
|
Provenance
The following attestation bundles were made for setuptools_gettext-0.1.16.tar.gz:
Publisher:
python-distributions.yml on breezy-team/setuptools-gettext
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
setuptools_gettext-0.1.16.tar.gz -
Subject digest:
aeae31fbf701e1a45e7e245867a07701e33ebe463994f105f496e832f6393f91 - Sigstore transparency entry: 652868467
- Sigstore integration time:
-
Permalink:
breezy-team/setuptools-gettext@a37094c89a586ddbaca879b68c43735092d1db9e -
Branch / Tag:
refs/tags/v0.1.16 - Owner: https://github.com/breezy-team
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-distributions.yml@a37094c89a586ddbaca879b68c43735092d1db9e -
Trigger Event:
push
-
Statement type:
File details
Details for the file setuptools_gettext-0.1.16-py3-none-any.whl.
File metadata
- Download URL: setuptools_gettext-0.1.16-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9240da0e77937390aa0a45432d9dc2635f61b298c2ca5178bd36ebe6fcdbf345
|
|
| MD5 |
b08cb93604fe43634bbc96bebc5a4c58
|
|
| BLAKE2b-256 |
fc19b1335ba439133281a9dd0bcc7df10486d7f8af71401672f5a3adc2c6aaa5
|
Provenance
The following attestation bundles were made for setuptools_gettext-0.1.16-py3-none-any.whl:
Publisher:
python-distributions.yml on breezy-team/setuptools-gettext
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
setuptools_gettext-0.1.16-py3-none-any.whl -
Subject digest:
9240da0e77937390aa0a45432d9dc2635f61b298c2ca5178bd36ebe6fcdbf345 - Sigstore transparency entry: 652868475
- Sigstore integration time:
-
Permalink:
breezy-team/setuptools-gettext@a37094c89a586ddbaca879b68c43735092d1db9e -
Branch / Tag:
refs/tags/v0.1.16 - Owner: https://github.com/breezy-team
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-distributions.yml@a37094c89a586ddbaca879b68c43735092d1db9e -
Trigger Event:
push
-
Statement type: