Merge updates from master

This commit is contained in:
Repository mirror & CI
2025-01-09 15:48:44 +00:00
3 changed files with 39 additions and 5 deletions

View File

@@ -1 +1 @@
DIST devtools-0.10.0.tar.gz 68374 BLAKE2B 81ffea515c8c11b591e2235a0ad6d61ea4c21bcd8ab33aa80cae2848da7de4bddb34e54be2e41c4122ef2c1b1a5d20c33f9c4181bef4101063af5619dbd66da8 SHA512 b7fe4cb57863b60bfd01280e24edeae77cc349c8719c8c5610e9e82c36d5de7b32ff978ca0c6254787c98a6d25642d576835e6798c5ea24fcd72a10b5d8aed70
DIST devtools-0.12.2.tar.gz 75005 BLAKE2B 5f91ce636bd6cd9dee970f0d7ef8321d25aac3fc15c6d6222680da2b42582bc605ee5e041b73e4cfea8d0ef06b67d1774f87fca90d1a9764d2ee9f17c27327a3 SHA512 e185581bca94dd20d7043512701970d2b310dee6836707a1cf540f39799570e15d5f1d026952d2def6be201eed1d6b328fef975c3c3631dd7ab3a8bf37c48fd9

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,12 +7,12 @@ DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{10..12} )
DOCS_BUILDER=mkdocs
DOCS_DEPEND=(
DOCS_DEPEND="
dev-python/ansi2html
dev-python/markdown-include
dev-python/mkdocs-exclude
dev-python/mkdocs-material
)
"
inherit distutils-r1 docs pypi
@@ -34,9 +34,11 @@ RDEPEND="
dev-python/pygments[${PYTHON_USEDEP}]
"
BDEPEND="
doc? (
dev-python/numpy[${PYTHON_USEDEP}]
)
test? (
dev-python/asyncpg[${PYTHON_USEDEP}]
dev-python/coverage[${PYTHON_USEDEP}]
dev-python/multidict[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
@@ -44,4 +46,19 @@ BDEPEND="
)
"
PATCHES=(
# replace mkdocs-simple-hooks with built-in hooks
"${FILESDIR}/${P}-mkdocs-hooks.patch"
)
EPYTEST_DESELECT=(
# requires pytest-pretty
tests/test_insert_assert.py::test_insert_assert
tests/test_insert_assert.py::test_insert_assert_print
tests/test_insert_assert.py::test_deep
tests/test_insert_assert.py::test_enum
# incompatible with dev-python/executing-2
tests/test_expr_render.py::test_executing_failure
)
distutils_enable_tests pytest

View File

@@ -0,0 +1,17 @@
Replace mkdocs-simple-hooks with built-in hooks so we don't need to
pacakge the plugin.
https://www.mkdocs.org/user-guide/configuration/#hooks
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -56,8 +56,5 @@ plugins:
- build/*
- examples/*
- requirements.txt
-- mkdocs-simple-hooks:
- hooks:
- on_pre_build: 'docs.plugins:on_pre_build'
- on_files: 'docs.plugins:on_files'
- on_page_markdown: 'docs.plugins:on_page_markdown'
+hooks:
+ - docs/plugins.py