Go to file
Álvaro Mondéjar 57a5dd9c3d
Remove unnecessary option '--modified' from pre-commit hook configuration. (#88)
2020-10-21 00:43:56 +02:00
powrap Fix pofiles discovering logic in '--modified' option when files are renamed. (#86) 2020-10-14 13:27:13 +02:00
tests Handle file errors (#74) 2020-09-29 17:04:53 +02:00
.gitignore Document dependencies, and add pinned setup.cfg dependencies in requirements-dev.txt via pip-compile. 2020-10-07 21:25:12 +02:00
.pre-commit-hooks.yaml Remove unnecessary option '--modified' from pre-commit hook configuration. (#88) 2020-10-21 00:43:56 +02:00
.travis.yml A minimum test set 2019-12-10 10:09:21 +01:00
LICENSE Initial commit 2017-05-24 22:41:55 +02:00
MANIFEST.in Initial commit 2017-05-24 22:41:55 +02:00
README.rst Added poutils section to README (#87) 2020-10-14 18:25:19 +02:00
requirements-dev.in Document dependencies, and add pinned setup.cfg dependencies in requirements-dev.txt via pip-compile. 2020-10-07 21:25:12 +02:00
requirements-dev.txt Bump tox from 3.15.2 to 3.20.1 (#83) 2020-10-12 10:47:21 +02:00
requirements.txt Bump tqdm from 4.50.1 to 4.50.2 (#84) 2020-10-11 17:22:38 +02:00
setup.cfg setup.py to setup.cfg 2019-11-26 22:32:25 +01:00
setup.py setup.py to setup.cfg 2019-11-26 22:32:25 +01:00
tox.ini A minimum test set 2019-12-10 10:09:21 +01:00

README.rst

powrap

build pypi

Script to fix indentation of given .po files. If --modified is given, it will only fix modified files according to git (usefull if your .po files are versionned).

if --quiet is given, the progress bar will not be shown

Powrap is part of poutils!

Poutils (.po utils) is a metapackage to easily install useful Python tools to use with po files and powrap is a part of it! Go check out Poutils to discover the other tools!

Dependencies

powrap relies on msgcat from gettext so you'll have to install gettext first, for example on Debian run:

apt install gettext

Contributing

Start by creating a venv and pip install -r requirements-dev.txt in it.

To run the tests, use tox -p auto.

To install powrap in the current venv run pip install -e ..

Dependencies

We're using pip-tools to pin our dependencies, but in the setup.cfg our dependencies are not pinned, the goal is to ensure powrap can easily be installed along with other tools.

Dependencies pinning is only done to have a reproducible development environment and corresponding env in the CI:

pip-compile setup.py  # generates requirements.txt
pip-compile requirements-dev.in  # generates requirements-dev.txt

It's possible to upgrade pinned dependencies with the --upgrade flag of pip-compile.