From nobody Wed Apr 6 22:39:34 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 B37B51A8DD97; Wed, 6 Apr 2022 22:39:34 +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 4KYfZt4cZsz3Pjg; Wed, 6 Apr 2022 22:39:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649284774; 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=umopfIMhzNUcPQbCWH0oTRB1CvvhkQChfCPcZqMCgHc=; b=eYV7JcO3nmCDS9MFPwIj3LwrH36kYreVr73d9vUZ+idHo6CecrGDbH2ess5geLhqg3jNJC 9DgYufVVZ8LCvemEP3Og6DYy6NDwHYW1z2M6JnrHjqp39yNfVehDh6nF5FtG2BvmgmDGFh kaBFhDG3WNLs0I17w3JeiSdFlm+ZfKt8A/1Oa+gV/1uzs30xyLF1ZKEfXNfTrHINbOCRu7 XYavsRQzbd/H5hKTwa9tl3UMnWlPWFykSl/Rart2jkfrrc9mvK/ejJtWAMNFT21KMBD2EM HQdXx0jG7GzZ5ECj3SRDkvt3XL8kMYm3rNBxj22FTZ46/IgOeEeP/AlPoaq3jA== 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 7EAE4238F0; Wed, 6 Apr 2022 22:39:34 +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 236MdYBi013999; Wed, 6 Apr 2022 22:39:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 236MdYpg013998; Wed, 6 Apr 2022 22:39:34 GMT (envelope-from git) Date: Wed, 6 Apr 2022 22:39:34 GMT Message-Id: <202204062239.236MdYpg013998@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: e38e0e6063c3 - main - devel/py-pytest4-cache: preserve pytest4 counterpart of corresponding port 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: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e38e0e6063c33fc7cea17ca466902ebde17f772f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649284774; 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=umopfIMhzNUcPQbCWH0oTRB1CvvhkQChfCPcZqMCgHc=; b=KFaXAYlF+xevUgC0kaX+Kbxw32+3wvtCxuZO6wGrZcqaQ9ic6j8Mf7cOXScYBmCfGASPEn Ty6vZdp8XTTjH9S6v2tsJuibscXJKccwlbtBSqmunxeo4Dc3Cx5WbGDU4RmB2UMU+8YYIV BogPa4c69lmi/IERSTPiqH7Y1qN6551r1OqynFvA8WeGk1JZZFLtO17mJmeBbz36SPvvfS RaAe7E2nn7PkC1/UxOqEkqHsnPGwGyQbb37amJkRmz8hWu/zBufYsnNc0Lm7ou1b36IZC/ DR78H6onl8R943Iknho4dnitYMaIJWPwi1MoBd6C30QzCaFXW+ywL603rwicxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649284774; a=rsa-sha256; cv=none; b=UTHkhj+HArhoMiepiQOxzrAWTcPYdntRA1oA6XynyIMIrNWvmKZEQhW2Hl66D7UAY/La8f 8g7tZt5VmgRFZlEzZuAK+sr/oupNWecPBB8uW2xAuEjTxu3VTu6D+yX+PTHiLi7UYZB6sK SG4y9GODxo4P3Ju6BmST0BqEnD03q7/bNyhEcW7C6YdoucpWR+MgHh1iMh4OTsPnE/MnWS QkDnjzVlzujQ7drPOwDf57m9Qq7urchCR+V85yt2NyA2W94oUnVdHAlSug4VktcFOcsJ2i t/Qi9/tS2N6F9XRil62IxA+QufxwUoNa+ZKV2XxOwT743KxApZUAZve5GgjwRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=e38e0e6063c33fc7cea17ca466902ebde17f772f commit e38e0e6063c33fc7cea17ca466902ebde17f772f Author: Dmitry Marakasov AuthorDate: 2022-04-06 17:20:10 +0000 Commit: Dmitry Marakasov CommitDate: 2022-04-06 22:38:33 +0000 devel/py-pytest4-cache: preserve pytest4 counterpart of corresponding port PR: 256624 --- devel/Makefile | 1 + devel/py-pytest-cache/Makefile | 2 ++ devel/py-pytest4-cache/Makefile | 29 +++++++++++++++++++++++ devel/py-pytest4-cache/distinfo | 3 +++ devel/py-pytest4-cache/files/patch-setup.py | 36 +++++++++++++++++++++++++++++ devel/py-pytest4-cache/pkg-descr | 3 +++ 6 files changed, 74 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index ca090d7edd3f..7ffd5c6b8c34 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5109,6 +5109,7 @@ SUBDIR += py-pytest-xprocess SUBDIR += py-pytest4 SUBDIR += py-pytest4-asyncio + SUBDIR += py-pytest4-cache SUBDIR += py-pytest4-cov SUBDIR += py-python-Levenshtein SUBDIR += py-python-application diff --git a/devel/py-pytest-cache/Makefile b/devel/py-pytest-cache/Makefile index 71ce81ba19cc..e3a76e380ac4 100644 --- a/devel/py-pytest-cache/Makefile +++ b/devel/py-pytest-cache/Makefile @@ -12,6 +12,8 @@ COMMENT= Pytest plugin with mechanisms for caching across test runs LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}pytest4-cache + RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.2:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}execnet>=1.2:sysutils/py-execnet@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} diff --git a/devel/py-pytest4-cache/Makefile b/devel/py-pytest4-cache/Makefile new file mode 100644 index 000000000000..45fcf5cb9b12 --- /dev/null +++ b/devel/py-pytest4-cache/Makefile @@ -0,0 +1,29 @@ +# Created by: Fukang Chen + +PORTNAME= pytest4-cache +PORTVERSION= 1.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:C/4//}-${PORTVERSION} + +MAINTAINER= loader@FreeBSD.org +COMMENT= Pytest plugin with mechanisms for caching across test runs (legacy version for pytest 4) + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}pytest-cache + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest4>=2.2:devel/py-pytest4@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}execnet>=1.2:sysutils/py-execnet@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest4>0:devel/py-pytest4@${PY_FLAVOR} + +NO_ARCH= yes +USES= python:3.6+ +USE_PYTHON= autoplist distutils +DO_MAKE_TEST= ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} +TEST_TARGET= test +PYDISTUTILS_PKGNAME= ${PORTNAME:C/4//} + +.include diff --git a/devel/py-pytest4-cache/distinfo b/devel/py-pytest4-cache/distinfo new file mode 100644 index 000000000000..919dc0f71ed9 --- /dev/null +++ b/devel/py-pytest4-cache/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1649284663 +SHA256 (pytest-cache-1.0.tar.gz) = be7468edd4d3d83f1e844959fd6e3fd28e77a481440a7118d430130ea31b07a9 +SIZE (pytest-cache-1.0.tar.gz) = 16242 diff --git a/devel/py-pytest4-cache/files/patch-setup.py b/devel/py-pytest4-cache/files/patch-setup.py new file mode 100644 index 000000000000..75426dd0c02d --- /dev/null +++ b/devel/py-pytest4-cache/files/patch-setup.py @@ -0,0 +1,36 @@ +--- setup.py.orig 2013-06-04 19:10:04 UTC ++++ setup.py +@@ -1,4 +1,24 @@ + from setuptools import setup ++from setuptools.command.test import test as TestCommand ++ ++class PyTest(TestCommand): ++ user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] ++ ++ def initialize_options(self): ++ TestCommand.initialize_options(self) ++ self.pytest_args = [] ++ ++ def finalize_options(self): ++ TestCommand.finalize_options(self) ++ self.test_args = [] ++ self.test_suite = True ++ ++ def run_tests(self): ++ # import here, because outside the eggs aren't loaded ++ import pytest ++ errno = pytest.main(self.pytest_args) ++ sys.exit(errno) ++ + setup( + name='pytest-cache', + description='pytest plugin with mechanisms for caching across test runs', +@@ -10,6 +30,8 @@ setup( + py_modules=['pytest_cache'], + entry_points={'pytest11': ['cacheprovider = pytest_cache']}, + install_requires=['pytest>=2.2', 'execnet>=1.1.dev1', ], ++ tests_require=['pytest'], ++ cmdclass={'test': PyTest}, + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', diff --git a/devel/py-pytest4-cache/pkg-descr b/devel/py-pytest4-cache/pkg-descr new file mode 100644 index 000000000000..8c50b16f8e2c --- /dev/null +++ b/devel/py-pytest4-cache/pkg-descr @@ -0,0 +1,3 @@ +pytest plugin with mechanisms for caching across test runs. + +WWW: https://bitbucket.org/hpk42/pytest-cache/