{ "name": "weblate", "version": "2026.10", "summary": "Weblate: a web translation server with a glossary per project, translation memory, checks and Git or local repositories (Django, PostgreSQL, Valkey, Celery, granian)", "category": "server", "license": "GPL-3.0-or-later", "homepage": "https://weblate.org/", "source": { "url": "https://files.pythonhosted.org/packages/83/76/c665ef9f1c30a52f3896c89d699db7ed3dcaace4b39e452c5617069fd57f/weblate-2026.10-py3-none-any.whl", "sha256": "568f24f149f6448b71b4870e8cd91f1b71825785fe77c1150a7a745a4d9c2775" }, "watch": {"kind": "pypi", "package": "weblate", "pin": "any"}, "vendor": "vendor.txt", "deps": [ "python", "borgbackup", "git", "openssh", "postgresql", "valkey" ], "env_packages": [], "static": false, "nss": false, "check": "t=$(mktemp -d) && chmod 755 \"$t\" && chown 65534:65534 \"$t\" && p=$(free_port) && r=$(free_port) && w=$(free_port) && g= && c= && u() { setpriv --reuid=65534 --regid=65534 --clear-groups \"$@\"; } && trap '[ -z \"$g\" ] || kill -9 \"$g\" 2> /dev/null; [ -z \"$c\" ] || kill -9 \"$c\" 2> /dev/null; [ ! -f \"$t/valkey.pid\" ] || kill -9 \"$(cat \"$t/valkey.pid\")\" 2> /dev/null; u bin/pg_ctl -D \"$t/pg\" -m immediate stop > /dev/null 2>&1' EXIT && export PATH=\"$PREFIX/bin:$PATH\" HOME=\"$t\" TMPDIR=\"$t\" WEBLATE_DATA_DIR=\"$t/data\" WEBLATE_CACHE_DIR=\"$t/cache\" POSTGRES_HOST=127.0.0.1 POSTGRES_PORT=\"$p\" POSTGRES_USER=weblate POSTGRES_PASSWORD=unused POSTGRES_DATABASE=postgres REDIS_HOST=127.0.0.1 REDIS_PORT=\"$r\" WEBLATE_SITE_DOMAIN=\"127.0.0.1:$w\" WEBLATE_ALLOWED_HOSTS='*' WEBLATE_TIME_ZONE=UTC && u bin/initdb -D \"$t/pg\" -U weblate --auth=trust -E UTF8 --no-instructions > \"$t/initdb.log\" 2>&1 && u bin/pg_ctl -D \"$t/pg\" -l \"$t/pg.log\" -w -t 120 -o \"-p $p -k $t -c listen_addresses=127.0.0.1\" start > /dev/null && u bin/valkey-server --port \"$r\" --bind 127.0.0.1 --save '' --daemonize yes --dir \"$t\" --logfile \"$t/valkey.log\" --pidfile \"$t/valkey.pid\" && u mkdir \"$t/data\" \"$t/cache\" && u sh -c 'bin/weblate-generate-secret-key > \"$WEBLATE_DATA_DIR/secret\"' && [ -s \"$t/data/secret\" ] && u bin/weblate migrate --noinput > \"$t/migrate.log\" 2>&1 && u bin/weblate createadmin --password bvs-check-pw --username admin --email admin@example.com > \"$t/admin.log\" 2>&1 && u bin/weblate collectstatic --noinput > \"$t/static.log\" 2>&1 && { setpriv --reuid=65534 --regid=65534 --clear-groups bin/weblate-granian --interface wsgi --host 127.0.0.1 --port \"$w\" --workers 1 --static-path-route /static --static-path-mount \"$t/cache/static\" weblate.wsgi:application > \"$t/granian.log\" 2>&1 & g=$!; } && { setpriv --reuid=65534 --regid=65534 --clear-groups bin/weblate-celery worker --concurrency=1 --queues=celery,notify,memory,translate,backup > \"$t/celery.log\" 2>&1 & c=$!; } && for i in $(seq 1 90); do curl -fs -m 2 -o \"$t/login.html\" \"http://127.0.0.1:$w/accounts/login/\" && break; kill -0 \"$g\" 2> /dev/null || break; sleep 1; done && has -F '' \"$t/login.html\" && has Weblate \"$t/login.html\" && css=$(grep -o '/static/[^\"]*\\.css' \"$t/login.html\" | head -n 1) && [ -n \"$css\" ] && curl -fs -o /dev/null \"http://127.0.0.1:$w$css\" && grep -E '^Uid:[[:space:]]+65534[[:space:]]' \"/proc/$g/status\" > /dev/null && tok=$(u bin/weblate shell -c \"from rest_framework.authtoken.models import Token; from weblate.auth.models import User; print(Token.objects.get_or_create(user=User.objects.get(username='admin'))[0].key)\" 2> /dev/null | tail -n 1) && [ -n \"$tok\" ] && a=\"Authorization: Token $tok\" && b=\"http://127.0.0.1:$w/api\" && curl -fs -H \"$a\" -H 'Content-Type: application/json' -d '{\"name\":\"BVS\",\"slug\":\"bvs\",\"web\":\"https://www.qnaputilities.com/\"}' \"$b/projects/\" > /dev/null && mkdir -p \"$t/z/po\" && printf 'msgid \"\"\\nmsgstr \"\"\\n\"Content-Type: text/plain; charset=UTF-8\\\\n\"\\n\"Language: pl\\\\n\"\\n\\nmsgid \"Volume\"\\nmsgstr \"\"\\n\\nmsgid \"Pool\"\\nmsgstr \"Pula\"\\n' > \"$t/z/po/pl.po\" && (cd \"$t/z\" && \"$PREFIX/bin/python3\" -m zipfile -c ../src.zip po) && curl -fs -H \"$a\" -F name=App -F slug=app -F file_format=po -F 'filemask=po/*.po' -F vcs=local -F repo=local: -F new_lang=none -F \"zipfile=@$t/src.zip\" \"$b/projects/bvs/components/\" > /dev/null && for i in $(seq 1 30); do curl -fs -H \"$a\" \"$b/components/bvs/glossary/translations/\" | has '\"language_code\":\"pl\"' && break; sleep 1; done && curl -fs -H \"$a\" -H 'Content-Type: application/json' -d '{\"source\":[\"Volume\"],\"target\":[\"Wolumin\"]}' \"$b/translations/bvs/glossary/pl/units/\" > /dev/null && u bin/weblate shell -c \"from weblate.trans.models import Unit; from weblate.glossary.models import get_glossary_terms; u = Unit.objects.get(translation__component__slug='app', translation__language__code='pl', source='Volume'); print(' '.join('%s=%s' % (t.source, t.target) for t in get_glossary_terms(u)))\" 2> /dev/null | tail -n 1 | has -x 'Volume=Wolumin' && for i in $(seq 1 30); do u bin/weblate-celery inspect ping 2> /dev/null | has pong && break; sleep 2; done && u bin/weblate-celery inspect ping 2> /dev/null | has pong && git_used=$(command -v git) && [ \"$git_used\" = \"$PREFIX/bin/git\" ] && u env -u LC_ALL -u LANG bin/weblate shell -c \"import numpy, sys, locale; print('utf8_mode', sys.flags.utf8_mode, locale.getlocale()[1]); print(open('/proc/self/maps').read())\" 2> /dev/null > \"$t/maps\" && has -x 'utf8_mode 1 UTF-8' \"$t/maps\" && has -F \"$PREFIX/share/weblate/locale/C.utf8/LC_CTYPE\" \"$t/maps\" && has -F \"$PREFIX/share/weblate/lib/libstdc++.so.6\" \"$t/maps\" && share/weblate/venv/bin/python3 -c 'import tesserocr, PIL.Image, lxml.etree, psycopg; print(\"tesseract\", tesserocr.tesseract_version().split()[1], psycopg.pq.version())' | has '^tesseract 5\\.' && kill -TERM \"$g\" \"$c\" && for i in $(seq 1 30); do kill -0 \"$g\" 2> /dev/null || kill -0 \"$c\" 2> /dev/null || break; sleep 1; done && g= && c= && echo \"weblate 2026.10: migrated on PostgreSQL, Valkey as the broker, served by granian as uid 65534 (the sign-in page and its CSS), a project, a component from a .po, its glossary made by Weblate and a term in it matched on the unit, a Celery worker answering, the prefix's git, tesserocr's libraries found, numpy on the app's own libstdc++, the app's own C.UTF-8 locale\"" }