From nobody Mon Sep 11 03:13:48 2023 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 4RkWyN5Y9Zz4tGch; Mon, 11 Sep 2023 03:13:48 +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 4RkWyN55CZz3Zvt; Mon, 11 Sep 2023 03:13:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694402028; 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=Hyn+nJ9FWil1o4dcCvRkQm/YmbQuHNFdlrProhfuziE=; b=jqvqxa3wGcrqflxPb2LmrzNaaVs6YrfnOP7IjVpe+LFhN4KP11Fsq1WcQOG/eBGo2CeeYx h7mLiIpLqYRQmiCAG25eTJwUo1eUwvfxuSMIJCpEVRERc1kC5uht/DR/fVr0NUSsKbcFUY HSPqYCb5lXHNWjkr//Ljq8s+p/V+Hy2+RqbhncBy4YxKFSV6kN8XHC89HFV31esputh6st ZXWd6qzUW1wnjEZAOwT1s063soSp9VouQzQyLsZz49dZAAlJZl0NJ4ceJJ2kJS7NvcDKCe 4vNQEmbUdFYyAeIvPbDaAmdwDvB4g9fa4HTFpd2fG3P9ksvw2WAVvWCwrsVdgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694402028; a=rsa-sha256; cv=none; b=abauqijXYL/uFyZhlXBOfDN6OHRRIM9Fwu+OxaLzZ7TwZL9QssHuGqOR2OR4gXckvXubx8 4w1Y/DEaA1wPbpGju3ohCY9RjyW5P/beX5jwIoTUx+VMPeFpwKudgP28q3tRJh2rWSfb0p 4OnVpyyRdae1N5+GYCZBU/pPwGEZ/lgUAz1Rjr1wO+JvFAQyPoi/M6j0uSHn6xK9beGgtb p1FQ9XQvd+dEoZqYR+7aaSwZHPARdeiCly3JX5xVBU+9DD5P90y72wppQpPV2AIbUZchwD zqf5dIjiazdAFeg+/SdJgDWWYg2g6zsk+DF/2q4GaHc8KG/k2oAWNrFzivNuiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694402028; 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=Hyn+nJ9FWil1o4dcCvRkQm/YmbQuHNFdlrProhfuziE=; b=O9b5Yfz6NNdqUKX5TLXwDMk0g9ALCuxy99cN8yBUJzyfpPsBPcMUYuuAIj4+i+IQNe51fN E9/RrJjATIXJvnBWZkZdtg0nhNGQnLiQohEAtKZZx2yYt2F75AIRcxeBZIdF/y/HP9KCJG Dj9xCMSV0G+AHFYlMwt5kx3XP584A07yXNETzdpXnmIOF5nLoUxwVX/xSai7S3Uy1epAke Ph7hqvuLB5AxJTV+NFaGkFcMDJxIP5o+N0NU3V+Npo/3eQphE/WKG3JwKc1I49D/ORwS65 bIZeh5mobaGJskcgRfSJwztubkggt5CFMW08QHNrlbWSU3EDZQUilfQyNA381g== 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 4RkWyN45Q7zYnw; Mon, 11 Sep 2023 03:13:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38B3DmOK021295; Mon, 11 Sep 2023 03:13:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38B3DmRD021292; Mon, 11 Sep 2023 03:13:48 GMT (envelope-from git) Date: Mon, 11 Sep 2023 03:13:48 GMT Message-Id: <202309110313.38B3DmRD021292@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 62cbc4c2937d - main - devel/py-pytest-cases: Add py-pytest-cases 3.6.14 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 62cbc4c2937d93d6082811b6436294d551456e7a Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=62cbc4c2937d93d6082811b6436294d551456e7a commit 62cbc4c2937d93d6082811b6436294d551456e7a Author: Po-Chuan Hsieh AuthorDate: 2023-09-11 03:03:47 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-09-11 03:03:47 +0000 devel/py-pytest-cases: Add py-pytest-cases 3.6.14 Did you ever think that most of your test functions were actually the same test code, but with different data inputs and expected results/exceptions? - pytest-cases leverages pytest and its great @pytest.mark.parametrize decorator, so that you can separate your test cases from your test functions. - In addition, pytest-cases provides several useful goodies to empower pytest. In particular it improves the fixture mechanism to support "fixture unions". This is a major change in the internal pytest engine, unlocking many possibilities such as using fixture references as parameter values in a test function. See here. pytest-cases is fully compliant with pytest-harvest so you can easily monitor the execution times and created artifacts. With it, it becomes very easy to create a complete data science benchmark, for example comparing various models on various datasets. --- devel/Makefile | 1 + devel/py-pytest-cases/Makefile | 26 ++++++++++++++++++++++++++ devel/py-pytest-cases/distinfo | 3 +++ devel/py-pytest-cases/files/patch-setup.cfg | 10 ++++++++++ devel/py-pytest-cases/pkg-descr | 14 ++++++++++++++ 5 files changed, 54 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 156ebac8f5e8..9100c98775fc 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5349,6 +5349,7 @@ SUBDIR += py-pytest-cache SUBDIR += py-pytest-canonical-data SUBDIR += py-pytest-capturelog + SUBDIR += py-pytest-cases SUBDIR += py-pytest-checkdocs SUBDIR += py-pytest-console-scripts SUBDIR += py-pytest-cov diff --git a/devel/py-pytest-cases/Makefile b/devel/py-pytest-cases/Makefile new file mode 100644 index 000000000000..006f3ac502bb --- /dev/null +++ b/devel/py-pytest-cases/Makefile @@ -0,0 +1,26 @@ +PORTNAME= pytest-cases +PORTVERSION= 3.6.14 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Separate test code from test cases in pytest +WWW= https://smarie.github.io/python-pytest-cases/ \ + https://github.com/smarie/python-pytest-cases + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=39.2:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}decopatch>=0:devel/py-decopatch@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}makefun>=1.9.5:devel/py-makefun@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-pytest-cases/distinfo b/devel/py-pytest-cases/distinfo new file mode 100644 index 000000000000..a22575a479c1 --- /dev/null +++ b/devel/py-pytest-cases/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1694348232 +SHA256 (pytest-cases-3.6.14.tar.gz) = 7455e6ca57a544c1bfdd8b56ace08c1c1ce4c6572a8aab8f1bd351dc25a10b6b +SIZE (pytest-cases-3.6.14.tar.gz) = 1083239 diff --git a/devel/py-pytest-cases/files/patch-setup.cfg b/devel/py-pytest-cases/files/patch-setup.cfg new file mode 100644 index 000000000000..8a6cbe6b33cf --- /dev/null +++ b/devel/py-pytest-cases/files/patch-setup.cfg @@ -0,0 +1,10 @@ +--- setup.cfg.orig 2023-02-23 13:18:12 UTC ++++ setup.cfg +@@ -29,7 +29,6 @@ classifiers = + [options] + setup_requires = + setuptools_scm +- pytest-runner + install_requires = + decopatch + makefun>=1.9.5 diff --git a/devel/py-pytest-cases/pkg-descr b/devel/py-pytest-cases/pkg-descr new file mode 100644 index 000000000000..249fb7e59454 --- /dev/null +++ b/devel/py-pytest-cases/pkg-descr @@ -0,0 +1,14 @@ +Did you ever think that most of your test functions were actually the same test +code, but with different data inputs and expected results/exceptions? +- pytest-cases leverages pytest and its great @pytest.mark.parametrize + decorator, so that you can separate your test cases from your test functions. +- In addition, pytest-cases provides several useful goodies to empower pytest. + In particular it improves the fixture mechanism to support "fixture unions". + This is a major change in the internal pytest engine, unlocking many + possibilities such as using fixture references as parameter values in a test + function. See here. + +pytest-cases is fully compliant with pytest-harvest so you can easily monitor +the execution times and created artifacts. With it, it becomes very easy to +create a complete data science benchmark, for example comparing various models +on various datasets.