diff --git a/devel/py-pytest-subprocess/Makefile b/devel/py-pytest-subprocess/Makefile index 1a5c2fec1b34..a65627f508d7 100644 --- a/devel/py-pytest-subprocess/Makefile +++ b/devel/py-pytest-subprocess/Makefile @@ -1,32 +1,38 @@ PORTNAME= pytest-subprocess -DISTVERSION= 1.5.2 -PORTREVISION= 1 +DISTVERSION= 1.5.4 CATEGORIES= devel python #MASTER_SITES= PYPI # no tests PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Pytest plugin to fake subprocess for pytest WWW= https://github.com/aklajnert/pytest-subprocess LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=4.0.0:devel/py-pytest@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=0:devel/py-anyio@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}docutils>=0.12:textproc/py-docutils@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pygments>=2.0:textproc/py-pygments@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0.15.1:devel/py-pytest-asyncio@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-rerunfailures>0:devel/py-pytest-rerunfailures@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} USES= python -USE_PYTHON= distutils autoplist pytest # 2 tests fail, see https://github.com/aklajnert/pytest-subprocess/issues/123 +USE_PYTHON= pep517 autoplist pytest USE_GITHUB= yes GH_ACCOUNT= aklajnert +PYTEST_BROKEN_TESTS= test_documentation[README.rst] # README examples assume a `python` binary; see https://github.com/aklajnert/pytest-subprocess/issues/123 + +TEST_ARGS= -p no:flaky + NO_ARCH= yes +# tests as of 1.5.4: 150 passed, 4 skipped, 1 deselected in 11.08s + .include diff --git a/devel/py-pytest-subprocess/distinfo b/devel/py-pytest-subprocess/distinfo index 66ebbe8b0195..a867691140b2 100644 --- a/devel/py-pytest-subprocess/distinfo +++ b/devel/py-pytest-subprocess/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1722877318 -SHA256 (aklajnert-pytest-subprocess-1.5.2_GH0.tar.gz) = b5f7711d55cc144b44fe58c179641b99e483780f120bc33b7576561476c95c3e -SIZE (aklajnert-pytest-subprocess-1.5.2_GH0.tar.gz) = 35438 +TIMESTAMP = 1784572517 +SHA256 (aklajnert-pytest-subprocess-1.5.4_GH0.tar.gz) = 23edff0742f4d3b923d65f27e0e2e5de8192c6e426aa809cc61f4eff27ecf887 +SIZE (aklajnert-pytest-subprocess-1.5.4_GH0.tar.gz) = 39954 diff --git a/devel/py-pytest-subprocess/files/patch-pyproject.toml b/devel/py-pytest-subprocess/files/patch-pyproject.toml new file mode 100644 index 000000000000..0c11e5948515 --- /dev/null +++ b/devel/py-pytest-subprocess/files/patch-pyproject.toml @@ -0,0 +1,9 @@ +-- Add pyproject.toml to enable PEP 517 build with the setuptools version +-- available in FreeBSD ports. Upstream only ships setup.py/setup.cfg. + +--- pyproject.toml.orig 1970-01-01 00:00:00 UTC ++++ pyproject.toml +@@ -0,0 +1,3 @@ ++[build-system] ++requires = ["setuptools>=61", "wheel"] ++build-backend = "setuptools.build_meta"