* [gentoo-commits] repo/proj/guru:master commit in: dev-python/devtools/files/, dev-python/devtools/
@ 2025-01-09 15:44 Julien Roy
0 siblings, 0 replies; only message in thread
From: Julien Roy @ 2025-01-09 15:44 UTC (permalink / raw
To: gentoo-commits
commit: 83aaf5059102d1da39dba523a2420021419f35f6
Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Thu Jan 9 15:18:56 2025 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Thu Jan 9 15:18:56 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=83aaf505
dev-python/devtools: add 0.12.2
Closes: https://bugs.gentoo.org/910242
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>
dev-python/devtools/Manifest | 1 +
dev-python/devtools/devtools-0.12.2.ebuild | 64 ++++++++++++++++++++++
.../files/devtools-0.12.2-mkdocs-hooks.patch | 17 ++++++
3 files changed, 82 insertions(+)
diff --git a/dev-python/devtools/Manifest b/dev-python/devtools/Manifest
index cd7e574bd..fc4650cdc 100644
--- a/dev-python/devtools/Manifest
+++ b/dev-python/devtools/Manifest
@@ -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
diff --git a/dev-python/devtools/devtools-0.12.2.ebuild b/dev-python/devtools/devtools-0.12.2.ebuild
new file mode 100644
index 000000000..db7e933b1
--- /dev/null
+++ b/dev-python/devtools/devtools-0.12.2.ebuild
@@ -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
diff --git a/dev-python/devtools/files/devtools-0.12.2-mkdocs-hooks.patch b/dev-python/devtools/files/devtools-0.12.2-mkdocs-hooks.patch
new file mode 100644
index 000000000..cb305922d
--- /dev/null
+++ b/dev-python/devtools/files/devtools-0.12.2-mkdocs-hooks.patch
@@ -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
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-09 15:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-09 15:44 [gentoo-commits] repo/proj/guru:master commit in: dev-python/devtools/files/, dev-python/devtools/ Julien Roy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox