aboutsummaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-12 11:31:36 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-12 16:10:26 +0100
commit40c24168fcaf9251f56e8570538e9a7dd48795e9 (patch)
tree42e68ea29d5c809c4b5e37e2a7237917433d7303 /setup.cfg
parentded47952fc7f3e4484c6ae4a559e514cb660f2bc (diff)
downloadhaketilo-hydrilla-40c24168fcaf9251f56e8570538e9a7dd48795e9.tar.gz
haketilo-hydrilla-40c24168fcaf9251f56e8570538e9a7dd48795e9.zip
remake internationalization, using Babel this time
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg81
1 files changed, 81 insertions, 0 deletions
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 <koszko@koszko.org>
+#
+# 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 <koszko@koszko.org>
+
+[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