dev-python/hatchling: Sync with Gentoo

It's from Gentoo commit 038e94a19b097e5c186a09403e8853b2ffd08416.
This commit is contained in:
Flatcar Buildbot 2025-06-16 07:08:48 +00:00 committed by Krzesimir Nowak
parent aed795bcdd
commit 2d55102905

View File

@ -4,8 +4,8 @@
EAPI=8
DISTUTILS_USE_PEP517=standalone
PYTHON_TESTED=( pypy3 pypy3_11 python3_{10..13} )
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_13t )
PYTHON_TESTED=( pypy3_11 python3_{11..14} )
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_{13,14}t )
inherit distutils-r1
@ -25,6 +25,8 @@ S=${WORKDIR}/${MY_P}/backend
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="test"
RESTRICT="!test? ( test )"
# deps are listed in backend/src/hatchling/ouroboros.py
# editables are optional but required for editable installs
@ -46,6 +48,7 @@ BDEPEND="
dev-python/click[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
dev-python/platformdirs[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
dev-python/rich[${PYTHON_USEDEP}]
dev-python/tomli-w[${PYTHON_USEDEP}]
@ -54,8 +57,6 @@ BDEPEND="
)
"
distutils_enable_tests pytest
src_test() {
# top-level "tests" directory contains tests both for hatch
# and hatchling