Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codingjoe/flit-gettext
Compiling gettext i18n messages during project bundling.
https://github.com/codingjoe/flit-gettext
build flit gettext packaging pep518
Last synced: about 2 months ago
JSON representation
Compiling gettext i18n messages during project bundling.
- Host: GitHub
- URL: https://github.com/codingjoe/flit-gettext
- Owner: codingjoe
- License: bsd-2-clause
- Created: 2023-10-11T08:18:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-29T03:03:17.000Z (9 months ago)
- Last Synced: 2024-05-02T05:54:33.933Z (9 months ago)
- Topics: build, flit, gettext, packaging, pep518
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Flit gettext
[![PyPi Version](https://img.shields.io/pypi/v/flit-gettext.svg)](https://pypi.python.org/pypi/flit-gettext/)
[![Test Coverage](https://codecov.io/gh/codingjoe/flit-gettext/branch/main/graph/badge.svg)](https://codecov.io/gh/codingjoe/flit-gettext)
[![GitHub License](https://img.shields.io/github/license/codingjoe/flit-gettext)](https://raw.githubusercontent.com/codingjoe/flit-gettext/main/LICENSE)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`:```toml
# 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!**