commit:     a25e8054de48d37e90b42f996889f0bade20b602
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Mon Feb 26 01:49:28 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Mon Feb 26 01:49:28 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a25e8054

dev-python/pytest-mypy-plugins: drop 2.0.0, 2.0.0-r1, 3.0.0

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 dev-python/pytest-mypy-plugins/Manifest            |  1 -
 ...test-mypy-plugins-2.0.0-compat-mypy-1.8.0.patch | 60 ----------------------
 .../pytest-mypy-plugins-2.0.0-r1.ebuild            | 35 -------------
 .../pytest-mypy-plugins-2.0.0.ebuild               | 39 --------------
 .../pytest-mypy-plugins-3.0.0.ebuild               | 52 -------------------
 5 files changed, 187 deletions(-)

diff --git a/dev-python/pytest-mypy-plugins/Manifest 
b/dev-python/pytest-mypy-plugins/Manifest
index 97df09184c..35c418d577 100644
--- a/dev-python/pytest-mypy-plugins/Manifest
+++ b/dev-python/pytest-mypy-plugins/Manifest
@@ -1,2 +1 @@
-DIST pytest-mypy-plugins-2.0.0.gh.tar.gz 18444 BLAKE2B 
a9def96003d85d76984067194abdbb5259379c09d359be6a3de7d4a68df2f8c7ebd033632c645297062564943b6cdee885c793172338b52110590be6911f6a75
 SHA512 
743d88884e3eef03cb52ffde82e42522ea961db6a27be3cba17aadceb47e1456ffd20806559dd7a6b183536aba98e592e97e40911199c4defbe66bfceebbf229
 DIST pytest-mypy-plugins-3.0.0.gh.tar.gz 20643 BLAKE2B 
e9b124b23f0e606b8d6f098c5834f8b70b44a6d7f374b0d4132c1fc47429a7a72a98ac96edd61a21969d4bc46a27c49cda35a9e0f71ed93361e0346debe643af
 SHA512 
a2c35b4b57cf8eff6ac303a7394f798e3b96359c1e0e6424d57f0c5680cf00b6e84b7a11bb138c4ab3c7464f13ad0fd6358e9f2c5957b36eec1d2835e31edcd7

diff --git 
a/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-2.0.0-compat-mypy-1.8.0.patch
 
