summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-01-20 22:01:19 +0100
committerMichał Górny <mgorny@gentoo.org>2023-01-20 22:38:20 +0100
commitade3d2cac86b0badd0bb03709c842c29411f9ae6 (patch)
treea0744726ae3502ce58d101e30815c302fca9244b /dev-python/pymdown-extensions
parentdev-python/sphinx-autodoc-typehints: Bump to 1.21.7 (diff)
downloadgentoo-ade3d2cac86b0badd0bb03709c842c29411f9ae6.tar.gz
gentoo-ade3d2cac86b0badd0bb03709c842c29411f9ae6.tar.bz2
gentoo-ade3d2cac86b0badd0bb03709c842c29411f9ae6.zip
dev-python/pymdown-extensions: Bump to 9.9.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pymdown-extensions')
-rw-r--r--dev-python/pymdown-extensions/Manifest1
-rw-r--r--dev-python/pymdown-extensions/pymdown-extensions-9.9.2.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/pymdown-extensions/Manifest b/dev-python/pymdown-extensions/Manifest
index 93c5e82e6144..15aa7b40eddb 100644
--- a/dev-python/pymdown-extensions/Manifest
+++ b/dev-python/pymdown-extensions/Manifest
@@ -1,2 +1,3 @@
DIST pymdown-extensions-9.9.1.gh.tar.gz 1017213 BLAKE2B ba445aa93f044a0df91f99c362bbef0dbdc15c4edfa18e938c8e55398c4b8844a1124d48c36789a7b190350701ce685c7b6a6c04bb220ad1255417ca1526b60c SHA512 082cb6ed83f48495a01269be613a77f6fce75e297c136d1b17edd07cbdd11e7ed148b6a3a8d90c8bcfe62ce89e260762e0bdccc7e68c53f233c68a3e00b21bc5
+DIST pymdown-extensions-9.9.2.gh.tar.gz 1017219 BLAKE2B d41f0863654c3d4aa6a947f5fef9d0029368e4a990f48a6997ecd1a0196a6b70198a698a22bfe536217bc001b4d21b69b2d5e3b479616825787648ef33ad1a9b SHA512 7f89f527f4d28ee31bf74dfd2343509592d287e1196e8a5045bbeaa5f2a038defc36e5b52ed53064f6cc797534032ed7a9e733070ff68db099e41614b07e417c
DIST pymdown-extensions-9.9.gh.tar.gz 1013192 BLAKE2B 51b9baf40f8a40f3553529f0670a895d141b3b92c2b5a66b215e8551246c20ba7b96891714b2012a005056b1534d72bb0cc644cc719b230ae1f3bb03e2258203 SHA512 000ca793d891abdbeac3c9902c25d842d5ed2c209a0e32deb5cdab41f2019dc85e0be41abdbecc369b4def1291d30e4bf9a71e86d522f45d629423b4d42c6d8b
diff --git a/dev-python/pymdown-extensions/pymdown-extensions-9.9.2.ebuild b/dev-python/pymdown-extensions/pymdown-extensions-9.9.2.ebuild
new file mode 100644
index 000000000000..2fc24c94f031
--- /dev/null
+++ b/dev-python/pymdown-extensions/pymdown-extensions-9.9.2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{9..11} )
+
+DOCS_BUILDER="mkdocs"
+DOCS_DEPEND="
+ dev-python/mkdocs-git-revision-date-localized-plugin
+ dev-python/mkdocs-minify-plugin
+ dev-python/mkdocs-material
+ dev-python/pymdown-lexers
+ dev-python/pyspelling
+"
+DOCS_INITIALIZE_GIT=1
+
+inherit distutils-r1 docs
+
+DESCRIPTION="Extensions for Python Markdown"
+HOMEPAGE="
+ https://github.com/facelessuser/pymdown-extensions/
+ https://pypi.org/project/pymdown-extensions/
+"
+SRC_URI="
+ https://github.com/facelessuser/pymdown-extensions/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~riscv ~x86"
+
+RDEPEND="
+ >=dev-python/markdown-3.2[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+ test? (
+ >=dev-python/pygments-2.12.0[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_compile_all() {
+ default
+ # We need to do this manually instead of relying on docs_compile
+ # https://bytemeta.vip/repo/facelessuser/pymdown-extensions/issues/1446
+ # https://bugs.gentoo.org/859637
+ if use doc; then
+ python -m mkdocs build || die "Failed to make docs"
+ # Colliding files found by ecompress:
+ rm site/sitemap.xml.gz || die
+ HTML_DOCS=( "site/." )
+ fi
+}