diff options
Diffstat (limited to 'devel/py-pytest-relaxed')
-rw-r--r-- | devel/py-pytest-relaxed/Makefile | 20 | ||||
-rw-r--r-- | devel/py-pytest-relaxed/distinfo | 2 | ||||
-rw-r--r-- | devel/py-pytest-relaxed/files/patch-tests_test__display.py | 23 | ||||
-rw-r--r-- | devel/py-pytest-relaxed/pkg-descr | 9 |
4 files changed, 14 insertions, 40 deletions
diff --git a/devel/py-pytest-relaxed/Makefile b/devel/py-pytest-relaxed/Makefile index e9a83c19d882..b1ddc593713f 100644 --- a/devel/py-pytest-relaxed/Makefile +++ b/devel/py-pytest-relaxed/Makefile @@ -1,26 +1,24 @@ PORTNAME= pytest-relaxed -DISTVERSION= 2.0.2 -PORTREVISION= 1 +PORTVERSION= 2.0.2 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= bofh@FreeBSD.org +MAINTAINER= sunpoet@FreeBSD.org COMMENT= Relaxed test discovery/organization for pytest -WWW= https://pytest-relaxed.readthedocs.io/ +WWW= https://pytest-relaxed.readthedocs.io/en/latest/ \ + https://github.com/bitprophet/pytest-relaxed LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -DEPRECATED= Depends on expiring devel/py-pytest4 -EXPIRATION_DATE=2025-06-21 - -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest4>=3:devel/py-pytest4@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}six>=1:devel/py-six@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}decorator>=4:devel/py-decorator@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>=7,1:devel/py-pytest@${PY_FLAVOR} USES= python -USE_PYTHON= autoplist distutils pytest +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes diff --git a/devel/py-pytest-relaxed/distinfo b/devel/py-pytest-relaxed/distinfo index 25d4af770626..ca6a7323c79a 100644 --- a/devel/py-pytest-relaxed/distinfo +++ b/devel/py-pytest-relaxed/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1711809605 +TIMESTAMP = 1750955575 SHA256 (pytest-relaxed-2.0.2.tar.gz) = 956ea028ec30dbbfb680dd8e7b4a7fb8f80a239595e88bace018bf2c0d718248 SIZE (pytest-relaxed-2.0.2.tar.gz) = 27876 diff --git a/devel/py-pytest-relaxed/files/patch-tests_test__display.py b/devel/py-pytest-relaxed/files/patch-tests_test__display.py deleted file mode 100644 index 9bfced24100d..000000000000 --- a/devel/py-pytest-relaxed/files/patch-tests_test__display.py +++ /dev/null @@ -1,23 +0,0 @@ -# Two tests fail when warnings are present in the test run -# https://github.com/bitprophet/pytest-relaxed/issues/7 - ---- tests/test_display.py.orig 2022-12-17 02:40:44 UTC -+++ tests/test_display.py -@@ -18,7 +18,7 @@ def _expect_regular_output(testdir): - assert "== FAILURES ==" in output - assert "AssertionError" in output - # Summary -- assert "== 1 failed, 4 passed, 1 skipped in " in output -+ assert "== 1 failed, 4 passed, 1 skipped" in output - - - class TestRegularFunctions: -@@ -166,7 +166,7 @@ OtherBehaviors - assert "== FAILURES ==" in output - assert "AssertionError" in output - # Summary -- assert "== 1 failed, 4 passed, 1 skipped in " in output -+ assert "== 1 failed, 4 passed, 1 skipped" in output - - def test_tests_are_colorized_by_test_result( - self, testdir, environ # noqa: F811,E501 diff --git a/devel/py-pytest-relaxed/pkg-descr b/devel/py-pytest-relaxed/pkg-descr index 5f2e68860ea4..a0f3f1b209c9 100644 --- a/devel/py-pytest-relaxed/pkg-descr +++ b/devel/py-pytest-relaxed/pkg-descr @@ -1,6 +1,5 @@ -This pytest plugin takes a page from the rest of Python, where you don't -have to explicitly note public module/class members, but only need to -hint as to which ones are private. +pytest-relaxed provides 'relaxed' test discovery for pytest. -By default, all files and objects pytest is told to scan will be considered -tests; to mark something as not-a-test, simply prefix it with an underscore. +It is the spiritual successor to spec, but is built for pytest instead of +nosetests, and rethinks some aspects of the design (such as increased ability to +opt-in to various behaviors.) |