From b826f6daac9f9bd85e5eb2924871f6b9ebdde578 Mon Sep 17 00:00:00 2001 From: "wu.chunyang" Date: Sun, 21 Jun 2020 18:27:45 +0800 Subject: [PATCH] Remove translation sections from setup.cfg These translation sections are not needed anymore, Babel can generate translation files without them. Remove babel.cfg as well, this is the default role and not needed anymore. also remove Babel from requirements[1] [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html Change-Id: Iead96312102da530a006fc259bab80ad37e55b76 --- babel.cfg | 1 - lower-constraints.txt | 1 - setup.cfg | 14 -------------- 3 files changed, 16 deletions(-) delete mode 100644 babel.cfg diff --git a/babel.cfg b/babel.cfg deleted file mode 100644 index efceab818b..0000000000 --- a/babel.cfg +++ /dev/null @@ -1 +0,0 @@ -[python: **.py] diff --git a/lower-constraints.txt b/lower-constraints.txt index 448c30948c..5a4377720e 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -4,7 +4,6 @@ amqp==2.2.2 appdirs==1.4.3 asn1crypto==0.24.0 astroid==1.3.8 -Babel==2.3.4 bandit==1.1.0 bashate==0.5.1 bcrypt==3.1.4 diff --git a/setup.cfg b/setup.cfg index 2e8a0f164f..36d7ed8738 100644 --- a/setup.cfg +++ b/setup.cfg @@ -78,17 +78,3 @@ oslo.config.opts.defaults = oslo.policy.policies = sahara = sahara.common.policies:list_rules - -[extract_messages] -keywords = _ gettext ngettext l_ lazy_gettext -mapping_file = babel.cfg -output_file = sahara/locale/sahara.pot - -[compile_catalog] -directory = sahara/locale -domain = sahara - -[update_catalog] -domain = sahara -output_dir = sahara/locale -input_file = sahara/locale/sahara.pot