aboutsummaryrefslogtreecommitdiff
path: root/MANIFEST.in
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-07-08 02:42:44 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-07-08 02:42:44 +0200
commitbb6714e9d7468465f23bf0e163d06517de397dbe (patch)
treeaaabb03f1e7f8f41259815e5f03fcca14ef124f2 /MANIFEST.in
parent210650683ccbfa35da293cd1b43057a780349d91 (diff)
downloadfietsboek-bb6714e9d7468465f23bf0e163d06517de397dbe.tar.gz
fietsboek-bb6714e9d7468465f23bf0e163d06517de397dbe.tar.bz2
fietsboek-bb6714e9d7468465f23bf0e163d06517de397dbe.zip
better loading in util.read_localized_resource
The other code kinda assumed that we can turn the resource path into a package by replacing the slashes (path separators) with dots. That turned out to not really work in the end, especially if the resource subfolders don't have a __init__.py in there. This uses the .files() API (available in Python 3.9 and backported in importlib_resources) to better handle folders in the resources.
Diffstat (limited to 'MANIFEST.in')
-rw-r--r--MANIFEST.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
index 0d8bb87..38898e6 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,7 +1,7 @@
include *.txt *.ini *.cfg *.rst
recursive-include fietsboek *.ico *.png *.css *.gif *.jpg *.pt *.txt *.mak *.mako *.js *.html *.xml *.jinja2
recursive-include fietsboek/static *
-recursive-include fietsboek/locale *.pot *.po *.mo
+recursive-include fietsboek/locale *.pot *.po *.mo *.html
recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]