diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-01 08:21:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-01 08:21:34 +0000 |
commit | 1581db777aa413144ae9aaff70602eae670c8b93 (patch) | |
tree | adb2d2c6f2a5f0843b82a50ceb35f9f286924c4e /dev-python/hatchling | |
parent | d682a95de35077b0728025627e082b67339fa249 (diff) |
gentoo auto-resync : 01:01:2023 - 08:21:34
Diffstat (limited to 'dev-python/hatchling')
-rw-r--r-- | dev-python/hatchling/Manifest | 2 | ||||
-rw-r--r-- | dev-python/hatchling/hatchling-1.12.1.ebuild | 77 |
2 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/hatchling/Manifest b/dev-python/hatchling/Manifest index f96a0455bf49..50dcc0baefbf 100644 --- a/dev-python/hatchling/Manifest +++ b/dev-python/hatchling/Manifest @@ -1,5 +1,7 @@ DIST hatch-hatchling-v1.11.1.gh.tar.gz 367624 BLAKE2B 006f9f9ab266eba7b7e489d4359a9ddb17a6e079c31e189662da8c4d090884eeae4bf108301d5c315d823e92cb813841e41211cc55618f4ee9109bccdde61e1e SHA512 7bdf5a2930950503dbe534f6ead724ed84420193ba55137600a5b98a085e94588e333bb5a14ad944746dc400522ebbea4849718686420fd6ed7de3d6e8852d8e DIST hatch-hatchling-v1.12.0.gh.tar.gz 379902 BLAKE2B 831ab78bff6a039a1941ca171aaccbfb97d1d31c14505d3dde60ee4283b317cc80b6e6072b63fe9e69cccbf759bf4f7db6a371502451ffa5303547273e8d2341 SHA512 40c1684bcc730e809cdbda9d15494f07bead69b1b4bf9c98a1d2a84d2053bb7b104d6bcab1e72a4de66081dd839b7ccae96d877760353e3528e8676cea5d2a5c +DIST hatch-hatchling-v1.12.1.gh.tar.gz 380805 BLAKE2B da99130ac6d07517976a6e078e8a35896202e066b124ec96577cc1e57f59a2b3476623b9af15dd9e04b2d69e7219c13ad71e55c3bf02e7beee1a10bf37ee5882 SHA512 8a8cc7fa706dcbb95bf35525351dbf0e5dc61041c7e210d81479df84cd40019b727c4244cb83af93c466f676fcf1279155f470c80e63689af01efcb0f38cdb25 EBUILD hatchling-1.11.1.ebuild 2082 BLAKE2B 0f9d32f0b2ca899bb82c4d409b438345c9596ff2a87f789ee941ca0e31e03405755e80ef98e7fd9c0995083966db741f0a31e9d211a6f3c5f0c54b701848a709 SHA512 ab4353e61b1ac31137819b304eb2e1b2990cec970dedc401dd67b4bb46fbb60d3f1d7d3f00f4ef2ae773f674d94bdc1afe454a519742922787ca104f99fc088e EBUILD hatchling-1.12.0.ebuild 2090 BLAKE2B bcd3d25d3065cd4ddbab031c8390a4e8fd74003ef491f384d7809af875c2bcd3b4870256639ed1ece8cc307e2d604dab8210f960a5cbdb51f83df8b9d7612096 SHA512 e25eed96a2cbd215e7702c7bf70cb81f288916e8ba6b32b6fce11967b92778a65cb53508910b47b10d8a5c3ca779492a636cfcb137bab705050fc77c5be65307 +EBUILD hatchling-1.12.1.ebuild 2095 BLAKE2B e096605ba3d5fa107cec3c9b349fdfa194f01fe776598c89ca723ec5409825d41694472e53bcd20193486de1243d206e24fff8e4e5ace2345235dfcadb3cc31f SHA512 1a0cd066e02af9d600664c8c06a64236f40fbbc2bf11834055042b145b215b6e3a6a65b074a382446c924814b550b1bffe06087df35f3d6c5c125a62b5ab1366 MISC metadata.xml 365 BLAKE2B 5a40a6cf6df042e6e8387830babd0171c9d8bc5d490fe2175b83d1588d827e826b49044ef29de48553515996b742fc475bb9699dcfa8ec05229162b22e0ed317 SHA512 f11bb25bc12c2bb0b0a0a4691115b9a2af525d9e44b33e0d6db98c7fcef0b49b5989fb7574ee8b27bc88f1dd2543bfdd492a6614de172e2c4edabbee8bf6161e diff --git a/dev-python/hatchling/hatchling-1.12.1.ebuild b/dev-python/hatchling/hatchling-1.12.1.ebuild new file mode 100644 index 000000000000..dca74863e93a --- /dev/null +++ b/dev-python/hatchling/hatchling-1.12.1.ebuild @@ -0,0 +1,77 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYTHON_TESTED=( pypy3 python3_{8..11} ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) + +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="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# deps are listed in backend/src/hatchling/ouroboros.py +RDEPEND=" + >=dev-python/editables-0.3[${PYTHON_USEDEP}] + >=dev-python/packaging-21.3[${PYTHON_USEDEP}] + >=dev-python/pathspec-0.10.1[${PYTHON_USEDEP}] + >=dev-python/pluggy-1.0.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/tomli-1.2.2[${PYTHON_USEDEP}] + ' 3.8 3.9 3.10) +" +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/rich[${PYTHON_USEDEP}] + dev-python/tomli-w[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + ' "${PYTHON_TESTED[@]}") + ) +" + +distutils_enable_tests pytest + +python_test() { + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then + einfo "Skipping tests on ${EPYTHON}" + return + fi + + 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 tests/backend +} |