diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-10 13:34:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-10 13:34:01 +0100 |
commit | bba7ed73af4fe3b333cb970dc40a9098e2d1c54b (patch) | |
tree | 4a2377c9096a6e85935bc1b24a50c09537fbb3ca /dev-python/hatchling | |
parent | f69024d0d689548234c6173dc2d8a5bb466b0525 (diff) |
gentoo auto-resync : 10:10:2022 - 13:34:00
Diffstat (limited to 'dev-python/hatchling')
-rw-r--r-- | dev-python/hatchling/Manifest | 2 | ||||
-rw-r--r-- | dev-python/hatchling/hatchling-1.11.0.ebuild | 77 |
2 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/hatchling/Manifest b/dev-python/hatchling/Manifest index bd8860c984e6..c95fe4277232 100644 --- a/dev-python/hatchling/Manifest +++ b/dev-python/hatchling/Manifest @@ -1,7 +1,9 @@ DIST hatch-hatchling-v1.10.0.gh.tar.gz 256897 BLAKE2B 87a15624018d9919f29304f44520649465514bc594d266c152d28c08b99635b6f2d9b2f0ef68604e4d497860162cf9224d68ac78c22291fb80585a341a5d9704 SHA512 afb7f634f819cb3b914ede5c818a587f4a75f3a2c8e753f265f973e9b7d9c53e030dfdfdc862fb5b44cbdfd2564b1b863e3f12d7b7a31b4b62f7e316267de9c7 +DIST hatch-hatchling-v1.11.0.gh.tar.gz 364776 BLAKE2B 75cb39a336317b6c3a9168b5c994ad26fb303b75c7dcba8b2c92e7e6ffddfad6068b1336b203ce7944573df7a19ab920c6da5bbf12ac158e9c57bf196304bc7b SHA512 9e8b05058c61dd58a2ed3537ba9f007661804cce855648218ab717e184ea66ed307be53af8af449181ef0f9aa4e04afe2bc6ff6169934a84f33d804ddb70091b DIST hatch-hatchling-v1.8.1.gh.tar.gz 1525669 BLAKE2B d1c33648eb202d57448f4f01d724361bce0db2ca25b1445f2c5bdec5f517f0ddfa961d07ff6d76ba7f326d1feae524a1f6600b563ad6f8bd504c7d00e1b1316d SHA512 d1878085adfd00e4efe7bbd5d70bf76e2d34bd42f0ef4dfc813088025dcc9d180605013a0acd9e24b3da86087dcf9bbb37be76528001034282f7a30a6ccbc20b DIST hatch-hatchling-v1.9.0.gh.tar.gz 252859 BLAKE2B 7fe0e06b26808ab47c8deead09744c32b2806327944ca799fe1b919ffe34227b7f51c0c5c7a7cad5b3a08b61acc10a0f9528048f3a4a45cf53efece64005fe9d SHA512 b99de517e6a049910e119fea9de667dc87782ff6400a8b730bb402c6337176f39a8e956d69e71561e413b80710b651421eb320d2b1b747b1818c97607c456c78 EBUILD hatchling-1.10.0-r1.ebuild 2047 BLAKE2B 78e33b9a54d12c6f38a070aa993b508ff4c770de9b640b927ddaed066496946879f140308c185c59e9d11afa84760b0b82f21f6296cdf3bf47821b0168ab67b9 SHA512 9901072d1d47a852942385891350387dd3208faa608a5ad65ddedde2ef419d2802b0b2e7659552577587e942df065797298a26065e4650713ba90e26b3fb4a78 +EBUILD hatchling-1.11.0.ebuild 2090 BLAKE2B bcd3d25d3065cd4ddbab031c8390a4e8fd74003ef491f384d7809af875c2bcd3b4870256639ed1ece8cc307e2d604dab8210f960a5cbdb51f83df8b9d7612096 SHA512 e25eed96a2cbd215e7702c7bf70cb81f288916e8ba6b32b6fce11967b92778a65cb53508910b47b10d8a5c3ca779492a636cfcb137bab705050fc77c5be65307 EBUILD hatchling-1.8.1.ebuild 1980 BLAKE2B 0c537198ec4cead26561b0781f68f6062ba8845cc56e68ba482ebead4618ab86cb5418234524939c1fb69b09a44993fdf2bf222e75f254b0139c66669ca38d59 SHA512 6036e99f5bc40b79197476c7e3201b6b003fa36269d63b36a1f40db9f912dc1467b037a891292d586b36cc0c79a8999ce3bf7f3dc82cecbff0cb7d4d149be316 EBUILD hatchling-1.9.0-r1.ebuild 1991 BLAKE2B 704ecc809e93e0204b1219278d9a38c579911f82a159b2ecbd0733a107a6a16365228c3332301206142d343452965353842cc4a8978c4485de76b363900e77bd SHA512 d0265854453c13019d2d89dd8246ceda992ac9f508c8b76885f52ccb16f5f5cfe5d75e47b16166a0107b48eca2d9ac944cffeda3665018d8771756129d62f4cb MISC metadata.xml 365 BLAKE2B 5a40a6cf6df042e6e8387830babd0171c9d8bc5d490fe2175b83d1588d827e826b49044ef29de48553515996b742fc475bb9699dcfa8ec05229162b22e0ed317 SHA512 f11bb25bc12c2bb0b0a0a4691115b9a2af525d9e44b33e0d6db98c7fcef0b49b5989fb7574ee8b27bc88f1dd2543bfdd492a6614de172e2c4edabbee8bf6161e diff --git a/dev-python/hatchling/hatchling-1.11.0.ebuild b/dev-python/hatchling/hatchling-1.11.0.ebuild new file mode 100644 index 000000000000..20362b7c383c --- /dev/null +++ b/dev-python/hatchling/hatchling-1.11.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 2022 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 +} |