Add python-cwcwidth to depends
Description:
PO-file operations using the class loader translate/storage/po.py will default to use translate/storage/pypo.py if the environment variable USECPO is not set (which is not by default). Setting USECPO=1 or 2 will use internal implementation not requiring dependency. Without USECPO, that pypo.py tries to import cwcwidth (python-cwcwidth package at official repositories).
Not setting the environment variable USECPO causes the tools to fail raising ModuleNotFoundError
.
Additional info:
- package version(s): translate-toolkit 3.14.5-1
- config and/or log files:
- link to upstream bug report, if any:
Steps to reproduce:
po2tmx -i path/to/input/file.po -o path/to/output/file.tmx
- See raised exception:
Traceback (most recent call last):
File "/usr/bin/po2tmx", line 5, in <module>
from translate.convert.po2tmx import main
File "/usr/lib/python3.13/site-packages/translate/convert/po2tmx.py", line 30, in <module>
from translate.storage import po, tmx
File "/usr/lib/python3.13/site-packages/translate/storage/po.py", line 42, in <module>
from translate.storage.pypo import * # noqa: F403
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/translate/storage/pypo.py", line 34, in <module>
from cwcwidth import wcswidth, wcwidth
ModuleNotFoundError: No module named 'cwcwidth'