annotate dev_requirements.txt @ 8095:7c7d6b5c07c7 stable

i18n: make sure 'en' in Accept-Language is recognized as having 100% coverage - i18n.lang is for source language https://github.com/cdent/paste/blob/3.2.3/paste/wsgiwrappers.py#L89 describes how paste solved the problem. TG solves the same problem (with less explanation) in https://github.com/TurboGears/tg2/blob/tg2.4.2/tg/request_local.py#L36 with fallback language specified in i18n.lang . Thus, clarify the use of i18n.lang (refining f2f7a8c1281e and 8931078f70db) and set 'en' as default value on app startup. TurboGears requires an (empty) translation for the source language which is default for i18n.lang . The empty .mo for en is created as the 4 magic .mo bytes followed by lengths of 0: printf '\x95\x04\x12\xde\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0' > kallithea/i18n/en/LC_MESSAGES/kallithea.mo Based on report and analysis by Wolfgang Scherer. Also discussed upstream on https://github.com/TurboGears/tg2/pull/115 .
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 05 Jan 2020 01:19:05 +0100
parents 8e0efe7b3b10
children 268c47a1a93d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7900
4dad662fe6fd dev_requirements.txt: bump minimum pytest versions to a working set
Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
parents: 7810
diff changeset
1 pytest >= 4.6.6, < 4.7
4dad662fe6fd dev_requirements.txt: bump minimum pytest versions to a working set
Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
parents: 7810
diff changeset
2 pytest-sugar >= 0.9.2, < 0.10
4dad662fe6fd dev_requirements.txt: bump minimum pytest versions to a working set
Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
parents: 7810
diff changeset
3 pytest-benchmark >= 3.2.2, < 3.3
4dad662fe6fd dev_requirements.txt: bump minimum pytest versions to a working set
Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
parents: 7810
diff changeset
4 pytest-localserver >= 0.5.0, < 0.6
7929
8e0efe7b3b10 setup: set explicit minimum version for all dependencies
Mads Kiilerich <mads@kiilerich.com>
parents: 7900
diff changeset
5 mock >= 3.0.0, < 3.1
8e0efe7b3b10 setup: set explicit minimum version for all dependencies
Mads Kiilerich <mads@kiilerich.com>
parents: 7900
diff changeset
6 Sphinx >= 1.8.0, < 1.9
8e0efe7b3b10 setup: set explicit minimum version for all dependencies
Mads Kiilerich <mads@kiilerich.com>
parents: 7900
diff changeset
7 WebTest >= 2.0.3, < 2.1
7810
5698307382de scripts: introduce import cleanup using isort
Mads Kiilerich <mads@kiilerich.com>
parents: 7741
diff changeset
8 isort == 4.3.21