diff options
| author | root <root@alpha.trunkmasters.com> | 2026-05-31 22:45:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-05-31 22:45:37 -0500 |
| commit | 82d2d56d8ab3efa4b84c244edd30175366bb6f81 (patch) | |
| tree | 00e9d2b76f9d6cd3fcbc9c9363f8fd565d11fe44 /dev-python/hatchling | |
| parent | 43306ef27d24d3d58fc4ca27fc6fd841a1893994 (diff) | |
| download | baldeagleos-repo-82d2d56d8ab3efa4b84c244edd30175366bb6f81.tar.gz baldeagleos-repo-82d2d56d8ab3efa4b84c244edd30175366bb6f81.tar.xz baldeagleos-repo-82d2d56d8ab3efa4b84c244edd30175366bb6f81.zip | |
Adding metadata
Diffstat (limited to 'dev-python/hatchling')
| -rw-r--r-- | dev-python/hatchling/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/hatchling/hatchling-1.30.0.ebuild | 98 |
2 files changed, 99 insertions, 0 deletions
diff --git a/dev-python/hatchling/Manifest b/dev-python/hatchling/Manifest index 6042bd813905..40d28131840e 100644 --- a/dev-python/hatchling/Manifest +++ b/dev-python/hatchling/Manifest @@ -1 +1,2 @@ DIST hatch-hatchling-v1.29.0.gh.tar.gz 5301488 BLAKE2B d1e36649483f213c56488caf018ad3a3310fafa944e11484ae613021e081999a80321d353c68cfb64bc149558e2c996b788f7b11a228d2f658175165d515bdcd SHA512 321f9ab996dcab54341653e2abf5bdb893c4ac307c62aa9f0dd222609a18f82cd502fb0d0ac598f109d519a0dc8ab40866a37d1ea4023d7d58fe442da7c32ff9 +DIST hatch-hatchling-v1.30.0.gh.tar.gz 5333904 BLAKE2B a3a728ad442a87e9b1461a4c5cfed5a870be935316fd3e1ed9ed4c86494245fd0c9d4309838b48e49ac37cc147cda32518fc2860e78109cc3bbc4a968ee53d57 SHA512 4b0baa12baac528663abb634397aa0a91b6df80937e8f12edffd50f93d3e37b5166bd97ab05d4b1838145daabff74ac3aaf18ec389cf37213796f6a7438c2c3b diff --git a/dev-python/hatchling/hatchling-1.30.0.ebuild b/dev-python/hatchling/hatchling-1.30.0.ebuild new file mode 100644 index 000000000000..4dc6cab42e77 --- /dev/null +++ b/dev-python/hatchling/hatchling-1.30.0.ebuild @@ -0,0 +1,98 @@ +# Copyright 2022-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYTHON_TESTED=( pypy3_11 python3_{11..14} ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_15 python3_{13..15}t ) + +inherit distutils-r1 + +TAG=${P/-/-v} +MY_P=hatch-${TAG} +DESCRIPTION="Modern, extensible Python build backend" +HOMEPAGE=" + https://pypi.org/project/hatchling/ + https://github.com/pypa/hatch/ +" +SRC_URI=" + https://github.com/pypa/hatch/archive/${TAG}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P}/backend + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-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 +RDEPEND=" + >=dev-python/editables-0.3[${PYTHON_USEDEP}] + >=dev-python/packaging-24.2[${PYTHON_USEDEP}] + >=dev-python/pathspec-0.10.1[${PYTHON_USEDEP}] + >=dev-python/pluggy-1.0.0[${PYTHON_USEDEP}] + dev-python/trove-classifiers[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( + $(python_gen_cond_dep ' + dev-python/atomicwrites[${PYTHON_USEDEP}] + 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}] + dev-python/virtualenv[${PYTHON_USEDEP}] + ' "${PYTHON_TESTED[@]}") + ) +" + +src_test() { + # top-level "tests" directory contains tests both for hatch + # and hatchling + cd "${WORKDIR}/${MY_P}" || die + + # sigh; standalone test suites are overrated, right? + echo "__version__ = '${PV}'" > src/hatch/_version.py || die + local -x PYTHONPATH="src:${PYTHONPATH}" + + # do not require uv for portability, sigh + mkdir "${T}/bin" || die + cat > "${T}/bin/uv" <<-EOF || die + #!/bin/sh + exit 127 + EOF + chmod +x "${T}/bin/uv" || die + local -x PATH=${T}/bin:${PATH} + + # tests mock cargo subprocess call but the backend raises if CARGO + # is not set and shutil.which() can't find it + local -x CARGO=cargo + + distutils-r1_src_test +} + +python_test() { + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then + einfo "Skipping tests on ${EPYTHON}" + return + fi + + local -x EPYTEST_DESELECT=( + # most of these run uv to install stuff + # the few remaining tests aren't worth running + tests/backend/dep/test_core.py + # broken if CARGO is set + tests/backend/builders/test_binary.py::TestBuildBootstrap::test_no_cargo + ) + + local EPYTEST_PLUGINS=( pytest-mock ) + epytest tests/backend +} |
