From 40c24168fcaf9251f56e8570538e9a7dd48795e9 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 12 Feb 2022 11:31:36 +0100 Subject: remake internationalization, using Babel this time --- setup.cfg | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 setup.cfg (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..c07fad7 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: CC0-1.0 + +# Copyright (C) 2022 Wojtek Kosior +# +# Available under the terms of Creative Commons Zero v1.0 Universal. + +[metadata] +name = hydrilla +author = Wojtek Kosior +author_email = koszko@koszko.org +description = Hydrilla repository server +long_description = file: README.md +long_description_content_type = text/markdown +url = https://git.koszko.org/pydrilla +project_urls = + Bug Tracker = https://hydrillabugs.koszko.org/projects/hydrilla +keywords = hydrilla, haketilo +license = AGPL-3.0-or-later +classifiers = + Development Status :: 4 - Beta + Intended Audience :: Developers + Environment :: Web Environment + Environment :: Console + Topic :: Internet :: WWW/HTTP :: WSGI + License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+) + Natural Language :: English + Operating System :: OS Independent + Programming Language :: Python :: 3 :: Only + +[options] +zip_safe = False +package_dir = + = src +packages = find: +include_package_data=True +install_requires = + hydrilla.builder + flask + jsonschema + +[options.package_data] +hydrilla.server = locales/*/LC_MESSAGES/messages.mo + +[options.extras_require] +test = pytest +setup = setuptools_scm + +[options.packages.find] +where = src +exclude = + test + +[options.entry_points] +console_scripts = + hydrilla = hydrilla.server.serve:start + +[extract_messages] +mapping_file = babel.cfg +keywords = _ f_ +add_comments = TRANSLATORS: +width = 80 +input_dirs = src/hydrilla +output_file = src/hydrilla/server/locales/messages.pot +msgid_bugs_address = koszko@koszko.org +sort_by_file = True +copyright_holder = Wojtek Kosior + +[init_catalog] +input_file = src/hydrilla/server/locales/messages.pot +output_dir = src/hydrilla/server/locales/ +domain = messages + +[update_catalog] +input_file = src/hydrilla/server/locales/messages.pot +output_dir = src/hydrilla/server/locales/ +domain = messages + +[compile_catalog] +directory = src/hydrilla/server/locales +use_fuzzy = True +domain = messages -- cgit v1.2.3