summaryrefslogtreecommitdiff
path: root/dev-python/devtools
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
commitbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch)
tree0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-python/devtools
parentf716a9fe6455d39eef01e718aae68dae61c19704 (diff)
downloadbaldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-python/devtools')
-rw-r--r--dev-python/devtools/Manifest1
-rw-r--r--dev-python/devtools/devtools-0.12.2-r1.ebuild53
-rw-r--r--dev-python/devtools/files/devtools-0.12.2-mkdocs-hooks.patch17
-rw-r--r--dev-python/devtools/metadata.xml16
4 files changed, 87 insertions, 0 deletions
diff --git a/dev-python/devtools/Manifest b/dev-python/devtools/Manifest
new file mode 100644
index 000000000000..7753719f9523
--- /dev/null
+++ b/dev-python/devtools/Manifest
@@ -0,0 +1 @@
+DIST devtools-0.12.2.tar.gz 75005 BLAKE2B 5f91ce636bd6cd9dee970f0d7ef8321d25aac3fc15c6d6222680da2b42582bc605ee5e041b73e4cfea8d0ef06b67d1774f87fca90d1a9764d2ee9f17c27327a3 SHA512 e185581bca94dd20d7043512701970d2b310dee6836707a1cf540f39799570e15d5f1d026952d2def6be201eed1d6b328fef975c3c3631dd7ab3a8bf37c48fd9
diff --git a/dev-python/devtools/devtools-0.12.2-r1.ebuild b/dev-python/devtools/devtools-0.12.2-r1.ebuild
new file mode 100644
index 000000000000..90e7aa542dfd
--- /dev/null
+++ b/dev-python/devtools/devtools-0.12.2-r1.ebuild
@@ -0,0 +1,53 @@
+# 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_{13..14} )
+
+inherit distutils-r1 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="
+ 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 000000000000..cb305922d3e0
--- /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
+
diff --git a/dev-python/devtools/metadata.xml b/dev-python/devtools/metadata.xml
new file mode 100644
index 000000000000..f1f2d4f8a7fd
--- /dev/null
+++ b/dev-python/devtools/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <maintainer>
+ <name>Samuel Colvin</name>
+ <email>s@muelcolvin.com</email>
+ </maintainer>
+ <changelog>https://github.com/samuelcolvin/python-devtools/releases</changelog>
+ <doc>https://python-devtools.helpmanual.io/</doc>
+ <bugs-to>https://github.com/samuelcolvin/python-devtools/issues</bugs-to>
+ <remote-id type="github">samuelcolvin/python-devtools</remote-id>
+ <remote-id type="pypi">devtools</remote-id>
+ </upstream>
+</pkgmetadata>