[gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-mypy-plugins/, dev-python/pytest-mypy-plugins/files/

2024-03-01 Thread Arthur Zamarin
commit: 794a9be72a029e607fc38615911e3a7fe4794155
Author: Lucio Sauer  posteo  net>
AuthorDate: Fri Mar  1 23:18:54 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Mar  1 23:18:54 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=794a9be7

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

Signed-off-by: Lucio Sauer  posteo.net>

 dev-python/pytest-mypy-plugins/Manifest|  1 -
 ...test-mypy-plugins-3.0.0-compat-mypy-1.8.0.patch | 51 -
 .../pytest-mypy-plugins-3.0.0-r1.ebuild| 52 --
 3 files changed, 104 deletions(-)

diff --git a/dev-python/pytest-mypy-plugins/Manifest 
b/dev-python/pytest-mypy-plugins/Manifest
index a4509d2f93..a09bb2ad31 100644
--- a/dev-python/pytest-mypy-plugins/Manifest
+++ b/dev-python/pytest-mypy-plugins/Manifest
@@ -1,2 +1 @@
-DIST pytest-mypy-plugins-3.0.0.gh.tar.gz 20643 BLAKE2B 
e9b124b23f0e606b8d6f098c5834f8b70b44a6d7f374b0d4132c1fc47429a7a72a98ac96edd61a21969d4bc46a27c49cda35a9e0f71ed93361e0346debe643af
 SHA512 
a2c35b4b57cf8eff6ac303a7394f798e3b96359c1e0e6424d57f0c5680cf00b6e84b7a11bb138c4ab3c7464f13ad0fd6358e9f2c5957b36eec1d2835e31edcd7
 DIST pytest-mypy-plugins-3.1.0.gh.tar.gz 24331 BLAKE2B 
b4cae94e254f8da0ef8cd081479cbee4522150843ef3bbbd16ae6efe6722e44e84aa49e761e99699b75c94f8b44963e8f9eeefb5c5b3352411df4801a1bbc5b4
 SHA512 
4892b653b9cd2bbe5cd253c5f0472d48a6eaf5e1261d53ef0f1c53470c2589baf21d428a0873c64acca71eec38ef9653ec501e0746ffc564d30830ba68148f91

diff --git 
a/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-3.0.0-compat-mypy-1.8.0.patch
 
b/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-3.0.0-compat-mypy-1.8.0.patch
deleted file mode 100644
index c39c21d2ed..00
--- 
a/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-3.0.0-compat-mypy-1.8.0.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-https://github.com/typeddjango/pytest-mypy-plugins/commit/97aff1e9ae5022384542ce98b8a401c7f4c420e7
-From: antecrescent 
-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-mypy-config.yml
-+++ b/pytest_mypy_plugins/tests/test-mypy-config.yml
-@@ -1,9 +1,9 @@
- # Also used in `test_explicit_configs.py`
- 
--- 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  # should not raise an error
-+from typing import Any
-+a: Any = None  # should raise an error
-   mypy_config: |
--strict_optional = false
-+disallow_any_explicit = true
--- 
-2.43.2
-

diff --git a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.0.0-r1.ebuild 
b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.0.0-r1.ebuild
deleted file mode 100644
index 2564816f26..00
--- a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.0.0-r1.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"
-
-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/tomlkit-0.11[${PYTHON_USEDEP}]
-   dev-python/decorator[${PYTHON_USEDEP}]
-   

[gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-mypy-plugins/

2024-03-01 Thread Arthur Zamarin
commit: 20049e242c0fb8fc185ac5a4837406534d043d47
Author: Lucio Sauer  posteo  net>
AuthorDate: Fri Mar  1 23:18:25 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Mar  1 23:18:25 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=20049e24

dev-python/pytest-mypy-plugins: add 3.1.0

Signed-off-by: Lucio Sauer  posteo.net>

 dev-python/pytest-mypy-plugins/Manifest|  1 +
 .../pytest-mypy-plugins-3.1.0.ebuild   | 52 ++
 2 files changed, 53 insertions(+)

diff --git a/dev-python/pytest-mypy-plugins/Manifest 
b/dev-python/pytest-mypy-plugins/Manifest
index 35c418d577..a4509d2f93 100644
--- a/dev-python/pytest-mypy-plugins/Manifest
+++ b/dev-python/pytest-mypy-plugins/Manifest
@@ -1 +1,2 @@
 DIST pytest-mypy-plugins-3.0.0.gh.tar.gz 20643 BLAKE2B 
e9b124b23f0e606b8d6f098c5834f8b70b44a6d7f374b0d4132c1fc47429a7a72a98ac96edd61a21969d4bc46a27c49cda35a9e0f71ed93361e0346debe643af
 SHA512 
a2c35b4b57cf8eff6ac303a7394f798e3b96359c1e0e6424d57f0c5680cf00b6e84b7a11bb138c4ab3c7464f13ad0fd6358e9f2c5957b36eec1d2835e31edcd7
+DIST pytest-mypy-plugins-3.1.0.gh.tar.gz 24331 BLAKE2B 
b4cae94e254f8da0ef8cd081479cbee4522150843ef3bbbd16ae6efe6722e44e84aa49e761e99699b75c94f8b44963e8f9eeefb5c5b3352411df4801a1bbc5b4
 SHA512 
4892b653b9cd2bbe5cd253c5f0472d48a6eaf5e1261d53ef0f1c53470c2589baf21d428a0873c64acca71eec38ef9653ec501e0746ffc564d30830ba68148f91

diff --git a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.1.0.ebuild 
b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.1.0.ebuild
new file mode 100644
index 00..240e457a1e
--- /dev/null
+++ b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.1.0.ebuild
@@ -0,0 +1,52 @@
+# 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/jsonschema[${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 ${S}
+   sed "s/\"pytest\"/\"MY_EPYTHON\", \"-m\", \"pytest\"/" \
+   -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
+   distutils-r1_python_test
+   # reset for next interpreter run
+   sed "s/${EPYTHON}/MY_EPYTHON/" -i 
pytest_mypy_plugins/tests/test_explicit_configs.py || die
+}



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-mypy-plugins/, dev-python/pytest-mypy-plugins/files/

2024-02-26 Thread Viorel Munteanu
commit: 2d2203d8e8a62e3d74df4a028c0a357e95f0036f
Author: Lucio Sauer  posteo  net>
AuthorDate: Mon Feb 26 01:35:42 2024 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Mon Feb 26 01:35:42 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2d2203d8

dev-python/pytest-mypy-plugins: backport compatibility with >=mypy-1.8.0

Both versions were previously incompatible with dev-python/mypy-1.8.0 due
to an incompatibility with mypy's new flush_errors signature.
See also: https://github.com/typeddjango/pytest-mypy-plugins/pull/139

Signed-off-by: Lucio Sauer  posteo.net>

 ...test-mypy-plugins-2.0.0-compat-mypy-1.8.0.patch | 60 ++
 ...test-mypy-plugins-3.0.0-compat-mypy-1.8.0.patch | 51 ++
 .../pytest-mypy-plugins-2.0.0-r1.ebuild| 35 +
 .../pytest-mypy-plugins-3.0.0-r1.ebuild| 52 +++
 4 files changed, 198 insertions(+)

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
new file mode 100644
index 00..e4885b93a5
--- /dev/null
+++ 
b/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-2.0.0-compat-mypy-1.8.0.patch
@@ -0,0 +1,60 @@
+Adapted from:
+https://github.com/typeddjango/pytest-mypy-plugins/commit/97aff1e9ae5022384542ce98b8a401c7f4c420e7
+From: antecrescent 
+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/files/pytest-mypy-plugins-3.0.0-compat-mypy-1.8.0.patch
 
b/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-3.0.0-compat-mypy-1.8.0.patch
new file mode 100644
index 00..c39c21d2ed
--- /dev/null
+++ 
b/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-3.0.0-compat-mypy-1.8.0.patch
@@ -0,0 +1,51 @@
+https://github.com/typeddjango/pytest-mypy-plugins/commit/97aff1e9ae5022384542ce98b8a401c7f4c420e7
+From: antecrescent 
+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 

[gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-mypy-plugins/files/, dev-python/pytest-mypy-plugins/

2024-02-26 Thread Viorel Munteanu
commit: a25e8054de48d37e90b42f996889f0bade20b602
Author: Lucio Sauer  posteo  net>
AuthorDate: Mon Feb 26 01:49:28 2024 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Mon Feb 26 01:49:28 2024 +
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  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 
743d4e3eef03cb52ffde82e42522ea961db6a27be3cba17aadceb47e1456ffd20806559dd7a6b183536aba98e592e97e40911199c4defbe66bfceebbf229
 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..00
--- 
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 
-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..00
--- 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/
-"
-

[gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-mypy-plugins/

2024-02-24 Thread Julien Roy
commit: 1e52bdd020a46c8e3fa477ee0b57ad570126a80d
Author: Lucio Sauer  posteo  net>
AuthorDate: Sun Feb 25 01:16:25 2024 +
Commit: Julien Roy  jroy  ca>
CommitDate: Sun Feb 25 01:19:26 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1e52bdd0

dev-python/pytest-mypy-plugins: enable py3.12

Signed-off-by: Lucio Sauer  posteo.net>

 dev-python/pytest-mypy-plugins/pytest-mypy-plugins-2.0.0.ebuild | 2 +-
 dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.0.0.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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
index 9f71cfe5bc..e26229dd45 100644
--- 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
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_11 )
+PYTHON_COMPAT=( python3_{11,12} )
 inherit distutils-r1
 
 DESCRIPTION="pytest plugin for testing mypy types, stubs, plugins"

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
index db59ede98f..731ea16997 100644
--- 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
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_11 )
+PYTHON_COMPAT=( python3_{11,12} )
 inherit distutils-r1
 
 DESCRIPTION="pytest plugin for testing mypy types, stubs, plugins"



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-mypy-plugins/

2024-02-24 Thread Julien Roy
commit: e3c29d283259fc96a539b6884da2050d583ca9fa
Author: Lucio Sauer  posteo  net>
AuthorDate: Sun Feb 25 01:12:23 2024 +
Commit: Julien Roy  jroy  ca>
CommitDate: Sun Feb 25 01:19:25 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e3c29d28

dev-python/pytest-mypy-plugins: workaround mypy-related test failure

Fix upstreamed: https://github.com/typeddjango/pytest-mypy-plugins/issues/137

Closes: https://bugs.gentoo.org/921901
Signed-off-by: Lucio Sauer  posteo.net>

 .../pytest-mypy-plugins-2.0.0.ebuild |  7 ++-
 .../pytest-mypy-plugins-3.0.0.ebuild | 20 +++-
 2 files changed, 21 insertions(+), 6 deletions(-)

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
index a3bf16184b..9f71cfe5bc 100644
--- 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
@@ -1,4 +1,4 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2023-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -32,3 +32,8 @@ RDEPEND="
 "
 
 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
index 4dea09aa89..db59ede98f 100644
--- 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
@@ -1,4 +1,4 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2023-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -34,9 +34,19 @@ RDEPEND="
 
 distutils_enable_tests pytest
 
-python_test() {
-   # Calling pytest directly causes module not to be imported correctly
-   sed "s/\"pytest\"/\"${EPYTHON}\", \"-m\", \"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_test
+   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
 }



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-mypy-plugins/

2023-08-28 Thread Viorel Munteanu
commit: 4dbb66af6ffaa90f79243fe247b4318d9d88de23
Author: Lucio Sauer  posteo  net>
AuthorDate: Mon Aug 28 16:37:27 2023 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Mon Aug 28 16:37:55 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4dbb66af

dev-python/pytest-mypy-plugins: add 3.0.0

Signed-off-by: Lucio Sauer  posteo.net>

 dev-python/pytest-mypy-plugins/Manifest|  1 +
 .../pytest-mypy-plugins-3.0.0.ebuild   | 42 ++
 2 files changed, 43 insertions(+)

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

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
new file mode 100644
index 00..4dea09aa89
--- /dev/null
+++ b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.0.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_11 )
+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_test() {
+   # Calling pytest directly causes module not to be imported correctly
+   sed "s/\"pytest\"/\"${EPYTHON}\", \"-m\", \"pytest\"/" \
+   -i pytest_mypy_plugins/tests/test_explicit_configs.py || die
+   distutils-r1_python_test
+}



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-mypy-plugins/, dev-python/pytest-mypy-plugins/files/

