pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-matplotlib: fix test target



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Thu Jun 6 21:01:14 2024 +0200
Changeset:	68bb3b62a342adeb8d785d26b013939b2fdc685a

Modified Files:
	py-matplotlib/Makefile
Removed Files:
	py-matplotlib/TODO

Log Message:
py-matplotlib: fix test target

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=68bb3b62a342adeb8d785d26b013939b2fdc685a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-matplotlib/Makefile |  8 +++++++-
 py-matplotlib/TODO     | 54 --------------------------------------------------
 2 files changed, 7 insertions(+), 55 deletions(-)

diffs:
diff --git a/py-matplotlib/Makefile b/py-matplotlib/Makefile
index 3c489ccf8e..d0d04e013b 100644
--- a/py-matplotlib/Makefile
+++ b/py-matplotlib/Makefile
@@ -47,8 +47,14 @@ PYTHON_FOR_BUILD_ONLY=	no
 DEPENDS+=	${PYPKGPREFIX}-importlib-resources>=3.2.0:../../devel/py-importlib-resources
 .endif
 
+# depends on do-install
+# as of 3.9.0
+# 928 failed, 6776 passed, 1785 skipped, 33 xfailed
+# possible additional test dependencies to pass more tests include
+# pikepdf, tex, qt, ghostscript, ...
+# py-test command line comes from https://github.com/matplotlib/matplotlib/issues/28260
 do-test:
-	pytest-${PYVERSSUFFIX} -ra -m 'not network'
+	cd ${WRKSRC} && pytest-${PYVERSSUFFIX} -ra -m 'not network' --pyargs matplotlib
 
 .include "../../devel/py-pybind11/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
diff --git a/py-matplotlib/TODO b/py-matplotlib/TODO
deleted file mode 100644
index 90beba40a2..0000000000
--- a/py-matplotlib/TODO
+++ /dev/null
@@ -1,54 +0,0 @@
-collected 277 items / 2 errors
-
-========================================================================================= ERRORS ==========================================================================================
-______________________________________________________________ ERROR collecting work/matplotlib-3.9.0/lib/matplotlib/testing ______________________________________________________________
-/usr/pkg/lib/python3.12/site-packages/_pytest/config/__init__.py:717: in _importconftest
-    mod = import_path(
-/usr/pkg/lib/python3.12/site-packages/_pytest/pathlib.py:614: in import_path
-    raise ImportPathMismatchError(module_name, module_file, path)
-E   _pytest.pathlib.ImportPathMismatchError: ('matplotlib.testing.conftest', '/usr/pkg/lib/python3.12/site-packages/matplotlib/testing/conftest.py', PosixPath('/usr/pkgsrc/wip/py-matplotl
-ib/work/matplotlib-3.9.0/lib/matplotlib/testing/conftest.py'))
-_______________________________________________________________ ERROR collecting work/matplotlib-3.9.0/lib/matplotlib/tests _______________________________________________________________
-/usr/pkg/lib/python3.12/importlib/__init__.py:90: in import_module
-    return _bootstrap._gcd_import(name[level:], package, level)
-<frozen importlib._bootstrap>:1387: in _gcd_import
-    ???
-<frozen importlib._bootstrap>:1360: in _find_and_load
-    ???
-<frozen importlib._bootstrap>:1310: in _find_and_load_unlocked
-    ???
-<frozen importlib._bootstrap>:488: in _call_with_frames_removed
-    ???
-<frozen importlib._bootstrap>:1387: in _gcd_import
-    ???
-<frozen importlib._bootstrap>:1360: in _find_and_load
-    ???
-<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
-    ???
-<frozen importlib._bootstrap>:935: in _load_unlocked
-    ???
-<frozen importlib._bootstrap_external>:995: in exec_module
-    ???
-<frozen importlib._bootstrap>:488: in _call_with_frames_removed
-    ???
-/usr/pkg/lib/python3.12/site-packages/matplotlib/tests/__init__.py:6: in <module>
-    raise OSError(
-E   OSError: The baseline image directory does not exist. This is most likely because the test data is not installed. You may need to install matplotlib from source to get the test data.
-==================================================================================== warnings summary =====================================================================================
-work/matplotlib-3.9.0/galleries/examples/text_labels_and_annotations/usetex_baseline_test.py:25
-  /usr/pkgsrc/wip/py-matplotlib/work/matplotlib-3.9.0/galleries/examples/text_labels_and_annotations/usetex_baseline_test.py:25: UserWarning: FigureCanvasAgg is non-interactive, and thus
-cannot be shown
-    plt.show()
-
-work/matplotlib-3.9.0/galleries/examples/units/evans_test.py:87
-  /usr/pkgsrc/wip/py-matplotlib/work/matplotlib-3.9.0/galleries/examples/units/evans_test.py:87: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
-    plt.show()
-
--- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
-================================================================================= short test summary info =================================================================================
-ERROR work/matplotlib-3.9.0/lib/matplotlib/testing - _pytest.pathlib.ImportPathMismatchError: ('matplotlib.testing.conftest', '/usr/pkg/lib/python3.12/site-packages/matplotlib/testing/con
-ftest.py', PosixPath('/usr/pkgsrc/wip/py-matplot...
-ERROR work/matplotlib-3.9.0/lib/matplotlib/tests - OSError: The baseline image directory does not exist. This is most likely because the test data is not installed. You may need to instal
-l matplotlib from source to get the test data.
-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-============================================================================== 2 warnings, 2 errors in 0.81s ==============================================================================


Home | Main Index | Thread Index | Old Index