From 8bb8c1b62f65faa20b6256a2d792a5ecf0c2c6dd Mon Sep 17 00:00:00 2001
From: Maximilian Moser <maximilian.moser@tuwien.ac.at>
Date: Tue, 11 Feb 2025 18:23:16 +0100
Subject: [PATCH] Update the name and comment for the config module entrypoint

* `tuw_config` is a bit nicer than `zzz_invenio_config_tuw`, and should
  still be the last entry in the list considering the usual naming
  scheme
---
 pyproject.toml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 960d25b..5e15260 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -103,12 +103,13 @@ invenio_config_tuw = "invenio_config_tuw.tasks"
 invenio_config_tuw_tiss = "invenio_config_tuw.tiss.tasks"
 invenio_config_tuw_curations = "invenio_config_tuw.curations.tasks"
 
+# note: similar to above, we try to get listed *after* all the "invenio_*" entrypoints
+#       so that we can override other packages' configuration items, but still get
+#       executed before "invenio.cfg" (so that the values there take precedence)
+#       unlike above, the lexicographic sorting is performed by `Invenio-Config`
+#       out of the box
 [project.entry-points."invenio_config.module"]
-# note: configs are loaded by `Invenio-Config` in lexicographic order of their
-# entrypoint names, and we want to override the other configs here
-# while not overriding `invenio.cfg`
-# (which could be done in the ext.init_config(app) method)
-zzz_invenio_config_tuw = "invenio_config_tuw.config"
+tuw_config = "invenio_config_tuw.config"
 
 # Configuration for tools
 # -----------------------
-- 
GitLab