diff options
Diffstat (limited to 'dev-python/meson-python')
-rw-r--r-- | dev-python/meson-python/Manifest | 2 | ||||
-rw-r--r-- | dev-python/meson-python/meson-python-0.13.2.ebuild | 69 |
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/meson-python/Manifest b/dev-python/meson-python/Manifest index f36c7ed0bbf6..53677ee0046a 100644 --- a/dev-python/meson-python/Manifest +++ b/dev-python/meson-python/Manifest @@ -1,3 +1,5 @@ DIST meson-python-0.13.1.gh.tar.gz 69434 BLAKE2B c3442eb1c066772b80efe4e41764897df85a3581c94f9d958951af04e9ad7a01c646c7ed7f0104fbe957567e16b80c6e3744ab23b6b66a8df3cc920cb68c852f SHA512 037825eabcaec5bdb73890114ecfcfb05373bcb5e2806a8d38e4afeeecea42aa14f9c8cf0bec151bd231e2984c64608b28a1ec79640485933cd57c8895b6a305 +DIST meson-python-0.13.2.gh.tar.gz 69575 BLAKE2B ddcab5530e7c235057752f1c355052120863167fc601b669e3add713079400cf95617be84989e06542125850559124d70a693a618cbec456c0e59e3f80d14c5f SHA512 b5518c5e9ccbec40747f2c08a83134f012557e0d9612b99999473d2ae7fdfdeae5b7552dc16cebb493133c3ed8c52153b3e3afd3cef32d0f3a65771ebbb5b3bb EBUILD meson-python-0.13.1.ebuild 1660 BLAKE2B f9f5a66077732ad1dedbf7c66342741324cbc532c4fd0478b0da824653b01915ecf549681c383adbc62f1ec80944949da754908adb75ca2b1ca4a2254b255e3a SHA512 95bca66bc253565202a67cb72618b3ce2990f7c777c67ee221eafbd6b5cc9c7ecb1a8c43ec778e491d4b1697bce1f2b2401927c885c90386bb4693f2a995a572 +EBUILD meson-python-0.13.2.ebuild 1666 BLAKE2B c8d7d97e64b8540e87988d9362db25d06a4c944f716ba7ba862fb09f33c85a371ff2f96ccbe46014e8e4e52de35730130d3fe70af0b713c1d62eb4171bbdf1a9 SHA512 f9c7825d228799e85e454bbcf9abff160ab0873e784e86c77cd36dd7eab61109f14fc033295d240528d2df08b759b35e2d03cc67059ba2b73b74263bc85f3c4f MISC metadata.xml 357 BLAKE2B c2b5fd8c6ad39e92970a5e6c1db8950b4850660c9a95a84063504ab75e5dd69e3ab844fcef23cb51f33493b7e522a6d26227ff48dd893c92c422badc70f3c962 SHA512 1402ace4da543de7320a1d97f44177593807d5be9f1891d8a53190581877569508c46fe6b4ce63516c7fee2d2165d59d39f44343dde18438570883da3f4ad28c diff --git a/dev-python/meson-python/meson-python-0.13.2.ebuild b/dev-python/meson-python/meson-python-0.13.2.ebuild new file mode 100644 index 000000000000..a3ead795daa5 --- /dev/null +++ b/dev-python/meson-python/meson-python-0.13.2.ebuild @@ -0,0 +1,69 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Meson PEP 517 Python build backend" +HOMEPAGE=" + https://pypi.org/project/meson-python/ + https://github.com/mesonbuild/meson-python/ +" +SRC_URI=" + https://github.com/mesonbuild/meson-python/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/pyproject-metadata-0.7.1[${PYTHON_USEDEP}] + >=dev-util/meson-0.63.0[${PYTHON_USEDEP}] + dev-util/patchelf + $(python_gen_cond_dep ' + >=dev-python/tomli-1.0.0[${PYTHON_USEDEP}] + ' 3.9 3.10) +" +BDEPEND=" + >=dev-python/cython-0.29.34[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] + ' 3.9) + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # requires network access + tests/test_pep518.py::test_pep518 + # requires git repo + # https://github.com/mesonbuild/meson-python/issues/397 + tests/test_project.py::test_user_args + ) + unset NINJA + + if [[ ${EPYTHON} == pypy3 ]]; then + EPYTEST_DESELECT+=( + # broken venv usage that copies pypy3 executable, making it + # unable to find lib_pypy + tests/test_editable.py::test_editable_install + tests/test_editable.py::test_editble_reentrant + tests/test_examples.py::test_spam + tests/test_wheel.py::test_local_lib + ) + fi + + epytest + + rm -rf docs/examples/spam/build/ || die # remove artifacts +} |