X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=setup.cfg;h=ed171a15cfb547329d8bb9c2f79f3f7dd8ec3c95;hb=b2ca49b26cb89f3771f3b0daa21d62bb2152b6f7;hp=bbd3a2abec669c49ce66de5f5cfd27f13e006459;hpb=506f1bfb701b34752fc4483bde1a409d5776c1fe;p=fdroidserver.git diff --git a/setup.cfg b/setup.cfg index bbd3a2ab..ed171a15 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,39 @@ -[metadata] -description-file = README.md +# uploading here requires Python 3.5.3+ or setuptools 27+, +# use instead: twine upload dist/fdroidserver*.tar.gz* [aliases] -release = register sdist --sign upload +release = versioncheck compile_catalog register sdist upload --sign +# All this below is for Babel config. Ideally we would only use +# Babel, but it is still missing some key features that gettext gives +# us. So for now, this Babel setup is just to make it easy for Python +# people who are used to it. Babel is missing: +# +# * properly tagging various Python formats in the comments +# * --add-location=file +# * --join-existing +# * --sort-output on update +# +# So for now the canonical way to update the template and translation +# files is: `make -C locale` + +[extract_messages] +keywords = _ +charset = UTF-8 +sort_output = true +no_location = true +add-comments = true +output_file = locale/fdroidserver.pot +msgid-bugs-address = https://gitlab.com/fdroid/fdroidserver/issues + +[update_catalog] +output_dir = locale +input_file = locale/fdroidserver.pot + +[init_catalog] +input_file = locale/fdroidserver.pot +output_dir = locale + +[compile_catalog] +domain = fdroidserver +directory = locale