diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
commit | e68d405c5d712af4387159df07e226217bdda049 (patch) | |
tree | 009ab0f3d427f0813e62930d71802cb054c07e30 /dev-python/hatchling | |
parent | 401101f9c8077911929d3f2b60a37098460a5d89 (diff) |
gentoo resync : 06.04.2022
Diffstat (limited to 'dev-python/hatchling')
-rw-r--r-- | dev-python/hatchling/Manifest | 3 | ||||
-rw-r--r-- | dev-python/hatchling/hatchling-0.22.0.ebuild | 69 | ||||
-rw-r--r-- | dev-python/hatchling/metadata.xml | 11 |
3 files changed, 83 insertions, 0 deletions
diff --git a/dev-python/hatchling/Manifest b/dev-python/hatchling/Manifest new file mode 100644 index 000000000000..ac468fea20a0 --- /dev/null +++ b/dev-python/hatchling/Manifest @@ -0,0 +1,3 @@ +DIST hatch-hatchling-v0.22.0.tar.gz 201590 BLAKE2B c75e48a19e10f04d9bb1d09beea0ec6598bded5dc9e595f363a076731b7708bae55169ee780931b548478c16db093053c65e30a5510f7b0136c1d339caf29d39 SHA512 cc532b66752d0494b62fb4ed88c8b7870d5618c991b301f46b644aa90b656cfe842efd2fa96797a6b96015deb3468ff8ff69058bd146133360de340d367a5489 +EBUILD hatchling-0.22.0.ebuild 1691 BLAKE2B f4a997908afc327a4348f71136e9ad3ba774ed2294d44351aa41941ae8973d34e9ccb55f5118e15881d287305e1089b4f2c25376fa085d48e82171a9cca1d3d5 SHA512 5cedb82d42b3bb3a60900c7c34625e9be918bbb086dcd9e003c6a36ba3a6943378d5e08b1378571758a87608fae0c09bbae9d6a3d94a23fa54577712e6b6de7b +MISC metadata.xml 341 BLAKE2B 94a9d7b86eadbbbe1f9ff17aba7e7df351f0368e354ea9e0d35da99099f46001c5f63e96b3d3cdea486b17f26bc2e04b309413e9aaf3aaab7386534d46ea9a3a SHA512 b844b05e46d727699a6bd5adee91734b02caf21ad537032235b4cfc3f2a2d715ac49cc713269babf18b34e2a72450668fc18f8cbb6ca950ead37b97406c5ec97 diff --git a/dev-python/hatchling/hatchling-0.22.0.ebuild b/dev-python/hatchling/hatchling-0.22.0.ebuild new file mode 100644 index 000000000000..2129e316e6e4 --- /dev/null +++ b/dev-python/hatchling/hatchling-0.22.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{8..10} ) + +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/ofek/hatch/ +" +SRC_URI=" + https://github.com/ofek/hatch/archive/${TAG}.tar.gz + -> ${MY_P}.tar.gz +" +S=${WORKDIR}/${MY_P}/backend + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/editables-0.2[${PYTHON_USEDEP}] + >=dev-python/packaging-21.3[${PYTHON_USEDEP}] + >=dev-python/pathspec-0.9[${PYTHON_USEDEP}] + >=dev-python/pluggy-1.0.0[${PYTHON_USEDEP}] + >=dev-python/tomli-1.2.2[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/atomicwrites[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/rich[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_compile() { + # TODO: remove this when gpep517 is the norm + local -x PYTHONPATH=src + distutils-r1_python_compile +} + +python_test() { + local -x EPYTEST_DESELECT=( + # these run pip to install stuff + tests/backend/dep/test_core.py::test_dependency_found + tests/backend/dep/test_core.py::test_extra_met + tests/backend/dep/test_core.py::test_extra_no_dependencies + tests/backend/dep/test_core.py::test_extra_unmet + tests/backend/dep/test_core.py::test_unknown_extra + tests/backend/dep/test_core.py::test_version_unmet + ) + + # top-level "tests" directory contains tests both for hatch + # and hatchling + cd "${WORKDIR}/${MY_P}" || die + local -x PYTHONPATH="src:${PYTHONPATH}" + epytest -x tests/backend +} diff --git a/dev-python/hatchling/metadata.xml b/dev-python/hatchling/metadata.xml new file mode 100644 index 000000000000..d4956b531605 --- /dev/null +++ b/dev-python/hatchling/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">ofek/hatch</remote-id> + <remote-id type="pypi">hatchling</remote-id> + </upstream> +</pkgmetadata> |