summaryrefslogtreecommitdiff
path: root/devel/py-pytest
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--devel/py-pytest-arraydiff/Makefile29
-rw-r--r--devel/py-pytest-arraydiff/distinfo3
-rw-r--r--devel/py-pytest-arraydiff/pkg-descr16
-rw-r--r--devel/py-pytest-asyncio/Makefile14
-rw-r--r--devel/py-pytest-asyncio/pkg-descr8
-rw-r--r--devel/py-pytest-filter-subpackage/Makefile29
-rw-r--r--devel/py-pytest-filter-subpackage/distinfo3
-rw-r--r--devel/py-pytest-filter-subpackage/pkg-descr3
-rw-r--r--devel/py-pytest-lazy-fixtures/Makefile2
-rw-r--r--devel/py-pytest-lazy-fixtures/distinfo6
-rw-r--r--devel/py-pytest-run-parallel/Makefile2
-rw-r--r--devel/py-pytest-run-parallel/distinfo6
-rw-r--r--devel/py-pytest-sugar/Makefile5
-rw-r--r--devel/py-pytest-sugar/distinfo6
-rw-r--r--devel/py-pytest/Makefile14
15 files changed, 116 insertions, 30 deletions
diff --git a/devel/py-pytest-arraydiff/Makefile b/devel/py-pytest-arraydiff/Makefile
new file mode 100644
index 000000000000..f827c3f124b1
--- /dev/null
+++ b/devel/py-pytest-arraydiff/Makefile
@@ -0,0 +1,29 @@
+PORTNAME= pytest-arraydiff
+DISTVERSION= 0.6.1
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Pytest plugin to help with comparing array output from tests
+WWW= https://github.com/astropy/pytest-arraydiff
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}pytest>=4.6:devel/py-pytest@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+NO_ARCH= yes
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+# tests as of 0.6.1: 18 passed in 32.31s
+
+.include <bsd.port.mk>
diff --git a/devel/py-pytest-arraydiff/distinfo b/devel/py-pytest-arraydiff/distinfo
new file mode 100644
index 000000000000..51c9960f06a9
--- /dev/null
+++ b/devel/py-pytest-arraydiff/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1757266057
+SHA256 (pytest-arraydiff-0.6.1.tar.gz) = 2937b1450fc935620f24709d87d40c67e055a043d7b8541a25fdfa994dda67de
+SIZE (pytest-arraydiff-0.6.1.tar.gz) = 16907
diff --git a/devel/py-pytest-arraydiff/pkg-descr b/devel/py-pytest-arraydiff/pkg-descr
new file mode 100644
index 000000000000..d4c6f298dd68
--- /dev/null
+++ b/devel/py-pytest-arraydiff/pkg-descr
@@ -0,0 +1,16 @@
+pytest-arraydiff is a py.test plugin to facilitate the generation and comparison
+of data arrays produced during tests, in particular in cases where the arrays
+are too large to conveniently hard-code them in the tests
+(e.g. np.testing.assert_allclose(x, [1, 2, 3])).
+
+The basic idea is that you can write a test that generates a Numpy array (or
+other related objects depending on the format, e.g. pandas DataFrame). You can
+then either run the tests in a mode to generate reference files from the arrays,
+or you can run the tests in comparison mode, which will compare the results of
+the tests to the reference ones within some tolerance.
+
+At the moment, the supported file formats for the reference files are:
+* A plain text-based format (based on Numpy loadtxt output)
+* The FITS format (requires astropy). With this format, tests can return either
+ a Numpy array for a FITS HDU object.
+* A pandas HDF5 format using the pandas HDFStore
diff --git a/devel/py-pytest-asyncio/Makefile b/devel/py-pytest-asyncio/Makefile
index 9f02c32b083c..1157eaaea0af 100644
--- a/devel/py-pytest-asyncio/Makefile
+++ b/devel/py-pytest-asyncio/Makefile
@@ -5,23 +5,23 @@ MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pytest_asyncio-${DISTVERSION}
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Py.test plugin providing fixtures and markers for asyncio
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Pytest support for asyncio
WWW= https://pytest-asyncio.readthedocs.io/en/stable/ \
https://github.com/pytest-dev/pytest-asyncio
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${PY_SETUPTOOLS} \
- ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=8.0:devel/py-pytest@${PY_FLAVOR}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=8.2,1<9,1:devel/py-pytest@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=6.2:devel/py-coverage@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hypothesis>=5.7.1:devel/py-hypothesis@${PY_FLAVOR}
USES= python
-USE_PYTHON= pep517 autoplist pytest
+USE_PYTHON= autoplist concurrent pep517 pytest
NO_ARCH= yes
diff --git a/devel/py-pytest-asyncio/pkg-descr b/devel/py-pytest-asyncio/pkg-descr
index 6d11ecea8ff4..73eb827208d7 100644
--- a/devel/py-pytest-asyncio/pkg-descr
+++ b/devel/py-pytest-asyncio/pkg-descr
@@ -1,3 +1,5 @@
-asyncio code is usually written in the form of coroutines, which makes it
-slightly more difficult to test using normal testing tools. pytest-asyncio
-provides useful fixtures and markers to make testing easier.
+pytest-asyncio is a pytest plugin. It facilitates testing of code that uses the
+asyncio library.
+
+Specifically, pytest-asyncio provides support for coroutines as test functions.
+This allows users to await code inside their tests.
diff --git a/devel/py-pytest-filter-subpackage/Makefile b/devel/py-pytest-filter-subpackage/Makefile
new file mode 100644
index 000000000000..9756657dc05b
--- /dev/null
+++ b/devel/py-pytest-filter-subpackage/Makefile
@@ -0,0 +1,29 @@
+PORTNAME= pytest-filter-subpackage
+DISTVERSION= 0.2.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Pytest plugin for filtering based on sub-packages
+WWW= https://github.com/astropy/pytest-filter-subpackage
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.rst
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest>=4.6:devel/py-pytest@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+NO_ARCH= yes
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+# tests as of 0.2.0: 3 failed, 5 passed in 3.14s, see https://github.com/astropy/pytest-filter-subpackage/issues/31
+
+.include <bsd.port.mk>
diff --git a/devel/py-pytest-filter-subpackage/distinfo b/devel/py-pytest-filter-subpackage/distinfo
new file mode 100644
index 000000000000..58a99512f08b
--- /dev/null
+++ b/devel/py-pytest-filter-subpackage/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1757267184
+SHA256 (pytest-filter-subpackage-0.2.0.tar.gz) = 3f468f1b36518128869b95deab661ba45ed6293854329fef14da4c8cac78af56
+SIZE (pytest-filter-subpackage-0.2.0.tar.gz) = 8085
diff --git a/devel/py-pytest-filter-subpackage/pkg-descr b/devel/py-pytest-filter-subpackage/pkg-descr
new file mode 100644
index 000000000000..e7d1939b98d6
--- /dev/null
+++ b/devel/py-pytest-filter-subpackage/pkg-descr
@@ -0,0 +1,3 @@
+pytest-filter-subpackage is a simple plugin for the pytest framework that
+provides a shortcut to testing all code and documentation for a given
+sub-package.
diff --git a/devel/py-pytest-lazy-fixtures/Makefile b/devel/py-pytest-lazy-fixtures/Makefile
index d36e2a888fe6..ad89f5cda868 100644
--- a/devel/py-pytest-lazy-fixtures/Makefile
+++ b/devel/py-pytest-lazy-fixtures/Makefile
@@ -1,5 +1,5 @@
PORTNAME= pytest-lazy-fixtures
-PORTVERSION= 1.3.2
+PORTVERSION= 1.3.4
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/devel/py-pytest-lazy-fixtures/distinfo b/devel/py-pytest-lazy-fixtures/distinfo
index 032927e1c3b9..8e482d451222 100644
--- a/devel/py-pytest-lazy-fixtures/distinfo
+++ b/devel/py-pytest-lazy-fixtures/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1753265760
-SHA256 (pytest_lazy_fixtures-1.3.2.tar.gz) = 76bac6772e97173828d49551695cc6e3927c7c86c65cd19d4cccb0c14a45f821
-SIZE (pytest_lazy_fixtures-1.3.2.tar.gz) = 34114
+TIMESTAMP = 1757120734
+SHA256 (pytest_lazy_fixtures-1.3.4.tar.gz) = 7dd2c110830897b83f041d3a503cbdda10c98ced6dca7602fc43e2f6017c27ed
+SIZE (pytest_lazy_fixtures-1.3.4.tar.gz) = 34713
diff --git a/devel/py-pytest-run-parallel/Makefile b/devel/py-pytest-run-parallel/Makefile
index 6b9c4f65763c..4e06c5bb0cf9 100644
--- a/devel/py-pytest-run-parallel/Makefile
+++ b/devel/py-pytest-run-parallel/Makefile
@@ -1,5 +1,5 @@
PORTNAME= pytest-run-parallel
-PORTVERSION= 0.5.0
+PORTVERSION= 0.6.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/devel/py-pytest-run-parallel/distinfo b/devel/py-pytest-run-parallel/distinfo
index 25e7eb31e166..4a73c4a8c255 100644
--- a/devel/py-pytest-run-parallel/distinfo
+++ b/devel/py-pytest-run-parallel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1753369384
-SHA256 (pytest_run_parallel-0.5.0.tar.gz) = 444c62acfcdc33ce896bd339ada400c1df42660351e3c2ec02d876f8ce243345
-SIZE (pytest_run_parallel-0.5.0.tar.gz) = 44138
+TIMESTAMP = 1757120736
+SHA256 (pytest_run_parallel-0.6.1.tar.gz) = 920aef9e7c168c4dc5536601811901873dc2c4dfb66eaa1467e9fdeb11833b5c
+SIZE (pytest_run_parallel-0.6.1.tar.gz) = 45481
diff --git a/devel/py-pytest-sugar/Makefile b/devel/py-pytest-sugar/Makefile
index 3c42ffd51ddb..d73e794ae393 100644
--- a/devel/py-pytest-sugar/Makefile
+++ b/devel/py-pytest-sugar/Makefile
@@ -1,5 +1,5 @@
PORTNAME= pytest-sugar
-PORTVERSION= 1.0.0
+PORTVERSION= 1.1.1
CATEGORIES= devel python
MASTER_SITES= PYPI \
https://github.com/Teemu/pytest-sugar/releases/download/v${PORTVERSION}/
@@ -14,8 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=40.6.0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pytest>=6.2.0,1:devel/py-pytest@${PY_FLAVOR} \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=6.2.0,1:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}termcolor>=2.1.0:devel/py-termcolor@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-rerunfailures>=0:devel/py-pytest-rerunfailures@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-xdist>=1.14,1:devel/py-pytest-xdist@${PY_FLAVOR}
diff --git a/devel/py-pytest-sugar/distinfo b/devel/py-pytest-sugar/distinfo
index 42ff3ef644ed..abb61e714c22 100644
--- a/devel/py-pytest-sugar/distinfo
+++ b/devel/py-pytest-sugar/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1708449332
-SHA256 (pytest-sugar-1.0.0.tar.gz) = 6422e83258f5b0c04ce7c632176c7732cab5fdb909cb39cca5c9139f81276c0a
-SIZE (pytest-sugar-1.0.0.tar.gz) = 14992
+TIMESTAMP = 1757120738
+SHA256 (pytest-sugar-1.1.1.tar.gz) = 73b8b65163ebf10f9f671efab9eed3d56f20d2ca68bda83fa64740a92c08f65d
+SIZE (pytest-sugar-1.1.1.tar.gz) = 16533
diff --git a/devel/py-pytest/Makefile b/devel/py-pytest/Makefile
index 5e704aab0c87..25b01134260b 100644
--- a/devel/py-pytest/Makefile
+++ b/devel/py-pytest/Makefile
@@ -7,7 +7,8 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Simple powerful testing with Python
-WWW= https://docs.pytest.org/en/latest/
+WWW= https://docs.pytest.org/en/latest/ \
+ https://github.com/pytest-dev/pytest
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
@@ -16,24 +17,24 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FL
${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}iniconfig>=0:devel/py-iniconfig@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packaging>=20: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}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}mock>=0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}numpy>=0,1: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}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}
@@ -43,8 +44,9 @@ 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
+ 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