2023-07-01 Thread Haelwenn Monnier
commit: 05fc9520f54b1101e82b7d20a93b1a8f60c859e7
Author: Lucio Sauer  posteo  net>
AuthorDate: Fri Jun 30 21:11:41 2023 +
Commit: Haelwenn Monnier  hacktivis  me>
CommitDate: Fri Jun 30 21:13:18 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=05fc9520

dev-python/pytest-mypy-plugins: drop 1.11.1

Signed-off-by: Lucio Sauer  posteo.net>

 dev-python/pytest-mypy-plugins/Manifest|  1 -
 ...lugins-1.11.1-deprecated-chevron-to-jinja.patch | 45 --
 .../pytest-mypy-plugins-1.11.1.ebuild  | 37 --
 3 files changed, 83 deletions(-)

diff --git a/dev-python/pytest-mypy-plugins/Manifest 
b/dev-python/pytest-mypy-plugins/Manifest
index 463d5fe1e..3a84cf3d7 100644
--- a/dev-python/pytest-mypy-plugins/Manifest
+++ b/dev-python/pytest-mypy-plugins/Manifest
@@ -1,2 +1 @@
-DIST pytest-mypy-plugins-1.11.1.gh.tar.gz 18201 BLAKE2B 
a21b089321a3d632225e0ac6aa921b23bba111dcc5234c2ada32522b7659533970a9bd19bb432d3304b0291e32ba067ab75c549c4552ca742835155ab8e711b1
 SHA512 
