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 2024-05-01 14:56:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mkdocs-material (Old) and /work/SRC/openSUSE:Factory/.python-mkdocs-material.new.1880 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mkdocs-material" Wed May 1 14:56:38 2024 rev:51 rq:1170995 version:9.5.20 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mkdocs-material/python-mkdocs-material.changes 2024-04-29 17:58:45.764280005 +0200 +++ /work/SRC/openSUSE:Factory/.python-mkdocs-material.new.1880/python-mkdocs-material.changes 2024-05-01 14:56:54.234891606 +0200 @@ -1,0 +2,12 @@ +Tue Apr 30 11:02:32 UTC 2024 - Johannes Kastl <opensuse_buildserv...@ojkastl.de> + +- update to 9.5.20: + * Fixed deprecation warning in privacy plugin (9.5.19 regression) + * Fixed #7119 <https://github.com/squidfunk/mkdocs-material/issues/7119>: + Tags plugin emits deprecation warning (9.5.19 regression) + * Fixed #7118 <https://github.com/squidfunk/mkdocs-material/issues/7118>: + Social plugin crashes if fonts are disabled (9.5.19 regression) + * Fixed #7085 <https://github.com/squidfunk/mkdocs-material/issues/7085>: + Social plugin crashes on Windows when downloading fonts + +------------------------------------------------------------------- Old: ---- mkdocs_material-9.5.19.tar.gz New: ---- mkdocs_material-9.5.20.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mkdocs-material.spec ++++++ --- /var/tmp/diff_new_pack.1ujxCo/_old 2024-05-01 14:56:55.102923101 +0200 +++ /var/tmp/diff_new_pack.1ujxCo/_new 2024-05-01 14:56:55.102923101 +0200 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-mkdocs-material -Version: 9.5.19 +Version: 9.5.20 Release: 0 Summary: Material theme for mkdocs License: MIT ++++++ mkdocs_material-9.5.19.tar.gz -> mkdocs_material-9.5.20.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdocs_material-9.5.19/PKG-INFO new/mkdocs_material-9.5.20/PKG-INFO --- old/mkdocs_material-9.5.19/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 +++ new/mkdocs_material-9.5.20/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.3 Name: mkdocs-material -Version: 9.5.19 +Version: 9.5.20 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.5.19/material/__init__.py new/mkdocs_material-9.5.20/material/__init__.py --- old/mkdocs_material-9.5.19/material/__init__.py 2020-02-02 01:00:00.000000000 +0100 +++ new/mkdocs_material-9.5.20/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.5.19" +__version__ = "9.5.20" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdocs_material-9.5.19/material/plugins/privacy/plugin.py new/mkdocs_material-9.5.20/material/plugins/privacy/plugin.py --- old/mkdocs_material-9.5.19/material/plugins/privacy/plugin.py 2020-02-02 01:00:00.000000000 +0100 +++ new/mkdocs_material-9.5.20/material/plugins/privacy/plugin.py 2020-02-02 01:00:00.000000000 +0100 @@ -363,8 +363,10 @@ else: self._fetch(file, config) - # Register external asset as file - self.assets.append(file) + # Register external asset as file - it might have already been + # registered, and since MkDocs 1.6, trigger a deprecation warning + if not self.assets.get_file_from_path(file.src_uri): + self.assets.append(file) # If the URL of the external asset includes a hash fragment, add it to # the returned file, e.g. for dark/light images - see https://t.ly/7b16Y diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdocs_material-9.5.19/material/plugins/social/plugin.py new/mkdocs_material-9.5.20/material/plugins/social/plugin.py --- old/mkdocs_material-9.5.19/material/plugins/social/plugin.py 2020-02-02 01:00:00.000000000 +0100 +++ new/mkdocs_material-9.5.20/material/plugins/social/plugin.py 2020-02-02 01:00:00.000000000 +0100 @@ -46,7 +46,7 @@ from mkdocs.commands.build import DuplicateFilter from mkdocs.exceptions import PluginError from mkdocs.plugins import BasePlugin -from mkdocs.utils import copy_file +from mkdocs.utils import write_file from shutil import copyfile from tempfile import NamedTemporaryFile @@ -444,11 +444,17 @@ svg2png(bytestring = data, write_to = file, scale = 10) return Image.open(file) - # Retrieve font + # Retrieve font either from the card layout option or from the Material + # font defintion. If no font is defined for Material or font is False + # then choose a default. def _load_font(self, config): name = self.config.cards_layout_options.get("font_family") if not name: - name = config.theme.get("font", {}).get("text", "Roboto") + material_name = config.theme.get("font", False) + if material_name is False: + name = "Roboto" + else: + name = material_name.get("text", "Roboto") # Resolve relevant fonts font = {} @@ -522,19 +528,18 @@ with requests.get(match) as res: res.raise_for_status() - # Create a temporary file to download the font - with NamedTemporaryFile() as temp: - temp.write(res.content) - temp.flush() - - # Extract font family name and style - font = ImageFont.truetype(temp.name) + # Extract font family name and style using the content in the + # response via ByteIO to avoid writing a temp file. Done to fix + # problems with passing a NamedTemporaryFile to + # ImageFont.truetype() on Windows, see https://t.ly/LiF_k + with BytesIO(res.content) as fontdata: + font = ImageFont.truetype(fontdata) name, style = font.getname() name = " ".join([name.replace(family, ""), style]).strip() - - # Move fonts to cache directory target = os.path.join(path, family, f"{name}.ttf") - copy_file(temp.name, target) + + # write file to cache + write_file(res.content, target) # ----------------------------------------------------------------------------- # Data diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdocs_material-9.5.19/material/plugins/tags/plugin.py new/mkdocs_material-9.5.20/material/plugins/tags/plugin.py --- old/mkdocs_material-9.5.19/material/plugins/tags/plugin.py 2020-02-02 01:00:00.000000000 +0100 +++ new/mkdocs_material-9.5.20/material/plugins/tags/plugin.py 2020-02-02 01:00:00.000000000 +0100 @@ -128,7 +128,11 @@ log.error(f"Tags file '{path}' does not exist.") sys.exit(1) - # Add tags file to files + # Add tags file to files - note: since MkDoc 1.6, not removing the + # file before adding it to the end will trigger a deprecation warning + # The new tags plugin does not require this hack, so we're just going + # to live with it until the new tags plugin is released. + files.remove(file) files.append(file) return file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdocs_material-9.5.19/material/templates/.icons/simple/authentik.svg new/mkdocs_material-9.5.20/material/templates/.icons/simple/authentik.svg --- old/mkdocs_material-9.5.19/material/templates/.icons/simple/authentik.svg 1970-01-01 01:00:00.000000000 +0100 +++ new/mkdocs_material-9.5.20/material/templates/.icons/simple/authentik.svg 2020-02-02 01:00:00.000000000 +0100 @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.96 9.01h-.84V7.492h-1.234v3.663H5.722c.34.517.538.982.538 1.152 0 .46-1.445 3.059-3.197 3.059C.8 15.427-.745 12.8.372 10.855a3.062 3.062 0 0 1 2.691-1.606c1.04 0 1.971.915 2.557 1.755V6.577a3.773 3.773 0 0 1 3.77-3.769h10.84C22.31 2.808 24 4.5 24 6.577v10.845a3.773 3.773 0 0 1-3.77 3.769h-1.6V17.5h-7.64v3.692h-1.6a3.773 3.773 0 0 1-3.77-3.769v-3.41h12.114v-6.52h-1.59v.893h-.84v-.893H13.96v1.516Zm-9.956 1.845c-.662-.703-1.578-.544-2.209 0-2.105 2.054 1.338 5.553 3.302 1.447a5.395 5.395 0 0 0-1.093-1.447Z"/></svg> \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdocs_material-9.5.19/material/templates/.icons/simple/gcore.svg new/mkdocs_material-9.5.20/material/templates/.icons/simple/gcore.svg --- old/mkdocs_material-9.5.19/material/templates/.icons/simple/gcore.svg 1970-01-01 01:00:00.000000000 +0100 +++ new/mkdocs_material-9.5.20/material/templates/.icons/simple/gcore.svg 2020-02-02 01:00:00.000000000 +0100 @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22.285 12c0 6.627-5.36 12-11.973 12-2.67 0-5.138-.877-7.13-2.358a11.035 11.035 0 0 0 5.392 1.418c2.78 0 5.455-1.054 7.492-2.945a11.06 11.06 0 0 0 3.5-7.263 8.3 8.3 0 0 0 .05-.787c.01-.418-.066-1.08-.075-1.296l-.01.01a24 24 0 0 0-.102-.814h-8.687c-.748 1.398-1.486 2.802-2.226 4.204h6.565a6.91 6.91 0 0 1-1.075 2.019 6.82 6.82 0 0 1-2.403 1.98 6.796 6.796 0 0 1-3.03.709 6.796 6.796 0 0 1-2.358-.425 6.845 6.845 0 0 1-3.263-2.514A6.893 6.893 0 0 1 1.715 12a6.88 6.88 0 0 1 .522-2.631 6.92 6.92 0 0 1 1.486-2.231 6.82 6.82 0 0 1 2.226-1.49 6.888 6.888 0 0 1 2.625-.523 6.82 6.82 0 0 1 4.043 1.32c.663-1.237 1.317-2.479 1.973-3.72a11.025 11.025 0 0 0-11.374-.396A11.94 11.94 0 0 1 10.312 0c6.612 0 11.973 5.373 11.973 12"/></svg> \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdocs_material-9.5.19/material/templates/.icons/simple/statista.svg new/mkdocs_material-9.5.20/material/templates/.icons/simple/statista.svg --- old/mkdocs_material-9.5.19/material/templates/.icons/simple/statista.svg 1970-01-01 01:00:00.000000000 +0100 +++ new/mkdocs_material-9.5.20/material/templates/.icons/simple/statista.svg 2020-02-02 01:00:00.000000000 +0100 @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M.86 0a.84.84 0 0 0-.84.84v15.217h.12s3.611-.068 5.143-.874a10.89 10.89 0 0 0 3.337-3.051l.903-1.275.286-.406c.034-.04.182-.257.267-.383s.458-.65.818-1.176a16.94 16.94 0 0 1 5.263-4.744c3.337-1.714 7.76-1.542 7.76-1.542h.068V.892a.84.84 0 0 0-.84-.892Zm23.12 7.949a.9.9 0 0 1-.217.029s-3.606.068-5.154.88a10.86 10.86 0 0 0-3.339 3.045l-.885 1.28c-.131.183-.257.365-.29.405l-.27.383-.817 1.177s-2.178 3.144-5.263 4.744c-3.2 1.663-7.388 1.554-7.731 1.542v1.714a.84.84 0 0 0 .84.852H23.14a.84.84 0 0 0 .84-.84z"/></svg> \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdocs_material-9.5.19/material/templates/.icons/simple/tinygrad.svg new/mkdocs_material-9.5.20/material/templates/.icons/simple/tinygrad.svg --- old/mkdocs_material-9.5.19/material/templates/.icons/simple/tinygrad.svg 1970-01-01 01:00:00.000000000 +0100 +++ new/mkdocs_material-9.5.20/material/templates/.icons/simple/tinygrad.svg 2020-02-02 01:00:00.000000000 +0100 @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M1.846 7.385V9.23H0v1.846h1.846v3.692h3.692v-1.846H3.692v-1.846h1.846V9.23H3.692V7.385zm5.539 0V9.23H9.23V7.385zm3.692 1.846v5.538h1.846v-3.692h1.846V9.23h-1.846zm3.692 1.846v3.692h1.846v-3.692zm3.693-1.846v3.692h3.692v1.846H24V9.231h-1.846v1.846h-1.846V9.23Zm3.692 5.538h-3.692v1.846h3.692zm-14.77-3.692v3.692h1.847v-3.692z"/></svg> \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdocs_material-9.5.19/material/templates/base.html new/mkdocs_material-9.5.20/material/templates/base.html --- old/mkdocs_material-9.5.19/material/templates/base.html 2020-02-02 01:00:00.000000000 +0100 +++ new/mkdocs_material-9.5.20/material/templates/base.html 2020-02-02 01:00:00.000000000 +0100 @@ -32,7 +32,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.5.19"> + <meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-9.5.20"> {% endblock %} {% block htmltitle %} {% if page.meta and page.meta.title %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdocs_material-9.5.19/package.json new/mkdocs_material-9.5.20/package.json --- old/mkdocs_material-9.5.19/package.json 2020-02-02 01:00:00.000000000 +0100 +++ new/mkdocs_material-9.5.20/package.json 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ { "name": "mkdocs-material", - "version": "9.5.19", + "version": "9.5.20", "description": "Documentation that simply works", "keywords": [ "mkdocs", @@ -76,7 +76,7 @@ "html-minifier": "^4.0.0", "material-design-color": "^2.3.2", "material-shadows": "^3.0.1", - "npm-check-updates": "^16.14.18", + "npm-check-updates": "^16.14.20", "npm-run-all": "^4.1.5", "postcss": "^8.4.38", "postcss-dir-pseudo-class": "^8.0.1", @@ -86,7 +86,7 @@ "preact": "^10.20.2", "rimraf": "^5.0.5", "sass": "^1.75.0", - "simple-icons": "^11.13.0", + "simple-icons": "^11.14.0", "stylelint": "^15.11.0", "stylelint-config-recess-order": "4.2.0", "stylelint-config-recommended": "^13.0.0",