Metadata-Version: 2.1
Name: flit-gettext
Version: 0.1.0
Summary: Compiling gettext i18n messages during project bundling.
Keywords: flit,pep518,build,packaging,gettext
Author-email: Johannes Maron <johannes@maron.family>
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: BSD License
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: flit-core~=3.5
Requires-Dist: flit-scm ; extra == "scm"
Requires-Dist: pytest ; extra == "test"
Requires-Dist: pytest-cov ; extra == "test"
Requires-Dist: flit-scm ; extra == "test"
Requires-Dist: build ; extra == "test"
Requires-Dist: wheel ; extra == "test"
Project-URL: Changelog, https://github.com/codingjoe/flit-gettext/releases
Project-URL: Project-URL, https://github.com/codingjoe/flit-gettext
Provides-Extra: scm
Provides-Extra: test

# 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!**