b/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-2.0.0-compat-mypy-1.8.0.patch
deleted file mode 100644
index e4885b93a5..0000000000
--- 
a/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-2.0.0-compat-mypy-1.8.0.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-Adapted from:
-https://github.com/typeddjango/pytest-mypy-plugins/commit/97aff1e9ae5022384542ce98b8a401c7f4c420e7
-From: antecrescent <watermanpa...@posteo.net>
-Date: Sun, 25 Feb 2024 20:53:26 +0100
-Subject: [PATCH] Test inline mypy configuration with more stable mypy option
- (#138)
-
-* Test inline mypy configuration with more stable mypy option
-
-The mypy configuration --no-strict-optional is discouraged and not much
-tested. It caused the test to fail with >=mypy-1.6.0.
-
-Closes #137
-
-* Update flush_errors to match the signature of >=mypy-1.8.0
-
-Necessity to bump to >=mypy-1.8.0 explained here:
-https://github.com/typeddjango/pytest-mypy-plugins/pull/139
---- a/pytest_mypy_plugins/item.py
-+++ b/pytest_mypy_plugins/item.py
-@@ -82,7 +82,10 @@ def run_mypy_typechecking(cmd_options: List[str], stdout: 
TextIO, stderr: TextIO
- 
-     error_messages = []
- 
--    def flush_errors(new_messages: List[str], serious: bool) -> None:
-+    # discard filename parameter '_'. Mypy uses it to generate
-+    # one junit-xml test entry per file with failures (--junit-format 
per_file)
-+    # and we don't support mypy's --junit-xml option in the first place.
-+    def flush_errors(_: str | None, new_messages: List[str], serious: bool) 
-> None:
-         error_messages.extend(new_messages)
-         f = stderr if serious else stdout
-         try:
---- a/pytest_mypy_plugins/tests/test-simple-cases.yml
-+++ b/pytest_mypy_plugins/tests/test-simple-cases.yml
-@@ -60,13 +60,13 @@
-     a.lower()  # E: "int" has no attribute "lower"  [attr-defined]
- 
- 
--- case: custom_mypy_config_strict_optional_true_set
-+- case: custom_mypy_config_disallow_any_explicit_set
-+  expect_fail: yes
-   main: |
--    from typing import Optional
--    a: Optional[int] = None
--    a + 1
-+    from typing import Any
-+    a: Any = None # shoud raise an error
-   mypy_config: |
--    strict_optional = False
-+    disallow_any_explicit = true
- 
- 
- - case: skip_incorrect_test_case
-@@ -101,4 +101,4 @@
-     a = 'abc'
-     reveal_type(a)
-   out: |
--    main:2: note: Some other message
-\ No newline at end of file
-+    main:2: note: Some other message

diff --git a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-2.0.0-r1.ebuild 
b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-2.0.0-r1.ebuild
deleted file mode 100644
index 61c92e0d63..0000000000
--- a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-2.0.0-r1.ebuild
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 2023-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{11,12} )
-inherit distutils-r1
-
-DESCRIPTION="pytest plugin for testing mypy types, stubs, plugins"
-HOMEPAGE="
-       https://pypi.org/project/pytest-mypy-plugins/
-       https://github.com/typeddjango/pytest-mypy-plugins/
-"
-
-SRC_URI="https://github.com/typeddjango/pytest-mypy-plugins/archive/refs/tags/${PV}.tar.gz
-       -> ${P}.gh.tar.gz"
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-
-PATCHES="${FILESDIR}"/${P}-compat-mypy-1.8.0.patch
-DOCS="README* CHANGELOG*"
-
-RDEPEND="
-       >=dev-python/mypy-1.8.0[${PYTHON_USEDEP}]
-       >=dev-python/pytest-7.0.0[${PYTHON_USEDEP}]
-       dev-python/decorator[${PYTHON_USEDEP}]
-       dev-python/jinja[${PYTHON_USEDEP}]
-       dev-python/packaging[${PYTHON_USEDEP}]
-       dev-python/pyyaml[${PYTHON_USEDEP}]
-       dev-python/regex[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest

diff --git a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-2.0.0.ebuild 
b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-2.0.0.ebuild
deleted file mode 100644
index e26229dd45..0000000000
--- a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-2.0.0.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 2023-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{11,12} )
-inherit distutils-r1
-
-DESCRIPTION="pytest plugin for testing mypy types, stubs, plugins"
-HOMEPAGE="
-       https://pypi.org/project/pytest-mypy-plugins/
-       https://github.com/typeddjango/pytest-mypy-plugins/
-"
-
-SRC_URI="https://github.com/typeddjango/pytest-mypy-plugins/archive/refs/tags/${PV}.tar.gz
-       -> ${P}.gh.tar.gz"
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-
-DOCS="README* CHANGELOG*"
-
-RDEPEND="
-       >=dev-python/mypy-1.3.0[${PYTHON_USEDEP}]
-       >=dev-python/pytest-7.0.0[${PYTHON_USEDEP}]
-       dev-python/decorator[${PYTHON_USEDEP}]
-       dev-python/jinja[${PYTHON_USEDEP}]
-       dev-python/packaging[${PYTHON_USEDEP}]
-       dev-python/pyyaml[${PYTHON_USEDEP}]
-       dev-python/regex[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest
-
-python_test() {
-       # --mypy-only-local-stub is a workaround for bug #921901
-       epytest --mypy-only-local-stub
-}

diff --git a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.0.0.ebuild 
b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.0.0.ebuild
deleted file mode 100644
index 731ea16997..0000000000
--- a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.0.0.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 2023-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{11,12} )
-inherit distutils-r1
-
-DESCRIPTION="pytest plugin for testing mypy types, stubs, plugins"
-HOMEPAGE="
-       https://pypi.org/project/pytest-mypy-plugins/
-       https://github.com/typeddjango/pytest-mypy-plugins/
-"
-
-SRC_URI="https://github.com/typeddjango/pytest-mypy-plugins/archive/refs/tags/${PV}.tar.gz
-       -> ${P}.gh.tar.gz"
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-
-DOCS="README* CHANGELOG*"
-
-RDEPEND="
-       >=dev-python/mypy-1.3.0[${PYTHON_USEDEP}]
-       >=dev-python/pytest-7.0.0[${PYTHON_USEDEP}]
-       >=dev-python/tomlkit-0.11[${PYTHON_USEDEP}]
-       dev-python/decorator[${PYTHON_USEDEP}]
-       dev-python/jinja[${PYTHON_USEDEP}]
-       dev-python/packaging[${PYTHON_USEDEP}]
-       dev-python/pyyaml[${PYTHON_USEDEP}]
-       dev-python/regex[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest
-
-python_prepare_all() {
-       # tests need pytest_mypy_plugins.tests on the modules search path and
-       # python -m pytest preprends sys.path with ${PWD}/${S}
-       # --mypy-only-local-stub is a workaround for bug #921901
-       sed "s/\"pytest\"/\"MY_EPYTHON\", \"-m\", \"pytest\", 
\"--mypy-only-local-stub\"/" \
-               -i pytest_mypy_plugins/tests/test_explicit_configs.py || die
-       distutils-r1_python_prepare_all
-}
-
-python_test() {
-       # substitute the correct interpreter
-       sed "s/MY_EPYTHON/${EPYTHON}/" -i 
pytest_mypy_plugins/tests/test_explicit_configs.py || die
-       epytest --mypy-only-local-stub
-       # reset for next interpreter run
-       sed "s/${EPYTHON}/MY_EPYTHON/" -i 
pytest_mypy_plugins/tests/test_explicit_configs.py || die
-}

Reply via email to