From nobody Thu Jan 19 21:20:50 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NybC66qGNz2sjvt; Thu, 19 Jan 2023 21:20:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NybC66P7Tz4Gnv; Thu, 19 Jan 2023 21:20:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674163250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=//B5q7z45iXzPRaZg6fH/cQ1uHn8GS8x/FyoFQ0QY2g=; b=ays0/wd5eIS3whRLMtO14MqgwCXDESNl/Hbj5B/5p/PdwKS4MfmKCqA2vgQz5hAvlQmYuh vvjznPO+CwfcuMx0182ZySp0rqxl/fSN1bfzBc0HetM2y2UnjoFrhothFq0mNKiTijRtKu SBohTsNZ8SF7RXB0RRC8OjtIqPZ5Q9UgrC9FWliFGcsVDJPFV+vmadge6NjESJ2rq8getn D1bR5iSQrCu3vcUT3736kMk3OQ+gKKp1brWNXX3fZjQBSF2bRIVKNdG4/pzNFyeDtr8NvT FFqGDy1Ux9Z6KhR3hXkR0Zq/ZXwx+u9V72FzDl21+QZU0dBxhqfiU+0+StBc5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674163250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=//B5q7z45iXzPRaZg6fH/cQ1uHn8GS8x/FyoFQ0QY2g=; b=JQ9xLWHGTHE0V7ETIRL3PwKhQwUWnPwUztgEDBUTXSJY3s14rdZgmqZaEA76LgvuoEI+Hp WBNPdjv2MPNmFFlSFKOobi7Koo+cUidsl7E7u+CYCNjLmbYD6xqZCkmxmKkXTFqxa7Cdyo ZPg6xJ1DX96eFkOxYDVivBKLYDviXB3hiahMjTCHk3AURQ0TRYOjpKwLZGsQY24+52mB+Q 6mzplyKEvKGSVWpphaHwsYAfO7cSYgt23X5E0/fPomqAK1ALBvhPy0irX50vwVd6fd1bbc E+3tgqH7jHzMDoumFWWf8feGdoOAQAxzo/RWSWiiZiMxpys2pzK2sYsK0rR5dQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674163250; a=rsa-sha256; cv=none; b=hIDskQ8cAx3O34QJa5WECg2rWIRe7hHTNjNQb7+++dwjZNn4GjbHnOiEueWhnFnwymnoFG qut42fZhCJYGFx3i8qSJUdKzkmKoMzLPnUaAmU4oLKHaXlIZbxmqoXM9OuC8wakB3rwjAM woIBGbnHiNkXBKkM7GqQeJ8BAAYKAGEDslmaJrAzTq9cNNTtoxF4ocuzATfDt1+UlVe71H 0nkKzat7VOv8+V27gAJ5WDi43RYs9JN2rvrBzAYS/Wx+iyECFj/xZNwX2Y3LS8/wyFXC+l +XERn3Qam7Gj+2sZHbYgx6PvsZBi/ZGA02c8nLhUfsqY2D+08pmwXksfO/YLdA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NybC65SzRz15J2; Thu, 19 Jan 2023 21:20:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30JLKo5a021562; Thu, 19 Jan 2023 21:20:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30JLKoCa021561; Thu, 19 Jan 2023 21:20:50 GMT (envelope-from git) Date: Thu, 19 Jan 2023 21:20:50 GMT Message-Id: <202301192120.30JLKoCa021561@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Rainer Hurling Subject: git: c3c034b54df2 - main - devel/py-spyder-kernels: Improve testsuite List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rhurlin X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c3c034b54df200baa94ab4bb3999cbf919e1434d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by rhurlin: URL: https://cgit.FreeBSD.org/ports/commit/?id=c3c034b54df200baa94ab4bb3999cbf919e1434d commit c3c034b54df200baa94ab4bb3999cbf919e1434d Author: Rainer Hurling AuthorDate: 2023-01-19 21:14:34 +0000 Commit: Rainer Hurling 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'