tutor 23.0.0.dev3191__tar.gz → 23.0.0.dev3193__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/PKG-INFO +1 -1
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/config.py +25 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/.gitignore +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/.hatch_build.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/LICENSE.txt +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/README.rst +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/pyproject.toml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/requirements/base.in +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/requirements/dev.txt +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/requirements/plugins.txt +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/__about__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/__init__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/bindmount.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/__init__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/cli.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/compose.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/config.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/context.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/dev.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/images.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/jobs.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/jobs_utils.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/k8s.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/local.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/mounts.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/params.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/plugins.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/upgrade/__init__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/upgrade/common.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/upgrade/compose.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/commands/upgrade/k8s.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/core/__init__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/core/hooks/__init__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/core/hooks/actions.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/core/hooks/contexts.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/core/hooks/filters.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/core/hooks/priorities.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/env.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/exceptions.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/fmt.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/hooks/__init__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/hooks/catalog.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/images.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/interactive.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/plugins/__init__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/plugins/base.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/plugins/indexes.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/plugins/openedx.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/plugins/v0.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/plugins/v1.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/py.typed +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/serialize.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/tasks.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/caddy/Caddyfile +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/config/cms.env.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/config/lms.env.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/config/partials/auth.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/cms/__init__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/cms/development.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/cms/production.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/cms/test.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/lms/__init__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/lms/development.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/lms/production.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/lms/test.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/partials/common_all.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/partials/common_cms.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/partials/common_lms.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/partials/common_test.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/uwsgi.ini +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/permissions/setowners.sh +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/redis/redis.conf +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/Dockerfile +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/bin/reload-uwsgi +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/revisions.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/cms/__init__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/cms/assets.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/cms/i18n.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/lms/__init__.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/lms/assets.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/lms/i18n.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/partials/assets.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/partials/i18n.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/uwsgi.ini +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/themes/README +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/permissions/Dockerfile +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/permissions/setowner.sh +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/config/base.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/config/defaults.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/dev/docker-compose.jobs.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/dev/docker-compose.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/jobs/init/cms.sh +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/jobs/init/lms.sh +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/jobs/init/meilisearch.sh +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/jobs/init/mounted-directories.sh +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/jobs/init/mysql.sh +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/k8s/deployments.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/k8s/jobs.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/k8s/namespace.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/k8s/override.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/k8s/services.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/k8s/volumes.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/kustomization.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/local/docker-compose.jobs.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/local/docker-compose.prod.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/local/docker-compose.yml +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/version +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/types.py +0 -0
- {tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tutor
|
|
3
|
-
Version: 23.0.0.
|
|
3
|
+
Version: 23.0.0.dev3193
|
|
4
4
|
Summary: The Docker-based Open edX distribution designed for peace of mind
|
|
5
5
|
Project-URL: Homepage, https://docs.tutor.edly.io/
|
|
6
6
|
Project-URL: Documentation, https://docs.tutor.edly.io/
|
|
@@ -9,6 +9,11 @@ from tutor.types import Config, ConfigValue, cast_config, get_typed
|
|
|
9
9
|
|
|
10
10
|
CONFIG_FILENAME = "config.yml"
|
|
11
11
|
|
|
12
|
+
# Default value of the MEILISEARCH_URL setting. It is duplicated here from
|
|
13
|
+
# config/defaults.yml because loading the configuration defaults is slow. The
|
|
14
|
+
# two values are checked to be in sync by the unit tests.
|
|
15
|
+
MEILISEARCH_URL_DEFAULT = "http://meilisearch:7700"
|
|
16
|
+
|
|
12
17
|
|
|
13
18
|
def load(root: str) -> Config:
|
|
14
19
|
"""
|
|
@@ -342,3 +347,23 @@ def _update_enabled_plugins_on_unload(_plugin: str, _root: str, config: Config)
|
|
|
342
347
|
Note that this action must be performed after the plugin has been unloaded, hence the low priority.
|
|
343
348
|
"""
|
|
344
349
|
save_enabled_plugins(config)
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
@hooks.Actions.CONFIG_LOADED.add()
|
|
353
|
+
def _check_meilisearch_url(config: Config) -> None:
|
|
354
|
+
"""
|
|
355
|
+
Warn the user in case Meilisearch is not run by Tutor while MEILISEARCH_URL
|
|
356
|
+
still points at the Tutor-managed instance.
|
|
357
|
+
|
|
358
|
+
Meilisearch is a required component of the Open edX platform: RUN_MEILISEARCH=false
|
|
359
|
+
does not disable it, it only indicates that it is hosted externally.
|
|
360
|
+
"""
|
|
361
|
+
if get_typed(config, "RUN_MEILISEARCH", bool, True):
|
|
362
|
+
return
|
|
363
|
+
if get_typed(config, "MEILISEARCH_URL", str, "") == MEILISEARCH_URL_DEFAULT:
|
|
364
|
+
fmt.echo_alert(
|
|
365
|
+
f'Warning: RUN_MEILISEARCH=false, but MEILISEARCH_URL is still set to its default value "{MEILISEARCH_URL_DEFAULT}". '
|
|
366
|
+
"Meilisearch is a required component of the Open edX platform, so RUN_MEILISEARCH=false only means that it is hosted "
|
|
367
|
+
"externally. Set MEILISEARCH_URL to the URL of an existing, preconfigured Meilisearch instance, or set "
|
|
368
|
+
"RUN_MEILISEARCH=true to have Tutor run its own."
|
|
369
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/config/cms.env.yml
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/config/lms.env.yml
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/config/partials/auth.yml
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/cms/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/cms/test.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/lms/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/apps/openedx/settings/lms/test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/bin/reload-uwsgi
RENAMED
|
File without changes
|
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/cms/__init__.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/cms/assets.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/cms/i18n.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/lms/__init__.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/lms/assets.py
RENAMED
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/lms/i18n.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/build/openedx/settings/uwsgi.ini
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tutor-23.0.0.dev3191 → tutor-23.0.0.dev3193}/tutor/templates/jobs/init/mounted-directories.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|