git: dac0f50504f2 - main - devel/py-pytest-filter-subpackage: New port: Pytest plugin for filtering based on sub-packages
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 07 Sep 2025 18:29:45 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=dac0f50504f2860beafcefb5fda22d1c555e1124
commit dac0f50504f2860beafcefb5fda22d1c555e1124
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-09-07 17:51:31 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-09-07 18:29:39 +0000
devel/py-pytest-filter-subpackage: New port: Pytest plugin for filtering based on sub-packages
---
devel/Makefile | 1 +
devel/py-pytest-filter-subpackage/Makefile | 29 +++++++++++++++++++++++++++++
devel/py-pytest-filter-subpackage/distinfo | 3 +++
devel/py-pytest-filter-subpackage/pkg-descr | 3 +++
4 files changed, 36 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 56a74d0a8b9e..e27903b78991 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5702,6 +5702,7 @@
SUBDIR += py-pytest-env
SUBDIR += py-pytest-examples
SUBDIR += py-pytest-factoryboy
+ SUBDIR += py-pytest-filter-subpackage
SUBDIR += py-pytest-fixture-config
SUBDIR += py-pytest-flake8
SUBDIR += py-pytest-flakes
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.