Accepting request 1010640 from home:mcalabkova:branches:devel:languages:python

- Add meson-subdir-fix.patch to fix the failure with new meson

OBS-URL: https://build.opensuse.org/request/show/1010640
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-meson-python?expand=0&rev=5
This commit is contained in:
Markéta Machová 2022-10-14 09:21:07 +00:00 committed by Git OBS Bridge
parent d6fae54113
commit 168f66e3ac
3 changed files with 32 additions and 0 deletions

25
meson-subdir-fix.patch Normal file
View File

@ -0,0 +1,25 @@
From f51fcafb20e20a8a724a2b65f49670a74fe7d8f2 Mon Sep 17 00:00:00 2001
From: Ralf Gommers <ralf.gommers@gmail.com>
Date: Thu, 6 Oct 2022 20:18:43 +0200
Subject: [PATCH] TST: update the test for `install_subdir` for fix in meson
0.63.3
We weren't sure if the fix we needed was getting backported,
but it has been.
---
tests/test_wheel.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_wheel.py b/tests/test_wheel.py
index 818367f..aab0523 100644
--- a/tests/test_wheel.py
+++ b/tests/test_wheel.py
@@ -107,7 +107,7 @@ def test_scipy_like(wheel_scipy_like):
# 0.63.2: https://github.com/mesonbuild/meson/pull/10765
# A backport of the fix may land in 0.63.3, if so then remove the version
# check here and add the two expected files unconditionally.
- if meson_version and meson_version >= '0.63.99':
+ if meson_version and meson_version >= '0.63.3':
expecting |= {
'mypkg/submod/__init__.py',
'mypkg/submod/unknown_filetype.npq',

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Oct 14 08:49:00 UTC 2022 - Markéta Machová <mmachova@suse.com>
- Add meson-subdir-fix.patch to fix the failure with new meson
-------------------------------------------------------------------
Tue Oct 11 09:01:00 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -25,6 +25,8 @@ URL: https://github.com/FFY00/meson-python
Source: https://files.pythonhosted.org/packages/source/m/meson_python/meson_python-%{version}.tar.gz
# PATCH-FEATURE-OPENSUSE mesonpy-trim-deps.patch code@bnavigator.de
Patch1: mesonpy-trim-deps.patch
# PATCH-FIX-UPSTREAM https://github.com/FFY00/meson-python/commit/f51fcafb20e20a8a724a2b65f49670a74fe7d8f2 TST: update the test for install_subdir for fix in meson 0.63.3
Patch2: meson-subdir-fix.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyproject-metadata >= 0.6.1}