diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-03-02 17:53:22 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-03-02 17:53:22 +0000 |
| commit | 88f59b55509f0cc5bf860504b6e98737546cd680 (patch) | |
| tree | 1fc6436a86d84dcd196a34e8176f5e1b432ea8f1 /dev-python/pytest-mypy-plugins | |
| parent | 1b52dddb92a05d1f3ac981505bf8be73447a7fb9 (diff) | |
| download | baldeagleos-repo-88f59b55509f0cc5bf860504b6e98737546cd680.tar.gz baldeagleos-repo-88f59b55509f0cc5bf860504b6e98737546cd680.tar.xz baldeagleos-repo-88f59b55509f0cc5bf860504b6e98737546cd680.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytest-mypy-plugins')
| -rw-r--r-- | dev-python/pytest-mypy-plugins/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-3.0.0-compat-mypy-1.8.0.patch | 51 | ||||
| -rw-r--r-- | dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.1.0.ebuild (renamed from dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.0.0-r1.ebuild) | 6 |
3 files changed, 4 insertions, 55 deletions
diff --git a/dev-python/pytest-mypy-plugins/Manifest b/dev-python/pytest-mypy-plugins/Manifest index 35c418d5773e..a09bb2ad314c 100644 --- a/dev-python/pytest-mypy-plugins/Manifest +++ b/dev-python/pytest-mypy-plugins/Manifest @@ -1 +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 c39c21d2ed6f..000000000000 --- 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 <watermanpaint@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-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.1.0.ebuild index 203c787cd067..216f7cc5a0f9 100644 --- a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.0.0-r1.ebuild +++ b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.1.0.ebuild @@ -19,15 +19,15 @@ 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/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}] @@ -37,7 +37,7 @@ 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} + # 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 |
