dev-python/devtools - 0.12.2 (guru)

Search

Install

Install this version:

emerge -a =dev-python/devtools-0.12.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/devtools-0.12.2

Or alternatively:

emerge --autounmask-write -a =dev-python/devtools-0.12.2

Package Information

Description:
Dev tools for python
Homepage:
https://pypi.org/project/devtools/ https://github.com/samuelcolvin/python-devtools
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.12.2 8 ~amd64 0
View Raw Ebuild
# 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_12 )

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

Inherited Eclasses

Dependencies

RDEPEND

	dev-python/asttokens[]
	dev-python/executing[]
	dev-python/pygments[]

BDEPEND

	test? (
		dev-python/asyncpg[]
		dev-python/multidict[]
		dev-python/pydantic[]
		dev-python/pytest-mock[]
		dev-python/sqlalchemy[]
	)