mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
dev-python/devtools: add 0.12.2
Closes: https://bugs.gentoo.org/910242 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
parent
c4261146c8
commit
83aaf50591
@ -1 +1,2 @@
|
||||
DIST devtools-0.10.0.tar.gz 68374 BLAKE2B 81ffea515c8c11b591e2235a0ad6d61ea4c21bcd8ab33aa80cae2848da7de4bddb34e54be2e41c4122ef2c1b1a5d20c33f9c4181bef4101063af5619dbd66da8 SHA512 b7fe4cb57863b60bfd01280e24edeae77cc349c8719c8c5610e9e82c36d5de7b32ff978ca0c6254787c98a6d25642d576835e6798c5ea24fcd72a10b5d8aed70
|
||||
DIST devtools-0.12.2.tar.gz 75005 BLAKE2B 5f91ce636bd6cd9dee970f0d7ef8321d25aac3fc15c6d6222680da2b42582bc605ee5e041b73e4cfea8d0ef06b67d1774f87fca90d1a9764d2ee9f17c27327a3 SHA512 e185581bca94dd20d7043512701970d2b310dee6836707a1cf540f39799570e15d5f1d026952d2def6be201eed1d6b328fef975c3c3631dd7ab3a8bf37c48fd9
|
||||
|
64
dev-python/devtools/devtools-0.12.2.ebuild
Normal file
64
dev-python/devtools/devtools-0.12.2.ebuild
Normal file
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
DOCS_BUILDER=mkdocs
|
||||
DOCS_DEPEND="
|
||||
dev-python/ansi2html
|
||||
dev-python/markdown-include
|
||||
dev-python/mkdocs-exclude
|
||||
dev-python/mkdocs-material
|
||||
"
|
||||
|
||||
inherit distutils-r1 docs pypi
|
||||
|
||||
DESCRIPTION="Dev tools for python"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/devtools/
|
||||
https://github.com/samuelcolvin/python-devtools
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/asttokens[${PYTHON_USEDEP}]
|
||||
dev-python/executing[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
doc? (
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
)
|
||||
test? (
|
||||
dev-python/asyncpg[${PYTHON_USEDEP}]
|
||||
dev-python/multidict[${PYTHON_USEDEP}]
|
||||
dev-python/pydantic[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||
dev-python/sqlalchemy[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
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
|
17
dev-python/devtools/files/devtools-0.12.2-mkdocs-hooks.patch
Normal file
17
dev-python/devtools/files/devtools-0.12.2-mkdocs-hooks.patch
Normal 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user