git: c3c034b54df2 - main - devel/py-spyder-kernels: Improve testsuite
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Jan 2023 21:20:50 UTC
The branch main has been updated by rhurlin: URL: https://cgit.FreeBSD.org/ports/commit/?id=c3c034b54df200baa94ab4bb3999cbf919e1434d commit c3c034b54df200baa94ab4bb3999cbf919e1434d Author: Rainer Hurling <rhurlin@FreeBSD.org> AuthorDate: 2023-01-19 21:14:34 +0000 Commit: Rainer Hurling <rhurlin@FreeBSD.org> CommitDate: 2023-01-19 21:14:34 +0000 devel/py-spyder-kernels: Improve testsuite The test_user_sitepackages_in_pathlist did not work because FreeBSD was not detected. While here, remove devel/py-pytest from TEST_DEPENDS and clean up Makefile. --- devel/py-spyder-kernels/Makefile | 6 +++--- .../patch-spyder__kernels_customize_tests_test__utils.py | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/devel/py-spyder-kernels/Makefile b/devel/py-spyder-kernels/Makefile index 79efd3a34ec6..227ea13a2e09 100644 --- a/devel/py-spyder-kernels/Makefile +++ b/devel/py-spyder-kernels/Makefile @@ -1,5 +1,6 @@ PORTNAME= spyder-kernels PORTVERSION= 2.4.2 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,7 +12,6 @@ WWW= https://github.com/spyder-ide/spyder-kernels LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -# devel/py-ipykernel should be >=6.16.1,<7 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cloudpickle>0:devel/py-cloudpickle@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ipykernel>0:devel/py-ipykernel@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ipyparallel>0:devel/py-ipyparallel@${PY_FLAVOR} \ @@ -20,7 +20,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cloudpickle>0:devel/py-cloudpickle@${PY_FLAV ${PYTHON_PKGNAMEPREFIX}pyzmq>=22.1.0:net/py-pyzmq@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}traitlets>0:devel/py-traitlets@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wurlitzer>=1.0.3:misc/py-wurlitzer@${PY_FLAVOR} -# test target currently not functional :( +# 1 failed, 71 passed, 4 skipped, 15 warnings +# test_django_settings fail if www/djangoXX not installed TEST_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}codecov>0:devel/py-codecov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}cython>0:lang/cython@${PY_FLAVOR} \ @@ -32,7 +33,6 @@ TEST_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-forked>0:devel/py-pytest-forked@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \ diff --git a/devel/py-spyder-kernels/files/patch-spyder__kernels_customize_tests_test__utils.py b/devel/py-spyder-kernels/files/patch-spyder__kernels_customize_tests_test__utils.py new file mode 100644 index 000000000000..da6e54ae9279 --- /dev/null +++ b/devel/py-spyder-kernels/files/patch-spyder__kernels_customize_tests_test__utils.py @@ -0,0 +1,11 @@ +--- spyder_kernels/customize/tests/test_utils.py.orig 2020-03-04 22:59:51 UTC ++++ spyder_kernels/customize/tests/test_utils.py +@@ -16,7 +16,7 @@ def test_user_sitepackages_in_pathlist(): + """Test that we include user site-packages in pathlist.""" + if sys.platform.startswith('linux'): + user_path = 'local' +- elif sys.platform == 'darwin': ++ elif (sys.platform.startswith('darwin') | sys.platform.startswith('freebsd')): + user_path = os.path.expanduser('~/.local') + else: + user_path = 'Roaming'