Metadata-Version: 2.4
Name: setuptools-compile-po
Version: 1.0.0
Summary: Compile po files to mo files.
Author-email: Zdeněk Böhm <zdenek.bohm@nic.cz>
License-Expression: MIT
Project-URL: Homepage, https://github.com/zbohm/setuptools-compile-po
Project-URL: Repository, https://github.com/zbohm/setuptools-compile-po
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Archiving :: Packaging
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: setuptools
Dynamic: license-file

# Setuptools compile po

Compile .po files to .mo files.

## Usage

Set in ``pyproject.toml``:

```toml
[build-system]
requires = ["setuptools", "setuptools-compile-po"]
...
```

This configuration compiles all ``.po`` files in the ``$package/locale`` folder.
Another path to the files is defined by the configuration:

```toml
[tool.setuptools_compile_po]
directory = "package/path/locale"
```

## Dependencies

The ``msgfmt`` command is used for compilation. It must be installed in the os.
For example, with the command ``apt install gettext``.
If you need to compile with a different command, you can define it with the ``msgfmt`` parameter:

```toml
[tool.setuptools_compile_po]
msgfmt = "command"
```
