Files
Jan Jasek da085404d4 Fix get-modulename.py to read packages from pyproject.toml
The propose-translation-update job is passing for some
plugins like neutron-vpnaas-dashboard, manila-ui, etc.
although it should fail (as for example for horizon)
because of missing pkg_resources, see ML:
https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.org/thread/IYJ5VEVNQOFZ6GQX5LEMX5PKHGROGZ5A/

The reason is that projects that migrated their package
configuration from setup.cfg to pyproject.toml or already
started with pyproject.toml broke translation extraction
in propose-translation-update job.
The get-modulename.py script only read [files] from setup.cfg
when entry is missing, it falls back to the project name
(e.g. “neutron-vpnaas-dashboard”) but the actual directory
is “neutron_vpnaas_dashboard” with underscores. This causes
pybabel to search an empty directory, silently extracting
zero translations.
The job passed but did nothing. It seems that some of the
plugins are missing hundreds of translations.

This patch updates get-modulename.py to also read
[tool.setuptools] packages from pyproject.toml and convert
hyphens to underscores.

Change-Id: I4e3bb4e205c8933419c0c0ba359a2f8a0b82ea1a
Signed-off-by: Jan Jasek <jjasek@redhat.com>
2026-04-02 02:18:48 +02:00
..