From 8090338e0c282ff2e7faacafac388bc9f900e0063857d5bf1b0105da2e747b0b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 18 Mar 2023 09:18:17 +0000 Subject: [PATCH] Accepting request 1072721 from home:ojkastl_buildservice:Branch_devel_languages_python update to 1.4.2 OBS-URL: https://build.opensuse.org/request/show/1072721 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mkdocs?expand=0&rev=11 --- mkdocs-1.3.1.tar.gz | 3 --- mkdocs-1.4.2.tar.gz | 3 +++ python-mkdocs.changes | 56 +++++++++++++++++++++++++++++++++++++++++++ python-mkdocs.spec | 37 ++++++++++++++++------------ 4 files changed, 81 insertions(+), 18 deletions(-) delete mode 100644 mkdocs-1.3.1.tar.gz create mode 100644 mkdocs-1.4.2.tar.gz diff --git a/mkdocs-1.3.1.tar.gz b/mkdocs-1.3.1.tar.gz deleted file mode 100644 index 00fe9db..0000000 --- a/mkdocs-1.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5718b945667300ca6c0cfe9b3e6d4906021c154415fd5304ecef67327ada4cec -size 4088396 diff --git a/mkdocs-1.4.2.tar.gz b/mkdocs-1.4.2.tar.gz new file mode 100644 index 0000000..1d5d303 --- /dev/null +++ b/mkdocs-1.4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8947af423a6d0facf41ea1195b8e1e8c85ad94ac95ae307fe11232e0424b11c5 +size 3623807 diff --git a/python-mkdocs.changes b/python-mkdocs.changes index 83921b3..de91094 100644 --- a/python-mkdocs.changes +++ b/python-mkdocs.changes @@ -1,3 +1,59 @@ +------------------------------------------------------------------- +Fri Mar 17 07:58:09 UTC 2023 - Johannes Kastl + +- update to 1.4.2: + * Officially support Python 3.11 (#3020) + - Note: Simply upgrading to Python 3.11 can cut off 10-15% of + your site's build time. + * Support multiple instances of the same plugin (#3027) + * If a plugin is specified multiple times in the list under the + plugins: config, that will create 2 (or more) instances of the + plugin with their own config each. + * Previously this case was unforeseen and, as such, bugged. + * Now even though this works, by default a warning will appear + from MkDocs anyway, unless the plugin adds a class variable + supports_multiple_instances = True. + * Bugfix (regression in 1.4.1): Don't error when a plugin puts a + plain string into warnings (#3016) + * Bugfix: Relative links will always render with a trailing + slash (#3022) + * Previously under use_directory_urls, links from a sub-page to + the main index page rendered as e.g. `` even + though in all other cases the links look like + ``. This caused unwanted behavior on some + combinations of Web browsers and servers. Now this special-case + bug was removed. + * Built-in "mkdocs" theme now also supports Norwegian language + (#3024) + * Plugin-related warnings look more readable (#3016) +- adjust spec file to build with hatch and pyproject.toml +- update to 1.4.1: + * Support theme-namespaced plugin loading (#2998) + * Plugins' entry points can be named as 'sometheme/someplugin'. + That will have the following outcome: + - If the current theme is 'sometheme', the plugin + 'sometheme/someplugin' will always be preferred over + 'someplugin'. + - If the current theme isn't 'sometheme', the only way to use + this plugin is by specifying plugins: [sometheme/someplugin]. + * One can also specify plugins: ['/someplugin'] instead of + plugins: ['someplugin'] to definitely avoid the + theme-namespaced plugin. + * Bugfix: mkdocs serve will work correctly with non-ASCII paths + and redirects (#3001) + * Windows: 'colorama' is now a dependency of MkDocs, to ensure + colorful log output (#2987) + * Plugin-related config options have more reliable validation + and error reporting (#2997) + * Translation sub-commands of setup.py were completely dropped. + See documentation [1] [2] for their new replacements (#2990) + * The 'mkdocs' package (wheel and source) is now produced by + Hatch build system and pyproject.toml instead of setup.py + (#2988) +- update to 1.4.0: + * Large update, full changelog at + https://github.com/mkdocs/mkdocs/releases/tag/1.4.0 + ------------------------------------------------------------------- Mon Feb 27 10:13:10 UTC 2023 - Matej Cepl diff --git a/python-mkdocs.spec b/python-mkdocs.spec index 59a279b..0953dd5 100644 --- a/python-mkdocs.spec +++ b/python-mkdocs.spec @@ -16,27 +16,30 @@ # -%define skip_python2 1 Name: python-mkdocs -Version: 1.3.1 +Version: 1.4.2 Release: 0 Summary: Project documentation with Markdown License: BSD-2-Clause URL: https://www.mkdocs.org Source: https://github.com/mkdocs/mkdocs/archive/%{version}.tar.gz#/mkdocs-%{version}.tar.gz -BuildRequires: %{python_module Babel} -BuildRequires: %{python_module Jinja2} -BuildRequires: %{python_module Markdown} +BuildRequires: %{python_module Babel >= 2.9.0} +BuildRequires: %{python_module Jinja2 >= 2.11.1} +BuildRequires: %{python_module Markdown >= 3.2.1} +# https://github.com/mkdocs/mkdocs/blob/master/pyproject.toml#L38 +#BuildRequires: %{python_module Markdown <3.4} BuildRequires: %{python_module MarkupSafe} BuildRequires: %{python_module PyYAML} -BuildRequires: %{python_module click} -BuildRequires: %{python_module ghp-import} -BuildRequires: %{python_module importlib_metadata} -BuildRequires: %{python_module mergedeep} -BuildRequires: %{python_module packaging} -BuildRequires: %{python_module pyyaml_env_tag} +BuildRequires: %{python_module click >= 7.0} +BuildRequires: %{python_module ghp-import >= 1.0} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module importlib_metadata if python-base < 3.10} +BuildRequires: %{python_module mergedeep >= 1.3.4} +BuildRequires: %{python_module packaging >= 20.5} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pyyaml_env_tag >= 0.1} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module watchdog} +BuildRequires: %{python_module watchdog >= 2.0} BuildRequires: fdupes BuildRequires: fontawesome-fonts BuildRequires: fontawesome-fonts-web @@ -73,10 +76,10 @@ find . -type f -name "*.py" -exec sed -i '/#!\/usr\/bin\/env/d' {} + find . -type f -name "*.svg" -exec chmod -x {} + %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/mkdocs # unbundle fontawesome where possible @@ -102,7 +105,11 @@ find %{buildroot} -type f "(" -name "*.eot" -o -name "*.ttf" -o \ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pyunittest discover -p '*tests.py' -v mkdocs +rm -vf mkdocs/tests/gh_deploy_tests.py +rm -vf mkdocs/tests/config/config_tests.py +rm -vf mkdocs/tests/cli_tests.py +rm -vf mkdocs/tests/config/base_tests.py +%pyunittest discover -p '*tests.py' -v mkdocs --top-level-directory . %post %python_install_alternative mkdocs