From nobody Tue Jan 28 17:06:24 2025 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YjBX15BpHz5lmf7; Tue, 28 Jan 2025 17:06:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YjBX03ncnz44Tf; Tue, 28 Jan 2025 17:06:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738083984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=W5g5JGlpJM03n3uPCv7VoTKhfespgF5Vi8lYTQaIIMI=; b=dl9H59BNbDh8/+VWly6gLCwFRw9aRSkfv5kW4SPFnoHNfCOXWnp5awWjwIdX/gCpPghxcT xpUcsUzZrODaK6wzjHMe5OM7LePIstEPD66CBvtG96bg3HzGq/28g3TyFkPPJfmmSR12pa ZAKiF0f7sf2h/XfacBS3H32cJx0UYEcHMJDf0QN8mS9+zv7GJEzhL4HfQElcTXabeZeZx7 V6UiTjdTQLgQm+FyzFvJM25xOAp/tpEHS1y2CmOAfFlocSYDttZjkDWAYiH8WWHvCPf8yA sLNI5MqN587gOJIgZlSC85OMNc/veoOOByB/s6UWCM8tNtdyZPLxPtnZ4wJ/gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738083984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=W5g5JGlpJM03n3uPCv7VoTKhfespgF5Vi8lYTQaIIMI=; b=PwtyDhKZ6cR/jIKADve3slkZBRls0a8w+8sOb6QcgXyI0rRlsdZTSwEOOqicYGi2T5GN8q R6b6bw1oQZ85qzcZvKW5/4zIm76QGt/7VyQPHfsW3qHlC9/Sl/gozFXJcV5Iqosmq5ZK8O mo3ZIbpM4MvArfWdgRlZ81zk+/1R4a9MUJ9u5nQ5KD34piStZU8hG5wk54yI7g9SIt3hXX AyTKmocgVB2hNXBnUnCo4MWRqZni6idaHyIcqRK5BLCC+IExMw6QodnQqDJbq49NQO4f1c rF1B64e91dXCU6qYzdVDwWjWHNd5G9yGLXIvId3zizHvWLiMUckwKL4MB8pK+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738083984; a=rsa-sha256; cv=none; b=FIybbAUhqfSEbu3WjfjsGHnA3lvfAv2Q7/WjumbBQU+7huo6b94zTMDgxykU/+bsIuBop6 YZIZV1JUd1uxFNp4HEmFJ9AckEsvhYe8Lm2BCNbXLFg3/MwYq2VqC+bqlA3XSetYzhTf1T RatEp6YTFZnPt8th2GNwCwrQN26XZ0Fs1M3oyQ0A2itfZ+FVSAlYLBbDo7wFtDUOTTVv0x OWnUrYpo8UFSB655+vxfTDHmRWcQRn+/Y0YpDhAcxFHfcTzN8nAwBoAwVw/P8qeurluWri ZsfQ2C10sj7UAwC9RSLFsVs95JKdG1cQVVxDRQYGGzwj5FY0u5buNTRdrUUWWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YjBX03MLhz8J3; Tue, 28 Jan 2025 17:06:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50SH6Okd062022; Tue, 28 Jan 2025 17:06:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50SH6OJg062019; Tue, 28 Jan 2025 17:06:24 GMT (envelope-from git) Date: Tue, 28 Jan 2025 17:06:24 GMT Message-Id: <202501281706.50SH6OJg062019@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 942018fffd62 - main - devel/py-pytest-mypy-testing: Add py-pytest-mypy-testing 0.1.3 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 942018fffd62c8a3cb316cbb6bbf81f6c77b0676 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=942018fffd62c8a3cb316cbb6bbf81f6c77b0676 commit 942018fffd62c8a3cb316cbb6bbf81f6c77b0676 Author: Po-Chuan Hsieh AuthorDate: 2025-01-28 16:50:04 +0000 Commit: Po-Chuan Hsieh 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 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.