Skip to content

Commit 61f49f3

Browse files
mesemusutnapischtim
authored andcommitted
fix: dashes no longer work in setup.cfg babel options
From 78.1.0 we seem to need to write `mapping_file` instead of `mapping-file`, otherwise we get: `error in setup.cfg: command 'extract_messages' has no such option 'mapping-file'`
1 parent 6622e25 commit 61f49f3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

setup.cfg

+8-8
Original file line numberDiff line numberDiff line change
@@ -89,22 +89,22 @@ add_ignore = D401
8989

9090
[compile_catalog]
9191
directory = invenio_records_resources/translations/
92-
use-fuzzy = True
92+
use_fuzzy = True
9393

9494
[extract_messages]
9595
copyright_holder = CERN
9696
msgid_bugs_address = [email protected]
97-
mapping-file = babel.ini
98-
output-file = invenio_records_resources/translations/messages.pot
99-
add-comments = NOTE
97+
mapping_file = babel.ini
98+
output_file = invenio_records_resources/translations/messages.pot
99+
add_comments = NOTE
100100

101101
[init_catalog]
102-
input-file = invenio_records_resources/translations/messages.pot
103-
output-dir = invenio_records_resources/translations/
102+
input_file = invenio_records_resources/translations/messages.pot
103+
output_dir = invenio_records_resources/translations/
104104

105105
[update_catalog]
106-
input-file = invenio_records_resources/translations/messages.pot
107-
output-dir = invenio_records_resources/translations/
106+
input_file = invenio_records_resources/translations/messages.pot
107+
output_dir = invenio_records_resources/translations/
108108

109109
[isort]
110110
profile=black

0 commit comments

Comments
 (0)