From nobody Sat Oct 15 05:22:38 2022 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 4MqBTp3dllz4gC41; Sat, 15 Oct 2022 05:22:38 +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 4MqBTp2k9wz42rd; Sat, 15 Oct 2022 05:22:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665811358; 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=cyoniN+LLScaeC7nAaCIG9b8JClv0/Gp6Al57dYbWDo=; b=PbVJ5d/wna2t4OEXSGFQXzMSVxBWuetCZJ8IlIvx59TNY8onv+4nfm3FTEP+RomgWaEIHh I67ObZo2mrcQn0JMfkAuu58POpTEoRZdAIxZ/VgyAw2jNQ2VjszECjd0wHn47sA7z3hBou NXpaw9+YnUfcRH/74KWCSapRFV2XeI7VdoLWHoTvALfH7tPaSRVTp9bDRdtmWjxOGKzXxU j2h7MydIVaxXPQOSbDJwjpmb2vfljoPJssJJHKA73HMoAs4EqXDEnm537b0GvFNpjEqKGD YcOYQ6OIeo2xrwh00T6WMen66JlC+w1SyP33Xt4U1s6HBXwFlYZEqY6hQlAsjA== 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 4MqBTp0pfGz120K; Sat, 15 Oct 2022 05:22:38 +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 29F5McDE037657; Sat, 15 Oct 2022 05:22:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29F5McwE037656; Sat, 15 Oct 2022 05:22:38 GMT (envelope-from git) Date: Sat, 15 Oct 2022 05:22:38 GMT Message-Id: <202210150522.29F5McwE037656@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 2d8d281cb5c2 - main - debel/py-nbval: New port: PyTest plugin to validate Jupyter notebooks 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2d8d281cb5c2f3f3c786ccbb1bbd36e7539471c8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665811358; 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=cyoniN+LLScaeC7nAaCIG9b8JClv0/Gp6Al57dYbWDo=; b=HvuNhnWU6BidX9MaRHGyxwpVaAo0dj07eMJgnfTMoWYjr7mEKt1G/h+c7Z6FHxZagV71z7 mJIIXz7IUyQe91J/N0k5XvThklMBdSlavOvFtJVUFASTrtaGzWCc3YbseZPqkW76UNTnJM 4hEMWP/+c0i1ZXuajgx5kippi7DIbzDq6YpUGiC0VuO02t+RtUhm0Q8Cm9zAVs/mEL8uuv aTx8w6h8Gwda0Vowqkidg9zA9BNUKDxdW+At1oFQFqxuQ+gaxqN7L2Vfn+HwFzBqxJkVwj gyq5I1etENie4Xoa2BMUfI5x2QzpqzS2FaCa8C5c5aoNBILYen5DlIluyS0a7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665811358; a=rsa-sha256; cv=none; b=b2tPbozxcMrwNTm/f8uVJWFCujU9jyXUeZPNJOeUjkQIl8Z5ByA26pTRcVCkLQZXjQfpke qQeDX1ZAlN7wBHpe55M3lyp8JSez/AILzl0Blb2AuqugZi0Q5mfeBVnMXxzljxX8Sz9HZW xK8TtnexhMyIvrW+jsYI76XgAr1wdxHmO3TrviVdkRv46OFp+OVm0lPW6ls3MLfkS8HKpA 4hD9OwR7itEhC0eLXubwBR3TkBKFec4rPs8F7MmIf2DYl2SRlwM8eWiw2DtviKnrtE2DMP QfF12Coz1wc4/EXmcC6aokFxlO8o3OdgR/aF8fU6Ygq6s47F5dYwM1YXVDd5sg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=2d8d281cb5c2f3f3c786ccbb1bbd36e7539471c8 commit 2d8d281cb5c2f3f3c786ccbb1bbd36e7539471c8 Author: Yuri Victorovich AuthorDate: 2022-10-15 05:21:57 +0000 Commit: Yuri Victorovich CommitDate: 2022-10-15 05:22:32 +0000 debel/py-nbval: New port: PyTest plugin to validate Jupyter notebooks --- devel/Makefile | 1 + devel/py-nbval/Makefile | 26 ++++++++++++++++++++++++++ devel/py-nbval/distinfo | 3 +++ devel/py-nbval/pkg-descr | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 9652bfd65170..ea19d5c34fba 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4846,6 +4846,7 @@ SUBDIR += py-nbconvert SUBDIR += py-nbdime SUBDIR += py-nbformat + SUBDIR += py-nbval SUBDIR += py-nest-asyncio SUBDIR += py-node-semver SUBDIR += py-nodeenv diff --git a/devel/py-nbval/Makefile b/devel/py-nbval/Makefile new file mode 100644 index 000000000000..f8ed3b4f431e --- /dev/null +++ b/devel/py-nbval/Makefile @@ -0,0 +1,26 @@ +PORTNAME= nbval +PORTVERSION= 0.9.6 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= PyTest plugin to validate Jupyter notebooks +WWW= https://github.com/computationalmodelling/nbval + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ipykernel>0:devel/py-ipykernel@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}jupyter-client>0:devel/py-jupyter-client@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}nbformat>0:devel/py-nbformat@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>=2.8:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist pytest # many tests fail, see https://github.com/computationalmodelling/nbval/issues/189 + +NO_ARCH= yes + +.include diff --git a/devel/py-nbval/distinfo b/devel/py-nbval/distinfo new file mode 100644 index 000000000000..945e84a65a23 --- /dev/null +++ b/devel/py-nbval/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1665810613 +SHA256 (nbval-0.9.6.tar.gz) = cfefcd2ef66ee2d337d0b252c6bcec4023384eb32e8b9e5fcc3ac80ab8cd7d40 +SIZE (nbval-0.9.6.tar.gz) = 60932 diff --git a/devel/py-nbval/pkg-descr b/devel/py-nbval/pkg-descr new file mode 100644 index 000000000000..a1d8ef20d6e8 --- /dev/null +++ b/devel/py-nbval/pkg-descr @@ -0,0 +1,10 @@ +The plugin adds functionality to py.test to recognise and collect Jupyter +notebooks. The intended purpose of the tests is to determine whether +execution of the stored inputs match the stored outputs of the .ipynb file. +Whilst also ensuring that the notebooks are running without errors. + +The tests were designed to ensure that Jupyter notebooks (especially those +for reference and documentation), are executing consistently. + +Each cell is taken as a test, a cell that doesn't reproduce the expected output +will fail.