guru/dev-python/devtools/devtools-0.12.2.ebuild
Anna (cybertailor) Vyalkova bb0aae8ad3
*/*: disable py3.10
Python 3.10 target is scheduled for removal in Gentoo:
https://public-inbox.gentoo.org/gentoo-dev/e6ca9f1f4ababb79ab2a3d005c39b483c3ecef6e.camel@gentoo.org/

Sphinx 8.2.0 already dropped support for CPython 3.10 and PyPy 3.10,
leading to multiple CI failures in ::guru.

We can safely remove this target, because GURU is "experimental" and
does not have stable keywords.

Let's not remove "pypy3" right now because
a) There are not many packages using it.
b) So we can see which packages supported PyPy 3.10, and test them with
   PyPy 3.11.

Closes: https://github.com/gentoo/guru/pull/291
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2025-02-21 17:51:14 +05:00

65 lines
1.4 KiB
Bash

# 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_{11..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