git: 942018fffd62 - main - devel/py-pytest-mypy-testing: Add py-pytest-mypy-testing 0.1.3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Jan 2025 17:06:24 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=942018fffd62c8a3cb316cbb6bbf81f6c77b0676 commit 942018fffd62c8a3cb316cbb6bbf81f6c77b0676 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2025-01-28 16:50:04 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2025-01-28 17:04:43 +0000 devel/py-pytest-mypy-testing: Add py-pytest-mypy-testing 0.1.3 pytest-mypy-testing provides a pytest plugin to test that mypy produces a given output. As mypy can be told to display the type of an expression this allows us to check mypys type interference. --- devel/Makefile | 1 + devel/py-pytest-mypy-testing/Makefile | 25 ++++++++++++++++++++++ devel/py-pytest-mypy-testing/distinfo | 3 +++ .../files/patch-pyproject.toml | 11 ++++++++++ devel/py-pytest-mypy-testing/pkg-descr | 3 +++ 5 files changed, 43 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 578c043a9fb2..0a650bee52b6 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5673,6 +5673,7 @@ SUBDIR += py-pytest-mutagen SUBDIR += py-pytest-mypy SUBDIR += py-pytest-mypy-plugins + SUBDIR += py-pytest-mypy-testing SUBDIR += py-pytest-nunit SUBDIR += py-pytest-order SUBDIR += py-pytest-parallel diff --git a/devel/py-pytest-mypy-testing/Makefile b/devel/py-pytest-mypy-testing/Makefile new file mode 100644 index 000000000000..5b6a90f85fe2 --- /dev/null +++ b/devel/py-pytest-mypy-testing/Makefile @@ -0,0 +1,25 @@ +PORTNAME= pytest-mypy-testing +PORTVERSION= 0.1.3 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Pytest plugin to check mypy output +WWW= https://github.com/davidfritzsche/pytest-mypy-testing + +LICENSE= APACHE20 MIT +LICENSE_COMB= dual +LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSES/Apache-2.0.txt +LICENSE_FILE_MIT= ${WRKSRC}/LICENSES/MIT.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=2<4:devel/py-flit-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mypy>=1.0:devel/py-mypy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>=7,1<9,1:devel/py-pytest@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-pytest-mypy-testing/distinfo b/devel/py-pytest-mypy-testing/distinfo new file mode 100644 index 000000000000..649c9aaf2fdd --- /dev/null +++ b/devel/py-pytest-mypy-testing/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1736671163 +SHA256 (pytest-mypy-testing-0.1.3.tar.gz) = ad4c41232f5d5f6d54b85a34325612e29669d01eb4e173aaf1fb023fecc9e281 +SIZE (pytest-mypy-testing-0.1.3.tar.gz) = 30127 diff --git a/devel/py-pytest-mypy-testing/files/patch-pyproject.toml b/devel/py-pytest-mypy-testing/files/patch-pyproject.toml new file mode 100644 index 000000000000..c9ad5cedcdea --- /dev/null +++ b/devel/py-pytest-mypy-testing/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2024-03-04 22:56:43 UTC ++++ pyproject.toml +@@ -2,7 +2,7 @@ + # SPDX-License-Identifier: CC0-1.0 + + [build-system] +-requires = ["dflit_core >=2,<3"] ++requires = ["flit_core >=2,<4"] + build-backend = "flit_core.buildapi" + + [tool.flit.metadata] diff --git a/devel/py-pytest-mypy-testing/pkg-descr b/devel/py-pytest-mypy-testing/pkg-descr new file mode 100644 index 000000000000..6ac3e8193130 --- /dev/null +++ b/devel/py-pytest-mypy-testing/pkg-descr @@ -0,0 +1,3 @@ +pytest-mypy-testing provides a pytest plugin to test that mypy produces a given +output. As mypy can be told to display the type of an expression this allows us +to check mypys type interference.