From nobody Wed Aug 10 16:07:06 2022 X-Original-To: dev-commits-ports-all@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 4M2vvv0vNMz4Y8D7; Wed, 10 Aug 2022 16:07:07 +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 4M2vvv01pPz4F74; Wed, 10 Aug 2022 16:07:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660147627; 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=p1T5MpcpApRszJ1pQG7s/BcPqSGF9f58m5lct9DZ4K0=; b=ahV1yny9D1fGXqb1DpnVhgA217J2ksI9ZsIfEfeFmCOA/ndebaFe+0AlQBKqHAP8rejxZp JIpil9Pa9AyD95Oy2fuENWkSKpRFfsAKARaKqSyubBni/0P4RW9JiqaSZfn/cKyq/yxc/w dRgvDEWWSZAP3FOfjxpPOBCc1auGVNigXTXquRtoBvrhBk4emu19A6vB/E/cZlwRocT1Ow vfSrAo3zi3eVa2jHwMFth5CWCgE/f1uCTP/P8EoMuNh0/SWF50X9Jz1cpHg4RUMqcq0TjX UHSu7Mof1fFzpXTtOe4jhuFTeiouK8zao+bg6zBSbzZjTGMbehXu1sUVeh1YCA== 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 4M2vvt6B7zzHn3; Wed, 10 Aug 2022 16:07:06 +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 27AG76AJ072399; Wed, 10 Aug 2022 16:07:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27AG76Q4072398; Wed, 10 Aug 2022 16:07:06 GMT (envelope-from git) Date: Wed, 10 Aug 2022 16:07:06 GMT Message-Id: <202208101607.27AG76Q4072398@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: a10768d29980 - main - devel/py-noseofyeti: Python codec that provides an RSpec style DSL for Python. List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a10768d299802863971d0eab42901f7f4440e59e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660147627; 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=p1T5MpcpApRszJ1pQG7s/BcPqSGF9f58m5lct9DZ4K0=; b=dg1yLkNDv14Yy2EwzRP3BLZ4ujLT4x9qXXhqlrA/6GM/GT07aWjQiI4J2UyrMlUreNZjYL kGCcjYcJodbSH3RImVTQyNY1tNnly+zvfQm/xPXUMVod0efXh4MdWa+RzC8Gu4RZZrMn8I 1Ezd6drXylRCUruAFLEIDNGejeAipxINYXdJRZjDHiYllXW7J1mK+6Oa9QQkP0Dp/LM35/ g+seelVoJz75c1g4KPys/brMoNSA7EFi+pmRk54LW+l2JOOoKo5Gu/59RmFZHS3MuaQory GlxUUPU6AITeT3rQQPeiBUArmBjUc7J0m7k1H1Q08t0WJEfuL25gW0JFma8jIw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660147627; a=rsa-sha256; cv=none; b=FdAC1ynUFaYwW5fxC5TWhBbczIJ9o0goKi95vkbG+CICPQUpD651fi9MEG0SqmCBfb1fmI d0UThYNKI9a/kCmF2CA0dEt7IJ3u+UTWytJ9qSxFKyGGr16Yrwp/qNHyjYipBau3hD/O8e u2OExKaJbmlcih20EFXT9YlXzRWd/RQFRbg/3oIm2UPbQReSgH5vTdcK7o1HLx25z4JHpg 9gC9eqA2bNs8h1az3qQBKm47AZ/VnbAVajt5X7yjkshgdNWEcQM3g+1TikFWZuatUjVwsZ qa/VBbb3zN6eZ+7J0CVAFXqM8spBMwFPyQa7+2mWN5ZJ60Bh85ng6ly41aGoYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=a10768d299802863971d0eab42901f7f4440e59e commit a10768d299802863971d0eab42901f7f4440e59e Author: Kubilay Kocak AuthorDate: 2022-08-09 16:18:12 +0000 Commit: Gleb Popov CommitDate: 2022-08-10 16:06:39 +0000 devel/py-noseofyeti: Python codec that provides an RSpec style DSL for Python. --- devel/Makefile | 1 + devel/py-noseofyeti/Makefile | 27 +++++++++++++++++++++++++++ devel/py-noseofyeti/distinfo | 3 +++ devel/py-noseofyeti/pkg-descr | 12 ++++++++++++ 4 files changed, 43 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index ae05a4d38699..4de4a5430435 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4810,6 +4810,7 @@ SUBDIR += py-nose-cov SUBDIR += py-nose-timer SUBDIR += py-nose2 + SUBDIR += py-noseofyeti SUBDIR += py-nosexcover SUBDIR += py-notebook-shim SUBDIR += py-notify2 diff --git a/devel/py-noseofyeti/Makefile b/devel/py-noseofyeti/Makefile new file mode 100644 index 000000000000..de80fd0caddf --- /dev/null +++ b/devel/py-noseofyeti/Makefile @@ -0,0 +1,27 @@ +PORTNAME= noseofyeti +DISTVERSIONPREFIX=release- +DISTVERSION= 2.3.1 +CATEGORIES= devel python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= arrowd@FreeBSD.org +COMMENT= Python codec that provides an RSpec style DSL for Python + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-helpers-namespace>0:devel/py-pytest-helpers-namespace@${PY_FLAVOR} + +USES= python +USE_GITHUB= yes +USE_PYTHON= autoplist concurrent distutils + +GH_ACCOUNT= delfick +GH_PROJECT= nose-of-yeti + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= \ + -k 'not test_registering_codec_doesnt_lead_to_error' + +.include diff --git a/devel/py-noseofyeti/distinfo b/devel/py-noseofyeti/distinfo new file mode 100644 index 000000000000..be5dbba570de --- /dev/null +++ b/devel/py-noseofyeti/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660010121 +SHA256 (delfick-nose-of-yeti-release-2.3.1_GH0.tar.gz) = 869e47844c1c8a882f39573af79204a8087f19e0788d3c869d7b5dee549db0ca +SIZE (delfick-nose-of-yeti-release-2.3.1_GH0.tar.gz) = 32219 diff --git a/devel/py-noseofyeti/pkg-descr b/devel/py-noseofyeti/pkg-descr new file mode 100644 index 000000000000..cd5390df732c --- /dev/null +++ b/devel/py-noseofyeti/pkg-descr @@ -0,0 +1,12 @@ +noseOfYeti creates a custom Python codec that lets you write your tests using an +RSpec inspired DSL (i.e. `describe` and `it` blocks). It uses the fact that you +can register a codec that is able to modify a Python file before executing it. +Using this we can make it so that when Python imports a file with a particular +encoding as the first line of the file it will be intercepted and potentially +rewritten into something else before the import continues. + +noseOfYeti uses this technique to translate from the DSL it defines, into +Python classes and functions that then will be executed by your test framework +of choice. + +WWW: https://github.com/delfick/nose-of-yeti