Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-mkdocs-material for 
openSUSE:Factory checked in at 2026-03-23 17:14:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mkdocs-material (Old)
 and      /work/SRC/openSUSE:Factory/.python-mkdocs-material.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mkdocs-material"

Mon Mar 23 17:14:46 2026 rev:103 rq:1341975 version:9.7.6

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-mkdocs-material/python-mkdocs-material.changes
    2026-03-12 22:27:09.146328806 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-mkdocs-material.new.8177/python-mkdocs-material.changes
  2026-03-23 17:16:50.262332211 +0100
@@ -1,0 +2,6 @@
+Fri Mar 20 06:46:30 UTC 2026 - Johannes Kastl 
<[email protected]>
+
+- update to 9.7.6:
+  * Automatically disable MkDocs 2.0 warning for forks of MkDocs
+
+-------------------------------------------------------------------

Old:
----
  mkdocs_material-9.7.5.tar.gz

New:
----
  mkdocs_material-9.7.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-mkdocs-material.spec ++++++
--- /var/tmp/diff_new_pack.jS4MIC/_old  2026-03-23 17:16:51.050364985 +0100
+++ /var/tmp/diff_new_pack.jS4MIC/_new  2026-03-23 17:16:51.054365152 +0100
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-mkdocs-material
-Version:        9.7.5
+Version:        9.7.6
 Release:        0
 Summary:        Material theme for mkdocs
 License:        MIT

++++++ mkdocs_material-9.7.5.tar.gz -> mkdocs_material-9.7.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mkdocs_material-9.7.5/PKG-INFO 
new/mkdocs_material-9.7.6/PKG-INFO
--- old/mkdocs_material-9.7.5/PKG-INFO  2020-02-02 01:00:00.000000000 +0100
+++ new/mkdocs_material-9.7.6/PKG-INFO  2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: mkdocs-material
-Version: 9.7.5
+Version: 9.7.6
 Summary: Documentation that simply works
 Project-URL: Homepage, https://squidfunk.github.io/mkdocs-material/
 Project-URL: Bug Tracker, https://github.com/squidfunk/mkdocs-material/issues
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mkdocs_material-9.7.5/material/__init__.py 
new/mkdocs_material-9.7.6/material/__init__.py
--- old/mkdocs_material-9.7.5/material/__init__.py      2020-02-02 
01:00:00.000000000 +0100
+++ new/mkdocs_material-9.7.6/material/__init__.py      2020-02-02 
01:00:00.000000000 +0100
@@ -18,4 +18,4 @@
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 # IN THE SOFTWARE.
 
-__version__ = "9.7.5"
+__version__ = "9.7.6"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mkdocs_material-9.7.5/material/plugins/__init__.py 
new/mkdocs_material-9.7.6/material/plugins/__init__.py
--- old/mkdocs_material-9.7.5/material/plugins/__init__.py      2020-02-02 
01:00:00.000000000 +0100
+++ new/mkdocs_material-9.7.6/material/plugins/__init__.py      2020-02-02 
01:00:00.000000000 +0100
@@ -17,29 +17,3 @@
 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 # IN THE SOFTWARE.