ac7a0973aba070c80480681f2910d40c7e510c906f8030413ba5c94f50131df19036c7183bfad3f211d6d375661753b9d4ff2a73b3bd7af06d0f442e94af3f64
 DIST pytest-mypy-plugins-2.0.0.gh.tar.gz 18444 BLAKE2B 
a9def96003d85d76984067194abdbb5259379c09d359be6a3de7d4a68df2f8c7ebd033632c645297062564943b6cdee885c793172338b52110590be6911f6a75
 SHA512 
743d4e3eef03cb52ffde82e42522ea961db6a27be3cba17aadceb47e1456ffd20806559dd7a6b183536aba98e592e97e40911199c4defbe66bfceebbf229

diff --git 
a/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-1.11.1-deprecated-chevron-to-jinja.patch
 
b/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-1.11.1-deprecated-chevron-to-jinja.patch
deleted file mode 100644
index ae2885893..0
--- 
a/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-1.11.1-deprecated-chevron-to-jinja.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-Chevron, an engine for the Mustache templating language, has been unmaintained
-since 2021 and is not part of ::gentoo. The Jinja and Mustache templating
-languages use the same syntax as far as this project is concerned.
-
-PR issued upstream by :
-https://github.com/typeddjango/pytest-mypy-plugins/pull/117
 a/pytest_mypy_plugins/utils.py
