diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-15 12:22:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-15 12:22:30 +0100 |
commit | 3ad1879f00b279af69d6b9cd3ef97a2a7496d734 (patch) | |
tree | 497e5c46d6f6695b96866bc46abe1a2470a880b5 /dev-python/pkgcraft | |
parent | 792e307954fd3b5b12c968741d76ea7cfe5206e4 (diff) |
gentoo auto-resync : 15:08:2024 - 12:22:30
Diffstat (limited to 'dev-python/pkgcraft')
-rw-r--r-- | dev-python/pkgcraft/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pkgcraft/pkgcraft-0.0.11.ebuild | 81 | ||||
-rw-r--r-- | dev-python/pkgcraft/pkgcraft-9999.ebuild | 2 |
3 files changed, 85 insertions, 2 deletions
diff --git a/dev-python/pkgcraft/Manifest b/dev-python/pkgcraft/Manifest index 7016a6325b6c..178031b82124 100644 --- a/dev-python/pkgcraft/Manifest +++ b/dev-python/pkgcraft/Manifest @@ -1,6 +1,8 @@ DIST pkgcraft-0.0.10.tar.gz 452861 BLAKE2B f7f52e8c7c917701b08540cc8da8ee1f1ff7157b02e61d5cfa1b4ca6850ae8aac171dfdefe6ac611ce4971aff27d63614d4914178bf86c8a389e437d5fb43ba9 SHA512 1c3878256bfbeae05ceb9e7445e100a8e6601649aae634b02bdd00494075056fad014b724e2cfd76325dd06c664c1c90343f49f186c0b61bfe2d92bbed14abe4 +DIST pkgcraft-0.0.11.tar.gz 460263 BLAKE2B 5a05390f51dc0cfac2a333601c4296a5e7236262a82afcad74470cd8466933ae0abcc78b5422bd218ca86bcb35176f9d715b4449a8e76315a3dde91fe46cce19 SHA512 a6883db42e7572e1d0cf102372ad72e7276f3add492c14c11ff1654339c1504e96d9b3cf057762f1a35dd17d96f3f63140ebfc0d59d46538b97a2d99167ed146 DIST pkgcraft-0.0.9.tar.gz 431872 BLAKE2B 6c6ed1677c891c0e5579c7e28342876c2d7cbe03f2fcf3f8ad9f994302570d1d2398d2b4a55ec1a2fd82bbea518a4d2f76e9cabe760f0d9779b8d55170c1d940 SHA512 13988ff6822a5f9b715f3a9e8593a21d6ac530a91ca98790bd8a1c3e5958c97e440ce0610d25ed518f6d485837c9aded2ba145facf98e217325802777a33b3a7 EBUILD pkgcraft-0.0.10.ebuild 2017 BLAKE2B 0579a7065f850e60fbab73ad58e90b163f449db11c677b8b16bf4c3304e19974cd50aacf33fe72d4ab26c313929f2627f684b8881430308de35fc9fe30786093 SHA512 8d27c4d3b7bebe5752c20e798a6f68b880b8253e6be286e2df82db69e2a9494bf21345c2995d7e8247cd10aa6f415787fe0048345d6349e879aeea602c51175a +EBUILD pkgcraft-0.0.11.ebuild 2017 BLAKE2B 5a1abbb21ccac9619ad5a6bac06969e571355305da3919a7f9c0bcc40c44121d11dc360563e9a30d37c48cac4162471ce48d46a413d4c464c9e4895d52f1bd3a SHA512 f4d982028088d6ba50ebeba48c20ea67b04b37f8a7784070ebb106efbe0192498372f5dbd5e6360cd12cb136e019727a48e37f492c64fc09f523737a238ae8ed EBUILD pkgcraft-0.0.9.ebuild 2017 BLAKE2B 3b0ad74b835e5d35c379122bc3784cf964947b1eead0b0053564a09ce5de8390978e1b94efb149c473b1acabae873405afb4fd2651e5b866f6c7e437c219eff3 SHA512 ddf9a25e8e265af21839043baa009613395ce96b19b62a62502666ab3878b46ec752fc671424fe45097a8e37b083195112a14f01bd565b35d1c9ace871f76777 -EBUILD pkgcraft-9999.ebuild 2017 BLAKE2B 0579a7065f850e60fbab73ad58e90b163f449db11c677b8b16bf4c3304e19974cd50aacf33fe72d4ab26c313929f2627f684b8881430308de35fc9fe30786093 SHA512 8d27c4d3b7bebe5752c20e798a6f68b880b8253e6be286e2df82db69e2a9494bf21345c2995d7e8247cd10aa6f415787fe0048345d6349e879aeea602c51175a +EBUILD pkgcraft-9999.ebuild 2017 BLAKE2B 5a1abbb21ccac9619ad5a6bac06969e571355305da3919a7f9c0bcc40c44121d11dc360563e9a30d37c48cac4162471ce48d46a413d4c464c9e4895d52f1bd3a SHA512 f4d982028088d6ba50ebeba48c20ea67b04b37f8a7784070ebb106efbe0192498372f5dbd5e6360cd12cb136e019727a48e37f492c64fc09f523737a238ae8ed MISC metadata.xml 454 BLAKE2B 5085311aaebe3c2cc696fee5da4ee272e47936a4f729c2007efce94097087a987985fb972df477fb72eead3402555924ca8b8f183b69af357453ad93daeb946e SHA512 ba7457ec4b43f1664042599d4e23506e496d1f2212ea7aa02c58fd9d796915dace2817bfb1c71e6f022e9490215248e2a705b223a087d91255b97b23f82f9c23 diff --git a/dev-python/pkgcraft/pkgcraft-0.0.11.ebuild b/dev-python/pkgcraft/pkgcraft-0.0.11.ebuild new file mode 100644 index 000000000000..0c11b08d6796 --- /dev/null +++ b/dev-python/pkgcraft/pkgcraft-0.0.11.ebuild @@ -0,0 +1,81 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings for pkgcraft" +HOMEPAGE=" + https://pypi.org/project/pkgcraft/ + https://github.com/pkgcraft/pkgcraft-python/ +" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/pkgcraft/pkgcraft-python.git" + inherit git-r3 + + PKGCRAFT_VERSION_MAX="99999" # extra 9 here or 9999 isn't mergable per DEPEND below + PKGCRAFT_VERSION_MIN="9999" +else + SRC_URI="https://github.com/pkgcraft/pkgcraft-python/releases/download/v${PV}/${P/-python}.tar.gz" + S="${WORKDIR}"/${P/-python} + + KEYWORDS="~amd64 ~arm64" + + PKGCRAFT_VERSION_MAX="9999" + PKGCRAFT_VERSION_MIN="0.0.16" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="+examples" + +DEPEND=" + <sys-libs/pkgcraft-${PKGCRAFT_VERSION_MAX} + >=sys-libs/pkgcraft-${PKGCRAFT_VERSION_MIN}:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + >=dev-python/cython-3[${PYTHON_USEDEP}] + dev-python/setuptools-scm[${PYTHON_USEDEP}] + virtual/pkgconfig +" + +distutils_enable_tests pytest + +python_prepare_all() { + if [[ ${PV} != 9999 ]] ; then + local actual_pkgcraft_min=$(sed -En '/^MIN_VERSION =/{s/[^0-9.]//gp}' setup.py || die) + if [[ ${actual_pkgcraft_min} != ${PKGCRAFT_VERSION_MIN} ]] ; then + eerror "Expected minimum pkgcraft-c version: ${PKGCRAFT_VERSION_MIN}" + eerror "Actual minimum pkgcraft-c version: ${actual_pkgcraft_min}" + die "Mismatch between setup.py's MIN_VERSION and ebuild!" + fi + fi + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} + +python_install() { + # Conditional because these aren't installed officially right now + # and the naming is just for convenience. + if use examples ; then + while IFS= read -r -d '' file ; do + python_newexe "${S}"/examples/${file##*/} pkgcraft-${file##*/} + done < <(find "${S}"/examples -type f -executable -print0 || die) + fi + + distutils-r1_python_install +} diff --git a/dev-python/pkgcraft/pkgcraft-9999.ebuild b/dev-python/pkgcraft/pkgcraft-9999.ebuild index 5fe6fc813ef7..0c11b08d6796 100644 --- a/dev-python/pkgcraft/pkgcraft-9999.ebuild +++ b/dev-python/pkgcraft/pkgcraft-9999.ebuild @@ -28,7 +28,7 @@ else KEYWORDS="~amd64 ~arm64" PKGCRAFT_VERSION_MAX="9999" - PKGCRAFT_VERSION_MIN="0.0.15" + PKGCRAFT_VERSION_MIN="0.0.16" fi LICENSE="MIT" |