commit:     48a745fb79406f6f2066df807043047fcf78c679
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May  6 04:59:31 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May  6 05:28:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48a745fb

dev-python/meson-python: Bump to 0.18.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/meson-python/Manifest                   |  1 +
 dev-python/meson-python/meson-python-0.18.0.ebuild | 68 ++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/dev-python/meson-python/Manifest b/dev-python/meson-python/Manifest
index 23a6e6844b4e..4fab811ab911 100644
--- a/dev-python/meson-python/Manifest
+++ b/dev-python/meson-python/Manifest
@@ -1 +1,2 @@
 DIST meson-python-0.17.1.gh.tar.gz 79456 BLAKE2B 
88bda9aadc74d186aab41c9b3a2fe5ba7d51b5997c1c043cf4ea9448395d0c5c5763ccf35358ab867d32a4537a4041a3cf480d82c9ec5cd8d1b5d6bc67d35fc8
 SHA512 
bd5f4c807468b81b3630eeb6973c2a574473c22298eb2c43d30b67b7503ce77fd79d4509a8f1b0186197622d281279a9c3aa5d9d1c2286d46b7aea1ff2461ae5
+DIST meson-python-0.18.0.gh.tar.gz 88056 BLAKE2B 
b8379a6cd37c3b4e89884e21ebb85ebed6a5d86575ea57388564659a0fcfab3d0f6b71bd49fc8014486118cf31af3a0a1c67a37afa1b9b93d634622a1bc40570
 SHA512 
f32f02851cdfc13f29550b297b3bce9038bdaf02381b15064e36442104e93624e090abeae23b9de97dfa971aa456716cae65dbe04784beee13b510db12de1000

diff --git a/dev-python/meson-python/meson-python-0.18.0.ebuild 
b/dev-python/meson-python/meson-python-0.18.0.ebuild
new file mode 100644
index 000000000000..5c71dc2fda46
--- /dev/null
+++ b/dev-python/meson-python/meson-python-0.18.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=standalone
+PYTHON_COMPAT=( python3_{11..13} pypy3_11 )
+
+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="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos"
+
+RDEPEND="
+       >=dev-python/pyproject-metadata-0.7.1[${PYTHON_USEDEP}]
+       >=dev-build/meson-0.63.0
+       !kernel_Darwin? ( dev-util/patchelf )
+       $(python_gen_cond_dep '
+               >=dev-python/tomli-1.0.0[${PYTHON_USEDEP}]
+       ' 3.10)
+"
+BDEPEND="
+       ${RDEPEND}
+       test? (
+               >=dev-python/cython-0.29.34
+               >=dev-python/packaging-23.1[${PYTHON_USEDEP}]
+               dev-python/pytest-mock[${PYTHON_USEDEP}]
+               dev-vcs/git
+       )
+"
+
+distutils_enable_tests pytest
+
+src_test() {
+       # required by tests/test_sdist.py::test_reproducible
+       git config --global user.email "[email protected]" || die
+       git config --global user.name "The Test Suite" || die
+       git init -q || die
+       git add -A || die
+       git commit -m init -q || die
+
+       distutils-r1_src_test
+}
+
+python_test() {
+       unset NINJA
+
+       local EPYTEST_DESELECT=()
+       if ! has_version "dev-build/meson[${PYTHON_USEDEP}]"; then
+               EPYTEST_DESELECT+=(
+                       tests/test_wheel.py::test_vendored_meson
+               )
+       fi
+
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest -p pytest_mock
+}

Reply via email to