From nobody Sun Jan 12 11:06:32 2025 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 4YWCJ86rlWz5kTv7; Sun, 12 Jan 2025 11:06:32 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YWCJ858l3z4Q5m; Sun, 12 Jan 2025 11:06:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736679992; 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=bu4cRj55emqmKmUxQS+jCkPor0B5SoyU1/D3xKUF3kE=; b=p0liTl74F7lBftdiorQJchZmzEdCSJZwGaNfI9pe1W+MU0kKJ7Z0HhLadoOkcrOJbWdp5n q0a6Ztwg9t/OTgfeR4fef0gLApmVrw5vbKT6qNCb0hW/Z02B0tGeD3B8KnmYAlSHV5VJLV t/ebJyJpjQiiFJ68uuEkEOAE3s7JtltGuOfsywfGN2iSndBefdsLNyG1mXLluA3SVItCfC 7b9uoFZQigXby586GsR9HoD5iEHbK93JCCRk02AyntBbPRpjOq9ozYW2pmcNeghkHfnWQ/ RdHvF8Hb+0DCAD8PL+BCDzMKNcRxi39UCm5sFTvwWCyqzL+C676nE4SnViGV+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736679992; 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=bu4cRj55emqmKmUxQS+jCkPor0B5SoyU1/D3xKUF3kE=; b=cVAADWj4oTKx7asJjgo4Yq5jDRlVDYpX/BCF83Q6stZ2LkYC3ry1BTvxrnT9NXKmhVc13a jPkUfcypj/1kEPVziYLXPBVefcXx0WifQ5yZ797SGS3DxmtX4VEuL7bvkIH3u/ndiDafwR JsP7R+ThI4VBMDhfy1J5+AWTRhSeFzCgQRa0oO6DxPiL63u66XUbqTVBg1qQx+dh84h/sU LkZ02UPSK5i+7om1Ho7sQ7P9JxtiBfcZMFLeRTWEZ5Bw0myt50A/C/xYhxmSspS6jLBF3Z bXkGX7v58qdHDl8Gvd8MyzrjUvt4N6OMylRkh/x0VzKDsZPaHvPxqn0HlMnPFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736679992; a=rsa-sha256; cv=none; b=s/6FspkH5gf9nNh29yv1ecOKIavlzGs3HLDL1Kc+GqSz41W1nVi7yel8epNvRnmNhjE6Hu UnOumvgwov+2mzGBCl76MhuBJMxE38/FHCShCsEheepyg/i4cBwS342R0R/xIJd7Xso6Ho Nbl6uV7ARYDokuDR4htLutoalHTcd9/Bo+xiu0pGFGrWjrYOqQNjxogOKvgd1u7zqi76rm RectAilKK8HQ7pVkRth9czp1cDEC7afk5jNA+POsDqfsFFLby4kVADzHDKhIEucV4rL7vv v5THbJud/nGuUg5vGuLs99rd/T1+N/MSPTJXv+kQxCLFvztTYeS9RQDDr6m7vQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YWCJ84kbrzhxk; Sun, 12 Jan 2025 11:06:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50CB6W3r096432; Sun, 12 Jan 2025 11:06:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50CB6WpC096429; Sun, 12 Jan 2025 11:06:32 GMT (envelope-from git) Date: Sun, 12 Jan 2025 11:06:32 GMT Message-Id: <202501121106.50CB6WpC096429@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nuno Teixeira Subject: git: b725b1d73988 - main - editors/retext: Improve tests 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eduardo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b725b1d73988e8288a7d95d0b2ccd27cc3de82bd Auto-Submitted: auto-generated The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=b725b1d73988e8288a7d95d0b2ccd27cc3de82bd commit b725b1d73988e8288a7d95d0b2ccd27cc3de82bd Author: Nuno Teixeira AuthorDate: 2025-01-12 10:58:08 +0000 Commit: Nuno Teixeira CommitDate: 2025-01-12 11:05:10 +0000 editors/retext: Improve tests Use display:test instead of reinventing the wheel... Thank you, jbeich@, for informing me about this useful feature. --- editors/retext/Makefile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/editors/retext/Makefile b/editors/retext/Makefile index de6637ec2dd8..8a5a983e5d0e 100644 --- a/editors/retext/Makefile +++ b/editors/retext/Makefile @@ -1,5 +1,6 @@ PORTNAME= ReText DISTVERSION= 8.1.0 +PORTREVISION= 1 CATEGORIES= editors MASTER_SITES= PYPI DISTNAME= retext-${DISTVERSION} @@ -19,23 +20,13 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>=0:textproc/py-docutils@${PY_FLAVOR ${PYTHON_PKGNAMEPREFIX}markups>=4.0.0:textproc/py-markups@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}python-markdown-math>=0.6:textproc/py-python-markdown-math@${PY_FLAVOR} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymdown-extensions>0:textproc/py-pymdown-extensions@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ - Xvfb:x11-servers/xorg-server@xvfb +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymdown-extensions>0:textproc/py-pymdown-extensions@${PY_FLAVOR} -USES= desktop-file-utils pyqt:6 python:3.9+ qt:6 +USES= desktop-file-utils display:test pyqt:6 python:3.9+ qt:6 USE_PYQT= pyqt6:run -USE_PYTHON= autoplist noflavors pep517 +USE_PYTHON= autoplist noflavors pep517 pytest USE_QT= tools:build NO_ARCH= yes -# Run tests in Xvfb using an approach to upstream CI: -# https://github.com/retext-project/retext/blob/2ef7142e9422e8423e168a7ab30f8e491510f9b6/.github/workflows/main.yml#L59 -# run: xvfb-run -a -s "-screen 0 1024x768x24" python -m unittest discover -s tests -v -do-test: - Xvfb :1 -screen 0 1024x768x24 & \ - cd ${WRKSRC} && ${SETENV} DISPLAY=:1 ${PYTHON_CMD} -m pytest -rs -v ; \ - killall -v Xvfb - .include