-
-from colorama import Fore, Style
-from os import getenv
-from sys import stderr
-
-# Silence this warning with NO_MKDOCS_2_WARNING=1
-if not getenv("NO_MKDOCS_2_WARNING"):
-    print(
-        "\n"
-        f"{Fore.RED} │  ⚠  Warning from the Material for MkDocs 
team{Style.RESET_ALL}\n"
-        f"{Fore.RED} │{Style.RESET_ALL}\n"
-        f"{Fore.RED} │{Style.RESET_ALL}  MkDocs 2.0, the underlying framework 
of Material for MkDocs,\n"
-        f"{Fore.RED} │{Style.RESET_ALL}  will introduce backward-incompatible 
changes, including:\n"
-        f"{Fore.RED} │{Style.RESET_ALL}\n"
-        f"{Fore.RED} │  × {Style.RESET_ALL}All plugins will stop working – the 
plugin system has been removed\n"
-        f"{Fore.RED} │  × {Style.RESET_ALL}All theme overrides will break – 
the theming system has been rewritten\n"
-        f"{Fore.RED} │  × {Style.RESET_ALL}No migration path exists – existing 
projects cannot be upgraded\n"
-        f"{Fore.RED} │  × {Style.RESET_ALL}Closed contribution model – 
community members can't report bugs\n"
-        f"{Fore.RED} │  × {Style.RESET_ALL}Currently unlicensed – unsuitable 
for production use\n"
-        f"{Fore.RED} │{Style.RESET_ALL}\n"
-        f"{Fore.RED} │{Style.RESET_ALL}  Our full analysis:\n"
-        f"{Fore.RED} │{Style.RESET_ALL}\n"
-        f"{Fore.RED} │{Style.RESET_ALL}  
\033[4mhttps://squidfunk.github.io/mkdocs-material/blog/2026/02/18/mkdocs-2.0/{Style.RESET_ALL}\n";
-        f"{Style.RESET_ALL}",
-        file=stderr
-    )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mkdocs_material-9.7.5/material/templates/__init__.py 
new/mkdocs_material-9.7.6/material/templates/__init__.py
--- old/mkdocs_material-9.7.5/material/templates/__init__.py    2020-02-02 
01:00:00.000000000 +0100
+++ new/mkdocs_material-9.7.6/material/templates/__init__.py    2020-02-02 
01:00:00.000000000 +0100
@@ -17,3 +17,43 @@
 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 # IN THE SOFTWARE.
+
+import os
+import sys
+
+from colorama import Fore, Style
+from pathlib import Path
+from sys import stderr
+
+# Check if we're running MkDocs. Disable the warning automatically for other
+# contexts, e.g., to allow for forks of MkDocs to adjust behavior to fit
+def is_mkdocs():
+    path = Path(sys.argv[0])
+    return path.name in ("mkdocs", "mkdocs.exe") or (
+        path.name == "__main__.py" and path.parent.name == "mkdocs"
+    )
+
+# Check if we're running MkDocs and the warning hasn't been disabled
+if is_mkdocs() and not os.getenv("NO_MKDOCS_2_WARNING"):
+    print(
+        "\n"
+        f"{Fore.RED} │  ⚠  Warning from the Material for MkDocs 
team{Style.RESET_ALL}\n"
+        f"{Fore.RED} │{Style.RESET_ALL}\n"
+        f"{Fore.RED} │{Style.RESET_ALL}  MkDocs 2.0, the underlying framework 
of Material for MkDocs,\n"
+        f"{Fore.RED} │{Style.RESET_ALL}  will introduce backward-incompatible 
changes, including:\n"
+        f"{Fore.RED} │{Style.RESET_ALL}\n"
+        f"{Fore.RED} │  × {Style.RESET_ALL}All plugins will stop working – the 
plugin system has been removed\n"
+        f"{Fore.RED} │  × {Style.RESET_ALL}All theme overrides will break – 
the theming system has been rewritten\n"
+        f"{Fore.RED} │  × {Style.RESET_ALL}No migration path exists – existing 
projects cannot be upgraded\n"
+        f"{Fore.RED} │  × {Style.RESET_ALL}Closed contribution model – 
community members can't report bugs\n"
+        f"{Fore.RED} │  × {Style.RESET_ALL}Currently unlicensed – unsuitable 
for production use\n"
+        f"{Fore.RED} │{Style.RESET_ALL}\n"
+        f"{Fore.RED} │{Style.RESET_ALL}  Our full analysis:\n"
+        f"{Fore.RED} │{Style.RESET_ALL}\n"
+        f"{Fore.RED} │{Style.RESET_ALL}  
\033[4mhttps://squidfunk.github.io/mkdocs-material/blog/2026/02/18/mkdocs-2.0/{Style.RESET_ALL}\n";
+        f"{Style.RESET_ALL}",
+        file=stderr
+    )
+
+# Disable for subsequent imports
+os.environ["NO_MKDOCS_2_WARNING"] = "true"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mkdocs_material-9.7.5/material/templates/base.html 
new/mkdocs_material-9.7.6/material/templates/base.html
--- old/mkdocs_material-9.7.5/material/templates/base.html      2020-02-02 
01:00:00.000000000 +0100
+++ new/mkdocs_material-9.7.6/material/templates/base.html      2020-02-02 
01:00:00.000000000 +0100
@@ -37,7 +37,7 @@
         <link rel="alternate" type="application/rss+xml" title="{{ 
lang.t('rss.updated') }}" href="{{ 'feed_rss_updated.xml' | url }}">
       {% endif %}
       <link rel="icon" href="{{ config.theme.favicon | url }}">
-      <meta name="generator" content="mkdocs-{{ mkdocs_version }}, 
mkdocs-material-9.7.5">
+      <meta name="generator" content="mkdocs-{{ mkdocs_version }}, 
mkdocs-material-9.7.6">
     {% endblock %}
     {% block htmltitle %}
       {% if page.meta and page.meta.title %}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mkdocs_material-9.7.5/package.json 
new/mkdocs_material-9.7.6/package.json
--- old/mkdocs_material-9.7.5/package.json      2020-02-02 01:00:00.000000000 
+0100
+++ new/mkdocs_material-9.7.6/package.json      2020-02-02 01:00:00.000000000 
+0100
@@ -1,6 +1,6 @@
 {
   "name": "mkdocs-material",
-  "version": "9.7.5",
+  "version": "9.7.6",
   "description": "Documentation that simply works",
   "keywords": [
     "mkdocs",

Reply via email to