From b28ae153ed5b600773cd160dc425a7af2e29f771 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 5 Oct 2023 18:27:58 +0100 Subject: [PATCH] build: Copy setup.cfg data to pyproject.toml This is needed to use newer versions of kolibri-tools, which will read configuration from `pyproject.toml` in preference to `setup.cfg`, if the former exists. See https://github.com/learningequality/kolibri/issues/11146 For now, keep the old configuration present in `setup.cfg` as well, in case people are using an older version of kolibri-tools. That can be dropped once we bump our dependency. Signed-off-by: Philip Withnall --- pyproject.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 51808423c..988f1c2a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,3 +77,12 @@ testpaths = 'kolibri_explore_plugin/test' # FIXME: Try to narrow the deprecation warnings to only those caused by # Kolibri. filterwarnings = 'ignore::DeprecationWarning' + +# FIXME: There’s currently an old copy of this in setup.cfg as well, until we +# hard-depend on a new enough version of kolibri-tools to contain +# https://github.com/learningequality/kolibri/issues/11146 +[tool.kolibri.i18n] +project = 'kolibri_explore_plugin' +locale_data_folder = 'kolibri_explore_plugin/locale' +# Glob to exclude node_modules and static folders +ignore = ['**/node_modules/**', '**/static/**']