diff --git a/devel/py-pytest/Makefile b/devel/py-pytest/Makefile index cc31e4ab51e0..11124bcaf413 100644 --- a/devel/py-pytest/Makefile +++ b/devel/py-pytest/Makefile @@ -1,54 +1,47 @@ PORTNAME= pytest -PORTVERSION= 8.4.2 -PORTREVISION= 1 +PORTVERSION= 9.1.1 PORTEPOCH= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org COMMENT= Simple powerful testing with Python WWW= https://docs.pytest.org/en/latest/ \ https://github.com/pytest-dev/pytest LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2.3:devel/py-setuptools-scm@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PY_EXCEPTIONGROUP} \ - ${PYTHON_PKGNAMEPREFIX}iniconfig>=0:devel/py-iniconfig@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}packaging>=20:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}iniconfig>=1.0.1:devel/py-iniconfig@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>=22:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pluggy>=1.5<2.0:devel/py-pluggy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pygments>=2.7.2:textproc/py-pygments@${PY_FLAVOR} \ ${PY_TOMLI} TEST_DEPENDS= bash:shells/bash \ - lsof:sysutils/lsof \ ${PYTHON_PKGNAMEPREFIX}argcomplete>=0:devel/py-argcomplete@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}attrs>=19.2:devel/py-attrs@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hypothesis>=3.56:devel/py-hypothesis@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}numpy>=0:math/py-numpy@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pexpect>=0:misc/py-pexpect@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pygments>=2.7.2:textproc/py-pygments@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pytest-xdist>=2.1.0,1:devel/py-pytest-xdist@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}xmlschema>=0:textproc/py-xmlschema@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}xmlschema>=0:textproc/py-xmlschema@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=0:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-xdist>=0:devel/py-pytest-xdist@${PY_FLAVOR} +# ${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted@${PY_FLAVOR} # zope errors USES= python USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes -# XXX: test_pdb_custom_cls_with_set_trace fails do-test: cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -# tests as of 8.4.2: 1 failed, 3861 passed, 37 skipped, 12 xfailed, 7 xpassed in 652.09s (0:10:52), see https://github.com/pytest-dev/pytest/issues/13699 - .include diff --git a/devel/py-pytest/distinfo b/devel/py-pytest/distinfo index 429aa14b982a..c0e1c6d846d4 100644 --- a/devel/py-pytest/distinfo +++ b/devel/py-pytest/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1757060185 -SHA256 (pytest-8.4.2.tar.gz) = 86c0d0b93306b961d58d62a4db4879f27fe25513d4b969df351abdddb3c30e01 -SIZE (pytest-8.4.2.tar.gz) = 1519618 +TIMESTAMP = 1786345771 +SHA256 (pytest-9.1.1.tar.gz) = 1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313 +SIZE (pytest-9.1.1.tar.gz) = 1636369 diff --git a/devel/py-pytest/files/patch-pyproject.toml b/devel/py-pytest/files/patch-pyproject.toml new file mode 100644 index 000000000000..2483dbd924a1 --- /dev/null +++ b/devel/py-pytest/files/patch-pyproject.toml @@ -0,0 +1,32 @@ +revert https://github.com/pytest-dev/pytest/commit/67738403d7e14e0284f6c9f737e68de823760c33 +remove after devel/py-setuptools is updated to at least 77.0.0 + +--- pyproject.toml.orig 2026-06-19 10:38:22 UTC ++++ pyproject.toml +@@ -1,7 +1,7 @@ requires = [ + [build-system] + build-backend = "setuptools.build_meta" + requires = [ +- "setuptools>=77", ++ "setuptools>=61", + "setuptools-scm[toml]>=6.2.3", + ] + +@@ -13,8 +13,7 @@ keywords = [ + "test", + "unittest", + ] +-license = "MIT" +-license-files = [ "LICENSE" ] ++license = { text = "MIT" } + authors = [ + { name = "Brianna Laugher" }, + { name = "Bruno Oliveira" }, +@@ -28,6 +27,7 @@ classifiers = [ + classifiers = [ + "Development Status :: 6 - Mature", + "Intended Audience :: Developers", ++ "License :: OSI Approved :: MIT License", + "Operating System :: MacOS", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX",