[all] Removing Babel from requirements.txt

Dmitry Tantsur dtantsur at redhat.com
Fri Apr 17 13:35:51 UTC 2020


Hi folks,

Many of the projects have [1] Babel in requirements.txt. I'm not sure why
it was needed initially, but now Babel is only used in the translation
infrastructure to manage the catalogs. Particularly, it's not imported in
runtime by anything (oslo.i18n has recently removed [2] its usage). The
problem is, Babel weighs nearly 30MiB (estimated on a venv), making it
probably the heaviest dependency we have.

According to amotoki, we don't need Babel anywhere in the requirements,
since the translation infrastructure installs it explicitly [3][4]. Sphinx
has a requirement on Babel, so doc and release note builds will be fine as
well. I suggest that all projects remove an explicit requirement on Babel
completely.

I've started proposing changes [5] to implement it for repositories that
are used by ironic projects (since it's my immediate area of interest). I'd
appreciate help with the others.

Dmitry

[1]
http://codesearch.openstack.org/?q=Babel&i=nope&files=requirements.txt&repos=
[2] https://review.opendev.org/720550
[3]
https://opendev.org/openstack/project-config/src/branch/master/playbooks/translation/pre.yaml
[4]
https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-babel/tasks/main.yaml#L35
[5] https://review.opendev.org/#/q/topic:no-babel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200417/b7bbca5e/attachment.html>


More information about the openstack-discuss mailing list