Find and properly reindent .po files.
Project description
powrap
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.
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
File details
Details for the file powrap-1.0.0.tar.gz
.
File metadata
- Download URL: powrap-1.0.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec221a45c4ea65cbd71e03845da1a4789ab8dd5a068de39c652ee780eb74697 |
|
MD5 | 3a59eef90d36b9a486ee728281590fd6 |
|
BLAKE2b-256 | 70125758015976c39cec1f4551410c3a12db70ebe09ed44c789c57da19f76034 |
File details
Details for the file powrap-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: powrap-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30fd9f8fdc0a28d9fbd2903a907bdc580a49e66d8c2c2ea6efde75d369f8ad9a |
|
MD5 | 6cb6b8fba6d55a0a8d319fee86ec0f24 |
|
BLAKE2b-256 | a70036d1124779e84b8087181e470ee486e564ab4a46ddc5bef32febe37f19a3 |