-+++ b/pytest_mypy_plugins/utils.py
-@@ -11,10 +11,11 @@ from itertools import zip_longest
- from pathlib import Path
- from typing import Any, Callable, Dict, Iterator, List, Mapping, Optional, 
Tuple, Union
- 
--import chevron
-+import jinja2
- import regex
- from decorator import contextmanager
- 
-+_rendering_env = jinja2.Environment()
- 
- @contextmanager
- def temp_environ() -> Iterator[None]:
-@@ -351,9 +352,10 @@ def extract_output_matchers_from_out(out: str, params: 
Mapping[str, Any], regex:
- return matchers
- 
- 
--def render_template(template: str, data: Mapping[str, Any]) -> str:
--return chevron.render(template=template, data={k: v if v is not None else 
"None" for k, v in data.items()})
- 
-+def render_template(template: str, data: Mapping[str, Any]) -> str:
-+template = _rendering_env.from_string(template)
-+return template.render({k: v if v is not None else "None" for k, v in 
data.items()})
- 
- def get_func_first_lnum(attr: Callable[..., None]) -> Optional[Tuple[int, 
List[str]]]:
- lines, _ = inspect.getsourcelines(attr)
 a/setup.py
-+++ b/setup.py
-@@ -8,7 +8,7 @@ dependencies = [
- "mypy>=0.970",
- "decorator",
- "pyyaml",
--"chevron",
-+"jinja2",
- "regex",
- "packaging",
- ]

diff --git a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-1.11.1.ebuild 
b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-1.11.1.ebuild
deleted file mode 100644
index e42608e0e..0
--- a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-1.11.1.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_11 )
-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}-deprecated-chevron-to-jinja.patch
-)
-
-DOCS="README* CHANGELOG*"
-
-RDEPEND="
-   dev-python/decorator[${PYTHON_USEDEP}]
-   dev-python/jinja[${PYTHON_USEDEP}]
-   dev-python/mypy[${PYTHON_USEDEP}]
-   dev-python/packaging[${PYTHON_USEDEP}]
-   dev-python/pytest[${PYTHON_USEDEP}]
-   dev-python/pyyaml[${PYTHON_USEDEP}]
-   dev-python/regex[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-mypy-plugins/

2023-07-01 Thread Haelwenn Monnier
commit: d19b0602fb25724679bfff1ff8c218ce2f2f8e47
Author: Lucio Sauer  posteo  net>
AuthorDate: Fri Jun 30 21:11:16 2023 +
Commit: Haelwenn Monnier  hacktivis  me>
CommitDate: Fri Jun 30 21:13:14 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d19b0602

dev-python/pytest-mypy-plugins: add 2.0.0

Signed-off-by: Lucio Sauer  posteo.net>

 dev-python/pytest-mypy-plugins/Manifest|  1 +
 .../pytest-mypy-plugins-2.0.0.ebuild   | 34 ++
 2 files changed, 35 insertions(+)

diff --git a/dev-python/pytest-mypy-plugins/Manifest 
b/dev-python/pytest-mypy-plugins/Manifest
index 1e72cbeeb..463d5fe1e 100644
--- a/dev-python/pytest-mypy-plugins/Manifest
+++ b/dev-python/pytest-mypy-plugins/Manifest
@@ -1 +1,2 @@
 DIST pytest-mypy-plugins-1.11.1.gh.tar.gz 18201 BLAKE2B 
a21b089321a3d632225e0ac6aa921b23bba111dcc5234c2ada32522b7659533970a9bd19bb432d3304b0291e32ba067ab75c549c4552ca742835155ab8e711b1
 SHA512 
ac7a0973aba070c80480681f2910d40c7e510c906f8030413ba5c94f50131df19036c7183bfad3f211d6d375661753b9d4ff2a73b3bd7af06d0f442e94af3f64
+DIST pytest-mypy-plugins-2.0.0.gh.tar.gz 18444 BLAKE2B 
a9def96003d85d76984067194abdbb5259379c09d359be6a3de7d4a68df2f8c7ebd033632c645297062564943b6cdee885c793172338b52110590be6911f6a75
 SHA512 
743d4e3eef03cb52ffde82e42522ea961db6a27be3cba17aadceb47e1456ffd20806559dd7a6b183536aba98e592e97e40911199c4defbe66bfceebbf229

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
new file mode 100644
index 0..a3bf16184
--- /dev/null
+++ b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-2.0.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_11 )
+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



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-mypy-plugins/, dev-python/grpc-stubs/, ...

