diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-07-29 07:07:05 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-07-29 07:07:05 +0000 |
| commit | 98e18df05fb97d065fc6a7aae14c9c52703f0933 (patch) | |
| tree | 8485d66d70dbd7d9afe62292670bb58b3b3ff1db /dev-python/pytest-mypy-plugins | |
| parent | 951fa1a0a5ffd2f179a55b0f86c771bf3fc98f23 (diff) | |
| download | baldeagleos-repo-98e18df05fb97d065fc6a7aae14c9c52703f0933.tar.gz baldeagleos-repo-98e18df05fb97d065fc6a7aae14c9c52703f0933.tar.xz baldeagleos-repo-98e18df05fb97d065fc6a7aae14c9c52703f0933.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/pytest-mypy-plugins-3.2.0.ebuild (renamed from dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.1.0.ebuild) | 34 |
2 files changed, 19 insertions, 17 deletions
diff --git a/dev-python/pytest-mypy-plugins/Manifest b/dev-python/pytest-mypy-plugins/Manifest index a09bb2ad314c..73a5d8660e22 100644 --- a/dev-python/pytest-mypy-plugins/Manifest +++ b/dev-python/pytest-mypy-plugins/Manifest @@ -1 +1 @@ -DIST pytest-mypy-plugins-3.1.0.gh.tar.gz 24331 BLAKE2B b4cae94e254f8da0ef8cd081479cbee4522150843ef3bbbd16ae6efe6722e44e84aa49e761e99699b75c94f8b44963e8f9eeefb5c5b3352411df4801a1bbc5b4 SHA512 4892b653b9cd2bbe5cd253c5f0472d48a6eaf5e1261d53ef0f1c53470c2589baf21d428a0873c64acca71eec38ef9653ec501e0746ffc564d30830ba68148f91 +DIST pytest-mypy-plugins-3.2.0.gh.tar.gz 25568 BLAKE2B 60143ea5316cb3efd1aa356123cd40b52e7883dc201c22f108e0f4fb3aa3e9aae296920a1422cb1f8084c7657c29c955f07892b09a643a88f9024f726209ab6f SHA512 3d5a6490b626f5dbb3f3c946f2ffbbb56cd0128b8234e9d98020d147e9f8f0841c76ca72f3cadb5ad568a5663e403417028fc07f85ec7f0e3a50b592bde734a7 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.2.0.ebuild index 77a54073502a..8970c5133942 100644 --- a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.1.0.ebuild +++ b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-3.2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Gentoo Authors +# Copyright 2023-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -22,31 +22,33 @@ 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/jinja2[${PYTHON_USEDEP}] dev-python/jsonschema[${PYTHON_USEDEP}] + >=dev-python/mypy-1.3.0[${PYTHON_USEDEP}] dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/pytest-7.0.0[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/regex[${PYTHON_USEDEP}] + >=dev-python/tomlkit-0.11[${PYTHON_USEDEP}] " +EPYTEST_PLUGINS=( ${PN} ) 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 + local EPYTEST_DESELECT=( + # circumvents our test setup by calling "pytest"; do the test manually + pytest_mypy_plugins/tests/test_explicit_configs.py + ) distutils-r1_python_test - # reset for next interpreter run - sed "s/${EPYTHON}/MY_EPYTHON/" -i pytest_mypy_plugins/tests/test_explicit_configs.py || die + + local config= testfile="${S}"/pytest_mypy_plugins/tests/test-mypy-config.yml + + for config in pytest_mypy_plugins/tests/test_configs/*{1,2}.toml; do + epytest --mypy-pyproject-toml-file "${config}" "${testfile}" + done + for config in pytest_mypy_plugins/tests/test_configs/*.{ini,cfg}; do + epytest --mypy-ini-file "${config}" "${testfile}" + done } |
