From nobody Sat Oct 8 15:15:42 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 4Ml7zL33Ztz4fYc9; Sat, 8 Oct 2022 15:15:42 +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 4Ml7zL2X15z3sB0; Sat, 8 Oct 2022 15:15:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665242142; 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=k5sw+F1qwKCSPvVl0Mf66tRrEOwhYQuqEK6nylXloqM=; b=HRiVevefXVm3nWZcbQVq2Z9RXh1vtVIqT8A4iDo2O9uB4ptDc0umidlxaWzhgAKZZGwacD Z7Z3r10pOGHF5w+HB5Ds9OWlRKGd2c7KQFz+9QQeVPVcqXD6o0avpp/tNQcfJTjxBQjBnu +/jc3dQtLOgjCLrdhHX2hKBohI0FnkMWCbXnpEQ9cVvKQ/sRujnJFSRsiva3ht1BRKjcIr DOEt6ORv8kz5RNrXVtcfsejA9Q0pKZRo+tB7F6o77ajObxATxyFFOffgRrcppPGTYPuXyl wVyvTduyx8ENeLPoe+BmcfYfciuoxk9Cok7GvOUMzcdqUwdjLnV5Iq4JNYZrkw== 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 4Ml7zL1Gf5zytV; Sat, 8 Oct 2022 15:15:42 +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 298FFgp0025560; Sat, 8 Oct 2022 15:15:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 298FFgeR025559; Sat, 8 Oct 2022 15:15:42 GMT (envelope-from git) Date: Sat, 8 Oct 2022 15:15:42 GMT Message-Id: <202210081515.298FFgeR025559@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: f96dea1cf1e8 - main - devel/py-pytest-qt: New port: PyTest support for PyQt and PySide applications 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: f96dea1cf1e86a79745163c65d788329db7bd2cd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665242142; 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=k5sw+F1qwKCSPvVl0Mf66tRrEOwhYQuqEK6nylXloqM=; b=VzGN0qhEA8jcDuGBtblOvwKU7slxBdRDlX1U4xvWaSZi2nX4WrkiwVYgpvdhdDCGSXT825 4dyxo7FzBtTpwuAaPTbnT1f2DLyyOhZUc/JmUFsh0enjfe+QSPXE1z3HYb5tlncj9P3NmK pNBw5wJyEnQIVwA+svBMX8S/NzkDXZEsb9vPO24B7Tra7Gzh+8fwJt7D6AjSnUNLlg9b8c EaLiu4w133e/F45lDcTucgNLbRMvaBJkXb7Mt3vblvFEYrNgMNPXPn+BzB/kgYrPakkJmg wDg6210Se36Rw5Tr3d4OvUQ6ELU1bTAEa4pS5/OILw3yDbutnLGwatDnc0NrcA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665242142; a=rsa-sha256; cv=none; b=NvsrpPOWOOVE3/TUBIXDwQbk/opcZoPaUTBXiFVkWNcVWiaXErNFH2h9xKeoERoQ27LB5V uF7XtOfbgrWONHN7NQ1+WqpQLjLLu2296SKv7CTY0gf9TZ2Laz4dR6P/7d05+MzaBgsYKT byJswsZfHqg5nFl/YdU0gBq7CSsi1IVkQ5xJTUZhes10Phu94rRobujFLwHG+KEw5gPp9f dwNIpfwAApXn6NUCuL0K8HpQmbZ4Fgs8dYEQTbbDAgAPLhZEMI/RcH0jJvpCtr+yq5Jtf0 c0NE3Ir4HJcr0ouCttJRkOqvwAp6C/2RH4pins64spLNqFXUjobnYvG5MkAhBg== 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=f96dea1cf1e86a79745163c65d788329db7bd2cd commit f96dea1cf1e86a79745163c65d788329db7bd2cd Author: Yuri Victorovich AuthorDate: 2022-10-08 03:48:23 +0000 Commit: Yuri Victorovich CommitDate: 2022-10-08 15:15:38 +0000 devel/py-pytest-qt: New port: PyTest support for PyQt and PySide applications --- devel/Makefile | 1 + devel/py-pytest-qt/Makefile | 24 ++++++++++++++++++++++++ devel/py-pytest-qt/distinfo | 3 +++ devel/py-pytest-qt/pkg-descr | 6 ++++++ 4 files changed, 34 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 49155afeefd3..0018b2514f28 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5151,6 +5151,7 @@ SUBDIR += py-pytest-plus SUBDIR += py-pytest-profiling SUBDIR += py-pytest-pycodestyle + SUBDIR += py-pytest-qt SUBDIR += py-pytest-randomly SUBDIR += py-pytest-regressions SUBDIR += py-pytest-regtest diff --git a/devel/py-pytest-qt/Makefile b/devel/py-pytest-qt/Makefile new file mode 100644 index 000000000000..4266f5ddb3e5 --- /dev/null +++ b/devel/py-pytest-qt/Makefile @@ -0,0 +1,24 @@ +PORTNAME= pytest-qt +DISTVERSION= 4.1.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= PyTest support for PyQt and PySide applications +WWW= https://github.com/pytest-dev/pytest-qt + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils pytest # 3 tests fail, see https://github.com/pytest-dev/pytest-qt/issues/457 + +NO_ARCH= yes + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +.include diff --git a/devel/py-pytest-qt/distinfo b/devel/py-pytest-qt/distinfo new file mode 100644 index 000000000000..55520684b58c --- /dev/null +++ b/devel/py-pytest-qt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1665198683 +SHA256 (pytest-qt-4.1.0.tar.gz) = 027f3d3f5dd04af0530d846cf50fb858f719f7e87c2e4a1c686abd4e0f72172a +SIZE (pytest-qt-4.1.0.tar.gz) = 119702 diff --git a/devel/py-pytest-qt/pkg-descr b/devel/py-pytest-qt/pkg-descr new file mode 100644 index 000000000000..dc23b60cc12f --- /dev/null +++ b/devel/py-pytest-qt/pkg-descr @@ -0,0 +1,6 @@ +pytest-qt is a pytest plugin that allows programmers to write tests for PyQt5, +PyQt6, PySide2 and PySide6 applications. + +The main usage is to use the qtbot fixture, responsible for handling qApp +creation as needed and provides methods to simulate user interaction, like key +presses and mouse clicks.