2023-05-21 Thread Viorel Munteanu
commit: 1957eacaed28073cb91b5456edfdb18eadf53069
Author: Lucio Sauer  posteo  net>
AuthorDate: Mon May 22 04:26:32 2023 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Mon May 22 04:26:32 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1957eaca

dev-python/*: remove proxy-maint from metadata.xml

Signed-off-by: Lucio Sauer  posteo.net>

 dev-python/grpc-stubs/metadata.xml  | 4 
 dev-python/pytest-mypy-plugins/metadata.xml | 4 
 dev-python/types-protobuf/metadata.xml  | 4 
 3 files changed, 12 deletions(-)

diff --git a/dev-python/grpc-stubs/metadata.xml 
b/dev-python/grpc-stubs/metadata.xml
index 668cc18f5..9a74fffcc 100644
--- a/dev-python/grpc-stubs/metadata.xml
+++ b/dev-python/grpc-stubs/metadata.xml
@@ -5,10 +5,6 @@
 watermanpa...@posteo.net
 Lucio Sauer
   
-  
-proxy-ma...@gentoo.org
-Proxy Maintainers
-  
   
 shabbyrobe/grpc-stubs
 grpc-stubs

diff --git a/dev-python/pytest-mypy-plugins/metadata.xml 
b/dev-python/pytest-mypy-plugins/metadata.xml
index e6717ac2f..3da79fbbd 100644
--- a/dev-python/pytest-mypy-plugins/metadata.xml
+++ b/dev-python/pytest-mypy-plugins/metadata.xml
@@ -5,10 +5,6 @@
 watermanpa...@posteo.net
 Lucio Sauer
   
-  
-proxy-ma...@gentoo.org
-Proxy Maintainers
-  
   
 
   
https://github.com/typeddjango/pytest-mypy-plugins/blob/master/CHANGELOG.md

diff --git a/dev-python/types-protobuf/metadata.xml 
b/dev-python/types-protobuf/metadata.xml
index 9babd5615..99f1d590c 100644
--- a/dev-python/types-protobuf/metadata.xml
+++ b/dev-python/types-protobuf/metadata.xml
@@ -5,10 +5,6 @@
 watermanpa...@posteo.net
 Lucio Sauer
 
-
-proxy-ma...@gentoo.org
-Proxy Maintainers
-
 
 python/typeshed
 types-protobuf



[gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-mypy-plugins/files/, dev-python/pytest-mypy-plugins/

2023-05-21 Thread Viorel Munteanu
commit: b21c536c3e239ba404e39db369fe41d978bb80e9
Author: Lucio Sauer  posteo  net>
AuthorDate: Mon May 22 00:42:59 2023 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Mon May 22 00:44:37 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b21c536c

dev-python/pytest-mypy-plugins: new package, add 1.11.1

Signed-off-by: Lucio Sauer  posteo.net>

 dev-python/pytest-mypy-plugins/Manifest|  1 +
 ...lugins-1.11.1-deprecated-chevron-to-jinja.patch | 45 ++
 dev-python/pytest-mypy-plugins/metadata.xml| 19 +
 .../pytest-mypy-plugins-1.11.1.ebuild  | 37 ++
 4 files changed, 102 insertions(+)

diff --git a/dev-python/pytest-mypy-plugins/Manifest 
b/dev-python/pytest-mypy-plugins/Manifest
new file mode 100644
index 0..1e72cbeeb
--- /dev/null
+++ b/dev-python/pytest-mypy-plugins/Manifest
@@ -0,0 +1 @@
+DIST pytest-mypy-plugins-1.11.1.gh.tar.gz 18201 BLAKE2B 
a21b089321a3d632225e0ac6aa921b23bba111dcc5234c2ada32522b7659533970a9bd19bb432d3304b0291e32ba067ab75c549c4552ca742835155ab8e711b1
 SHA512 
ac7a0973aba070c80480681f2910d40c7e510c906f8030413ba5c94f50131df19036c7183bfad3f211d6d375661753b9d4ff2a73b3bd7af06d0f442e94af3f64

diff --git 
a/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-1.11.1-deprecated-chevron-to-jinja.patch
 
b/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-1.11.1-deprecated-chevron-to-jinja.patch
new file mode 100644
index 0..ae2885893
--- /dev/null
+++ 
b/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-1.11.1-deprecated-chevron-to-jinja.patch
@@ -0,0 +1,45 @@
+Chevron, an engine for the Mustache templating language, has been unmaintained
+since 2021 and is not part of ::gentoo. The Jinja and Mustache templating
+languages use the same syntax as far as this project is concerned.
+
+PR issued upstream by :
+https://github.com/typeddjango/pytest-mypy-plugins/pull/117
+--- a/pytest_mypy_plugins/utils.py
 b/pytest_mypy_plugins/utils.py
+@@ -11,10 +11,11 @@ from itertools import zip_longest
+ from pathlib import Path
+ from typing import Any, Callable, Dict, Iterator, List, Mapping, Optional, 
Tuple, Union
+ 
+-import chevron
++import jinja2
+ import regex
+ from decorator import contextmanager
+ 
++_rendering_env = jinja2.Environment()
+ 
+ @contextmanager
+ def temp_environ() -> Iterator[None]:
+@@ -351,9 +352,10 @@ def extract_output_matchers_from_out(out: str, params: 
Mapping[str, Any], regex:
+ return matchers
+ 
+ 
+-def render_template(template: str, data: Mapping[str, Any]) -> str:
+-return chevron.render(template=template, data={k: v if v is not None else 
"None" for k, v in data.items()})
+ 
++def render_template(template: str, data: Mapping[str, Any]) -> str:
++template = _rendering_env.from_string(template)
++return template.render({k: v if v is not None else "None" for k, v in 
data.items()})
+ 
+ def get_func_first_lnum(attr: Callable[..., None]) -> Optional[Tuple[int, 
List[str]]]:
+ lines, _ = inspect.getsourcelines(attr)
+--- a/setup.py
 b/setup.py
+@@ -8,7 +8,7 @@ dependencies = [
+ "mypy>=0.970",
+ "decorator",
+ "pyyaml",
+-"chevron",
++"jinja2",
+ "regex",
+ "packaging",
+ ]

diff --git a/dev-python/pytest-mypy-plugins/metadata.xml 
b/dev-python/pytest-mypy-plugins/metadata.xml
new file mode 100644
index 0..e6717ac2f
--- /dev/null
+++ b/dev-python/pytest-mypy-plugins/metadata.xml
@@ -0,0 +1,19 @@
+
+https://www.gentoo.org/dtd/metadata.dtd;>
+
+  
+watermanpa...@posteo.net
+Lucio Sauer
+  
+  
+proxy-ma...@gentoo.org
+Proxy Maintainers
+  
+  
+
+  
https://github.com/typeddjango/pytest-mypy-plugins/blob/master/CHANGELOG.md
+
+typeddjango/pytest-mypy-plugins
+pytest-mypy-plugins
+  
+

diff --git a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-1.11.1.ebuild 
b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-1.11.1.ebuild
new file mode 100644
index 0..e42608e0e
--- /dev/null
+++ b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-1.11.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_11 )
+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}-deprecated-chevron-to-jinja.patch
+)
+
+DOCS="README* CHANGELOG*"
+
+RDEPEND="
+   dev-python/decorator[${PYTHON_USEDEP}]
+   dev-python/jinja[${PYTHON_USEDEP}]
+   dev-python/mypy[${PYTHON_USEDEP}]
+   dev-python/packaging[${PYTHON_USEDEP}]
+