From 5e0a5ca921524f8859808527a57655eec16efa52 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 18 Jul 2023 00:58:25 +0100 Subject: gentoo auto-resync : 18:07:2023 - 00:58:24 --- dev-python/meson-python/Manifest | 3 +- .../files/meson-python-0.13.2_Mach-O_bundle.patch | 21 +++++++ .../meson-python/meson-python-0.13.2-r1.ebuild | 72 ++++++++++++++++++++++ dev-python/meson-python/meson-python-0.13.2.ebuild | 69 --------------------- 4 files changed, 95 insertions(+), 70 deletions(-) create mode 100644 dev-python/meson-python/files/meson-python-0.13.2_Mach-O_bundle.patch create mode 100644 dev-python/meson-python/meson-python-0.13.2-r1.ebuild delete mode 100644 dev-python/meson-python/meson-python-0.13.2.ebuild (limited to 'dev-python/meson-python') diff --git a/dev-python/meson-python/Manifest b/dev-python/meson-python/Manifest index 53677ee0046a..43fc3c8fbd16 100644 --- a/dev-python/meson-python/Manifest +++ b/dev-python/meson-python/Manifest @@ -1,5 +1,6 @@ +AUX meson-python-0.13.2_Mach-O_bundle.patch 876 BLAKE2B bef2575363237b73c0d11e65630ebf7612e8afbca6dc839c77005dee6f5ae561005af45cde822dbc342c79947a4933d1b81427c892372a7627bcb9ac13dbf014 SHA512 0242fd191e4f15fb121c53d9c9ccd6aebbdfc8af3df294f1c3a0c0fa3225bacbbb8fb77f399ed444f5d99d7d1395381fff7aaef0d51376df0bca3c1b7e88a195 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 +EBUILD meson-python-0.13.2-r1.ebuild 1798 BLAKE2B 8a9b9a9f5e5ca841c2c3d330e873dce7bb43f3e73c39feeedfcad1e267718384c28a99e3a33f30de3c0fc70768e3d4e9ff82488bb09f301e16251cadefe59f37 SHA512 de2a049cb4a75cdb0df1e8f6be28e73d71f455a96752c71a90e0dabebcd7ece1ef389b9ae31c59801824304479a3ce9e12bc987d30121e3678316135e13440c0 MISC metadata.xml 357 BLAKE2B c2b5fd8c6ad39e92970a5e6c1db8950b4850660c9a95a84063504ab75e5dd69e3ab844fcef23cb51f33493b7e522a6d26227ff48dd893c92c422badc70f3c962 SHA512 1402ace4da543de7320a1d97f44177593807d5be9f1891d8a53190581877569508c46fe6b4ce63516c7fee2d2165d59d39f44343dde18438570883da3f4ad28c diff --git a/dev-python/meson-python/files/meson-python-0.13.2_Mach-O_bundle.patch b/dev-python/meson-python/files/meson-python-0.13.2_Mach-O_bundle.patch new file mode 100644 index 000000000000..2531c93f41e2 --- /dev/null +++ b/dev-python/meson-python/files/meson-python-0.13.2_Mach-O_bundle.patch @@ -0,0 +1,21 @@ +Support .bundle python modules at Prefix/macOS. + +Not forwarding to upstream because we are reflecting on the naming +scheme of plugin modules on Prefix/macOS. + +Bug: https://bugs.gentoo.org/910401 +Signed-off-by: Benda Xu + +Index: meson-python-0.13.2/mesonpy/__init__.py +=================================================================== +--- meson-python-0.13.2.orig/mesonpy/__init__.py ++++ meson-python-0.13.2/mesonpy/__init__.py +@@ -129,7 +129,7 @@ _STYLES = _init_colors() # holds the co + + _SUFFIXES = importlib.machinery.all_suffixes() + _EXTENSION_SUFFIXES = importlib.machinery.EXTENSION_SUFFIXES +-_EXTENSION_SUFFIX_REGEX = re.compile(r'^\.(?:(?P[^.]+)\.)?(?:so|pyd|dll)$') ++_EXTENSION_SUFFIX_REGEX = re.compile(r'^\.(?:(?P[^.]+)\.)?(?:so|pyd|dll|bundle)$') + assert all(re.match(_EXTENSION_SUFFIX_REGEX, x) for x in _EXTENSION_SUFFIXES) + + diff --git a/dev-python/meson-python/meson-python-0.13.2-r1.ebuild b/dev-python/meson-python/meson-python-0.13.2-r1.ebuild new file mode 100644 index 000000000000..9af08d653ec5 --- /dev/null +++ b/dev-python/meson-python/meson-python-0.13.2-r1.ebuild @@ -0,0 +1,72 @@ +# 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 ~arm64-macos ~x64-macos" +IUSE="kernel_Darwin" + +RDEPEND=" + >=dev-python/pyproject-metadata-0.7.1[${PYTHON_USEDEP}] + >=dev-util/meson-0.63.0[${PYTHON_USEDEP}] + !kernel_Darwin? ( 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) + ) +" + +PATCHES=( "${FILESDIR}"/meson-python-0.13.2_Mach-O_bundle.patch ) + +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 +} diff --git a/dev-python/meson-python/meson-python-0.13.2.ebuild b/dev-python/meson-python/meson-python-0.13.2.ebuild deleted file mode 100644 index a3ead795daa5..000000000000 --- a/dev-python/meson-python/meson-python-0.13.2.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# 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 -} -- cgit v1.2.3