From nobody Fri Apr 26 13:10:12 2024 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 4VQtPJ6CvTz5JfQ1; Fri, 26 Apr 2024 13:10:12 +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 4VQtPJ5k08z4WYy; Fri, 26 Apr 2024 13:10:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714137012; 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=Xe9ba80Lbn2MMU6EajJwYLk9lq3WzIVPEsbggPX0lro=; b=ASczFm8z5xGJUZ7JqiIV++CtHy5xOyG12iG1PFXv885WoUdKDC2xthASuCe+0jcLxF/oeb 1fSQJvir2VNckVoYMKbBhYJhA88DODL/9/VmgX7/S1SV6TJ2ok+H0/F0t73BaX09QNni6F 4BqnI6s/i7SxPdLTnQDGWO0FOsXrvq+6m+cy6zvBcspemB/eD9XB7JeG0Oxhn/0xVdKnIQ hm9zSJ/mXe4L+9NM0bK9ek/j0CqYZ18GDydgY8dzzws8K0vXarIPlmrsg/r4Mi3tZTK/X9 /YUIQ9+zwGs/70//buxu3URr0wjSk6zbrB8fQFioNoU09foQSsKFhpBLHRLpYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714137012; a=rsa-sha256; cv=none; b=Gvq8KhorKnAwirD/nIrdtLaAg18n6rGxPXJTR4tqGlJAoGTeiB3F4t9Dv075CJihLGVbWz anRB6tz/REE9NAuF0wgE/BTIcIYzv6Ek/H1kYN67sf3XXKG8BxCDV8csqlYfLbMuSJUuhY 3cy+Fv7YiU61w+GWt6pavxoxIvHfKUNLzZOTQfV4FILSrVO0/YKWtt52RJr1jDJeXOLVgo 98d0aqRSsLhQuahHNYs/q5T2HbrMj/RMIRwc5ldRXTCh/3rj5GbC9Iqg4undiv1RQv8TwV 74lXy9HBej1hiExsdFJkKb7JtghFgBPqD2nINARtUcYMzATpAOYqikWoLQmLqw== 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=1714137012; 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=Xe9ba80Lbn2MMU6EajJwYLk9lq3WzIVPEsbggPX0lro=; b=L4/qeWs+Vw1hhyKjMop4MKydUkSJ/Xh+HawEz74Vh86cd3+SwoP3KWKTrX4GWQ49HClAlp v2CXE9iZSuX+gZ8pXTzwamU8S5nYpxZtvxHUOZ7V8pD3a7NfUFMb+i0aWpXAPcJDMCGYj7 RzmYF+lA7KmHwG3gB7bHsOfXOs7XRXcMFw3NUY+SaFDoirhQMNNxLm2L1DDwPN54TfKJg8 lyYlxlvyQbVpCUrk2HWr0hM+jukHFUzCBw0w0W9+9kJOxcjj4zAZYcsqgNPArMj0pKZseG yD1nbS7J1xbnApsNGXzoahlYwhLT7HnWkzfP0KE5LQtPFxZEBt2CiyyMqi9MyA== 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 4VQtPJ5KYHzkBx; Fri, 26 Apr 2024 13:10:12 +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 43QDACI8016266; Fri, 26 Apr 2024 13:10:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43QDACmc016261; Fri, 26 Apr 2024 13:10:12 GMT (envelope-from git) Date: Fri, 26 Apr 2024 13:10:12 GMT Message-Id: <202404261310.43QDACmc016261@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nicola Vitale Subject: git: b874018c2da0 - main - devel/py-virtualenv: Update to 20.26.0 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: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b874018c2da0e560ec51c27cad832a46b6738f55 Auto-Submitted: auto-generated The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=b874018c2da0e560ec51c27cad832a46b6738f55 commit b874018c2da0e560ec51c27cad832a46b6738f55 Author: Nicola Vitale AuthorDate: 2024-04-26 13:00:19 +0000 Commit: Nicola Vitale CommitDate: 2024-04-26 13:09:53 +0000 devel/py-virtualenv: Update to 20.26.0 - Add a pre-test stage that adds a [tool.setuptools_scm] section to project.toml, so that tests can detect the version. Otherwise 5 tests fail with an error similar to ________________________________________________________________________________________________________________________ test_fail_no_traceback ________________________________________________________________________________________________________________________ raise_on_session_done = ._func at 0x3f63e7392c10>, tmp_path = PosixPath(/tmp/pytest-of-root/pytest-5/test_fail_no_traceback0), capsys = <_pytest.capture.CaptureFixture object at 0x3f63e5c0aca0> def test_fail_no_traceback(raise_on_session_done, tmp_path, capsys): raise_on_session_done(ProcessCallFailedError(code=2, out="out\n", err="err\n", cmd=["something"])) with pytest.raises(SystemExit) as context: run_with_catch([str(tmp_path)]) assert context.value.code == 2 out, err = capsys.readouterr() assert out == f"subprocess call failed for [{something!r}] with code 2\nout\nSystemExit: 2\n" > assert err == "err\n" E AssertionError: assert ... nerrn == errn E + WARNING pyproject.toml does not contain a setuptools.py:119 E + tool.setuptools_scm section E err tests/unit/config/test___main__.py:52: AssertionError See also https://github.com/pypa/setuptools_scm/issues/1011 Release changes: https://github.com/pypa/virtualenv/releases/tag/20.26.0 Reported by: Bernát Gábor --- devel/py-virtualenv/Makefile | 16 ++++++++++++++-- devel/py-virtualenv/distinfo | 6 +++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/devel/py-virtualenv/Makefile b/devel/py-virtualenv/Makefile index f40c6ffd0f0c..f93744eb6e66 100644 --- a/devel/py-virtualenv/Makefile +++ b/devel/py-virtualenv/Makefile @@ -1,5 +1,5 @@ PORTNAME= virtualenv -PORTVERSION= 20.25.3 +PORTVERSION= 20.26.0 CATEGORIES= devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -15,7 +15,7 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}distlib>=0.3.7:devel/py-distlib@${PY_FLAVO RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}distlib>=0.3.7:devel/py-distlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}filelock>=3.12.2:sysutils/py-filelock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}platformdirs>=3.9.1:devel/py-platformdirs@${PY_FLAVOR} -# tests: 296 passed, 26 skipped +# tests: 299 passed, 27 skipped TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}covdefaults>=2.3:devel/py-covdefaults@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}coverage>=7.3.2:devel/py-coverage@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}coverage_enable_subprocess>=1.0:devel/py-coverage_enable_subprocess@${PY_FLAVOR} \ @@ -26,6 +26,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}covdefaults>=2.3:devel/py-covdefaults@${PY_ ${PYTHON_PKGNAMEPREFIX}pytest-randomly>=3.12:devel/py-pytest-randomly@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-timeout>=2.1.0:devel/py-pytest-timeout@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools>=63:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8.0.4:devel/py-setuptools-scm@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}time-machine>=2.10.0:devel/py-time-machine@${PY_FLAVOR} USES= cpe python @@ -72,8 +73,19 @@ post-patch: -e 's,%%PYTHON_VER%%,${PYTHON_VER},1' \ ${WRKSRC}/docs/conf.py +# Fix a few tests that fail with the error: +# +# E AssertionError: assert ... nerrn == errn +# E + WARNING pyproject.toml does not contain a setuptools.py:119 +# E + tool.setuptools_scm section +# +# See https://github.com/pypa/setuptools_scm/issues/1011 +pre-test: + @${PRINTF} "\n[tool.setuptools_scm]\nfallback_version = \"${PORTVERSION}\"" >> ${WRKSRC}/pyproject.toml + post-install-DOCS-on: ${LOCALBASE}/bin/sphinx-build-${PYTHON_VER} -d ${WRKDIR} -b html -n ${WRKSRC}/docs ${STAGEDIR}${DOCSDIR} ${LOCALBASE}/bin/sphinx-build-${PYTHON_VER} -d ${WRKDIR} -b man -n ${WRKSRC}/docs ${STAGEDIR}${PREFIX}/share/man/man1 + .include diff --git a/devel/py-virtualenv/distinfo b/devel/py-virtualenv/distinfo index 7471a62e6627..9aa0f6b663be 100644 --- a/devel/py-virtualenv/distinfo +++ b/devel/py-virtualenv/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1713456785 -SHA256 (pypa-virtualenv-20.25.3_GH0.tar.gz) = 6e3fa10473b5389a1a2139aa25eb82d743f2db4fc3231d488dab3f24aa30fce3 -SIZE (pypa-virtualenv-20.25.3_GH0.tar.gz) = 7329139 +TIMESTAMP = 1714057633 +SHA256 (pypa-virtualenv-20.26.0_GH0.tar.gz) = 52d3892ce26a0682fa0d3f51e37727398a909449dc211b2abbf5e5849b9223b6 +SIZE (pypa-virtualenv-20.26.0_GH0.tar.gz) = 7329467