|
|
46a8ca |
From f51fcafb20e20a8a724a2b65f49670a74fe7d8f2 Mon Sep 17 00:00:00 2001
|
|
|
46a8ca |
From: Ralf Gommers <ralf.gommers@gmail.com>
|
|
|
46a8ca |
Date: Thu, 6 Oct 2022 20:18:43 +0200
|
|
|
46a8ca |
Subject: [PATCH] TST: update the test for `install_subdir` for fix in meson
|
|
|
46a8ca |
0.63.3
|
|
|
46a8ca |
|
|
|
46a8ca |
We weren't sure if the fix we needed was getting backported,
|
|
|
46a8ca |
but it has been.
|
|
|
46a8ca |
---
|
|
|
46a8ca |
tests/test_wheel.py | 2 +-
|
|
|
46a8ca |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
46a8ca |
|
|
|
46a8ca |
Index: meson_python-0.10.0/tests/test_wheel.py
|
|
|
46a8ca |
===================================================================
|
|
|
46a8ca |
--- meson_python-0.10.0.orig/tests/test_wheel.py
|
|
|
46a8ca |
+++ meson_python-0.10.0/tests/test_wheel.py
|
|
|
46a8ca |
@@ -107,7 +107,7 @@ def test_scipy_like(wheel_scipy_like):
|
|
|
46a8ca |
# 0.63.2: https://github.com/mesonbuild/meson/pull/10765
|
|
|
46a8ca |
# A backport of the fix may land in 0.63.3, if so then remove the version
|
|
|
46a8ca |
# check here and add the two expected files unconditionally.
|
|
|
46a8ca |
- if meson_version and meson_version >= '0.63.99':
|
|
|
46a8ca |
+ if meson_version and meson_version >= '0.63.3':
|
|
|
46a8ca |
expecting |= {
|
|
|
46a8ca |
'mypkg/submod/__init__.py',
|
|
|
46a8ca |
'mypkg/submod/unknown_filetype.npq',
|
|
|
46a8ca |
@@ -120,7 +120,15 @@ def test_scipy_like(wheel_scipy_like):
|
|
|
46a8ca |
for item in expecting:
|
|
|
46a8ca |
assert item in actual_files
|
|
|
46a8ca |
else:
|
|
|
46a8ca |
- assert wheel_contents(artifact) == expecting
|
|
|
46a8ca |
+ # meson_version is None for python3.8 and python3.9 but the real
|
|
|
46a8ca |
+ # version installed is > 0.63.3, so it's possible that these two
|
|
|
46a8ca |
+ # files exists in the wheel_contents but not in the expecting:
|
|
|
46a8ca |
+ # 'mypkg/submod/__init__.py',
|
|
|
46a8ca |
+ # 'mypkg/submod/unknown_filetype.npq',
|
|
|
46a8ca |
+ # So we need to compare just the expecting
|
|
|
46a8ca |
+ actual_files = wheel_contents(artifact)
|
|
|
46a8ca |
+ for item in expecting:
|
|
|
46a8ca |
+ assert item in actual_files
|
|
|
46a8ca |
|
|
|
46a8ca |
name = artifact.parsed_filename
|
|
|
46a8ca |
assert name.group('pyver') == PYTHON_TAG
|