From 6f44f7207c4518e6706080ab91db8dd569a2bb2e Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 3 Mar 2026 14:27:28 -0500 Subject: dev-python/poetry: fix dependency bounds on poetry-core This package advertises all software to use exact pinning, and naturally does so itself. So we unpin in src_prepare for obvious reasons. For poetry-core itself, this leads to fragile nonsense as poetry-core internals are flaky and change. We need to restrict this via RDEPEND, historically via >=, but this broke: ``` cannot import name 'temporary_directory' from 'poetry.core.utils.helpers' (/usr/lib/python3.13/site-packages/poetry/core/utils/helpers.py) ``` (aside: poetry deletes useful tracebacks so good luck figuring out where this happened :) :)) In the poetry 2.3.* this got fixed (I think? there is no commit message, but that's my best guess) but in a not so useful way as the broken version was the stable 2.2.1-r1 and there is no poetry-core 2.4.0 yet to cause issues for poetry 2.3.*, so just align the fix across all versions and revbump for metadata changes. The fix is to pin via RDEPEND (and still unpin with sed on the dist-info), to major.minor of poetry == poetry-core. The current break happened for 2.2.* -> 2.3.*, so this is hopefully reliable (and definitely more than >=${PV} was). Signed-off-by: Eli Schwartz --- dev-python/poetry/poetry-2.2.1-r1.ebuild | 86 -------------------------------- dev-python/poetry/poetry-2.2.1-r2.ebuild | 86 ++++++++++++++++++++++++++++++++ dev-python/poetry/poetry-2.3.0-r1.ebuild | 78 +++++++++++++++++++++++++++++ dev-python/poetry/poetry-2.3.0.ebuild | 78 ----------------------------- dev-python/poetry/poetry-2.3.2-r1.ebuild | 78 +++++++++++++++++++++++++++++ dev-python/poetry/poetry-2.3.2.ebuild | 78 ----------------------------- 6 files changed, 242 insertions(+), 242 deletions(-) delete mode 100644 dev-python/poetry/poetry-2.2.1-r1.ebuild create mode 100644 dev-python/poetry/poetry-2.2.1-r2.ebuild create mode 100644 dev-python/poetry/poetry-2.3.0-r1.ebuild delete mode 100644 dev-python/poetry/poetry-2.3.0.ebuild create mode 100644 dev-python/poetry/poetry-2.3.2-r1.ebuild delete mode 100644 dev-python/poetry/poetry-2.3.2.ebuild (limited to 'dev-python') diff --git a/dev-python/poetry/poetry-2.2.1-r1.ebuild b/dev-python/poetry/poetry-2.2.1-r1.ebuild deleted file mode 100644 index 6c524e3915b4..000000000000 --- a/dev-python/poetry/poetry-2.2.1-r1.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 2023-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{11..13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="A frontend for poetry - a python dependency management and packaging tool" -HOMEPAGE=" - https://python-poetry.org/ - https://github.com/python-poetry/poetry - https://pypi.org/project/poetry/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~arm64 ~x86" - -RDEPEND=" - >=dev-python/poetry-core-${PV}[${PYTHON_USEDEP}] - >=dev-python/poetry-plugin-export-1.6.0[${PYTHON_USEDEP}] - >=dev-python/build-1.2.1[${PYTHON_USEDEP}] - >=dev-python/cachecontrol-0.14.0[${PYTHON_USEDEP}] - >=dev-python/cleo-2.1.0[${PYTHON_USEDEP}] - =dev-python/fastjsonschema-2.18.0[${PYTHON_USEDEP}] - >=dev-python/findpython-0.6.2[${PYTHON_USEDEP}] - >=dev-python/installer-0.7.0[${PYTHON_USEDEP}] - >=dev-python/keyring-25.1.0[${PYTHON_USEDEP}] - >=dev-python/packaging-24.2[${PYTHON_USEDEP}] - >=dev-python/pbs-installer-2025.01.06[${PYTHON_USEDEP}] - >=dev-python/pkginfo-1.12[${PYTHON_USEDEP}] - >=dev-python/platformdirs-3.0.0[${PYTHON_USEDEP}] - >=dev-python/requests-2.26[${PYTHON_USEDEP}] - >=dev-python/requests-toolbelt-1.0.0[${PYTHON_USEDEP}] - >=dev-python/shellingham-1.5.0[${PYTHON_USEDEP}] - >=dev-python/tomlkit-0.11.6[${PYTHON_USEDEP}] - >=dev-python/trove-classifiers-2022.5.19[${PYTHON_USEDEP}] - >=dev-python/virtualenv-20.26.6[${PYTHON_USEDEP}] -" - -BDEPEND=" - test? ( - >=dev-python/deepdiff-6.3.1[${PYTHON_USEDEP}] - >=dev-python/httpretty-1.1[${PYTHON_USEDEP}] - >=dev-python/jaraco-classes-3.3.1[${PYTHON_USEDEP}] - >=dev-python/pytest-mock-3.9[${PYTHON_USEDEP}] - dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] - ) -" - -EPYTEST_PLUGINS=( pytest-mock ) -EPYTEST_RERUNS=5 -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # Internal test for lockfile being up-to-date - # Meaningless, also sdist does not include lockfile - tests/installation/test_installer.py::test_not_fresh_lock - - # broken if poetry-plugin-export is installed - 'tests/console/test_application_command_not_found.py::test_application_command_not_found_messages[x-None]' - - # TODO - tests/console/commands/env/test_activate.py::test_no_additional_output_in_verbose_mode - tests/installation/test_executor.py::test_executor_known_hashes - tests/puzzle/test_provider.py::test_search_for_directory_setup_read_setup_with_no_dependencies - tests/utils/env/test_env_manager.py::test_create_venv_finds_no_python_executable - tests/utils/test_python_manager.py::test_python_get_preferred_default - 'tests/inspection/test_info.py::test_info_setup_missing_mandatory_should_trigger_pep517[name]' -) - -src_prepare() { - # unpin - sed -e 's:,<[0-9.]*::' -e 's:==\([0-9]\):>=\1:' -i pyproject.toml || die - - distutils-r1_src_prepare -} - -python_test() { - epytest -m "not network" -} diff --git a/dev-python/poetry/poetry-2.2.1-r2.ebuild b/dev-python/poetry/poetry-2.2.1-r2.ebuild new file mode 100644 index 000000000000..1fcd21d02dbd --- /dev/null +++ b/dev-python/poetry/poetry-2.2.1-r2.ebuild @@ -0,0 +1,86 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A frontend for poetry - a python dependency management and packaging tool" +HOMEPAGE=" + https://python-poetry.org/ + https://github.com/python-poetry/poetry + https://pypi.org/project/poetry/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~x86" + +RDEPEND=" + =dev-python/poetry-core-$(ver_cut 1-2)*[${PYTHON_USEDEP}] + >=dev-python/poetry-plugin-export-1.6.0[${PYTHON_USEDEP}] + >=dev-python/build-1.2.1[${PYTHON_USEDEP}] + >=dev-python/cachecontrol-0.14.0[${PYTHON_USEDEP}] + >=dev-python/cleo-2.1.0[${PYTHON_USEDEP}] + =dev-python/fastjsonschema-2.18.0[${PYTHON_USEDEP}] + >=dev-python/findpython-0.6.2[${PYTHON_USEDEP}] + >=dev-python/installer-0.7.0[${PYTHON_USEDEP}] + >=dev-python/keyring-25.1.0[${PYTHON_USEDEP}] + >=dev-python/packaging-24.2[${PYTHON_USEDEP}] + >=dev-python/pbs-installer-2025.01.06[${PYTHON_USEDEP}] + >=dev-python/pkginfo-1.12[${PYTHON_USEDEP}] + >=dev-python/platformdirs-3.0.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.26[${PYTHON_USEDEP}] + >=dev-python/requests-toolbelt-1.0.0[${PYTHON_USEDEP}] + >=dev-python/shellingham-1.5.0[${PYTHON_USEDEP}] + >=dev-python/tomlkit-0.11.6[${PYTHON_USEDEP}] + >=dev-python/trove-classifiers-2022.5.19[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.26.6[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + >=dev-python/deepdiff-6.3.1[${PYTHON_USEDEP}] + >=dev-python/httpretty-1.1[${PYTHON_USEDEP}] + >=dev-python/jaraco-classes-3.3.1[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-3.9[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( pytest-mock ) +EPYTEST_RERUNS=5 +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Internal test for lockfile being up-to-date + # Meaningless, also sdist does not include lockfile + tests/installation/test_installer.py::test_not_fresh_lock + + # broken if poetry-plugin-export is installed + 'tests/console/test_application_command_not_found.py::test_application_command_not_found_messages[x-None]' + + # TODO + tests/console/commands/env/test_activate.py::test_no_additional_output_in_verbose_mode + tests/installation/test_executor.py::test_executor_known_hashes + tests/puzzle/test_provider.py::test_search_for_directory_setup_read_setup_with_no_dependencies + tests/utils/env/test_env_manager.py::test_create_venv_finds_no_python_executable + tests/utils/test_python_manager.py::test_python_get_preferred_default + 'tests/inspection/test_info.py::test_info_setup_missing_mandatory_should_trigger_pep517[name]' +) + +src_prepare() { + # unpin + sed -e 's:,<[0-9.]*::' -e 's:==\([0-9]\):>=\1:' -i pyproject.toml || die + + distutils-r1_src_prepare +} + +python_test() { + epytest -m "not network" +} diff --git a/dev-python/poetry/poetry-2.3.0-r1.ebuild b/dev-python/poetry/poetry-2.3.0-r1.ebuild new file mode 100644 index 000000000000..bb770728b976 --- /dev/null +++ b/dev-python/poetry/poetry-2.3.0-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYPI_VERIFY_REPO=https://github.com/python-poetry/poetry +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A frontend for poetry - a python dependency management and packaging tool" +HOMEPAGE=" + https://python-poetry.org/ + https://github.com/python-poetry/poetry/ + https://pypi.org/project/poetry/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + =dev-python/poetry-core-$(ver_cut 1-2)*[${PYTHON_USEDEP}] + >=dev-python/poetry-plugin-export-1.6.0[${PYTHON_USEDEP}] + >=dev-python/build-1.2.1[${PYTHON_USEDEP}] + >=dev-python/cachecontrol-0.14.0[${PYTHON_USEDEP}] + >=dev-python/cleo-2.1.0[${PYTHON_USEDEP}] + >=dev-python/dulwich-0.25.0[${PYTHON_USEDEP}] + >=dev-python/fastjsonschema-2.18.0[${PYTHON_USEDEP}] + >=dev-python/findpython-0.6.2[${PYTHON_USEDEP}] + >=dev-python/installer-0.7.0[${PYTHON_USEDEP}] + >=dev-python/keyring-25.1.0[${PYTHON_USEDEP}] + >=dev-python/packaging-24.2[${PYTHON_USEDEP}] + >=dev-python/pbs-installer-2025.06.10[${PYTHON_USEDEP}] + >=dev-python/pkginfo-1.12[${PYTHON_USEDEP}] + >=dev-python/platformdirs-3.0.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.26[${PYTHON_USEDEP}] + >=dev-python/requests-toolbelt-1.0.0[${PYTHON_USEDEP}] + >=dev-python/shellingham-1.5.0[${PYTHON_USEDEP}] + >=dev-python/tomlkit-0.11.6[${PYTHON_USEDEP}] + >=dev-python/trove-classifiers-2022.5.19[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.26.6[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + >=dev-python/deepdiff-6.3.1[${PYTHON_USEDEP}] + >=dev-python/jaraco-classes-3.3.1[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-3.9[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( pytest-mock ) +EPYTEST_RERUNS=5 +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Internal test for lockfile being up-to-date + # Meaningless, also sdist does not include lockfile + tests/installation/test_installer.py::test_not_fresh_lock + + # broken if poetry-plugin-export is installed + 'tests/console/test_application_command_not_found.py::test_application_command_not_found_messages[x-None]' +) + +src_prepare() { + # unpin + sed -e 's:,<[0-9.]*::' -e 's:==\([0-9]\):>=\1:' -i pyproject.toml || die + + distutils-r1_src_prepare +} + +python_test() { + epytest -m "not network" +} diff --git a/dev-python/poetry/poetry-2.3.0.ebuild b/dev-python/poetry/poetry-2.3.0.ebuild deleted file mode 100644 index 81d633042707..000000000000 --- a/dev-python/poetry/poetry-2.3.0.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 2023-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYPI_VERIFY_REPO=https://github.com/python-poetry/poetry -PYTHON_COMPAT=( python3_{11..13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="A frontend for poetry - a python dependency management and packaging tool" -HOMEPAGE=" - https://python-poetry.org/ - https://github.com/python-poetry/poetry/ - https://pypi.org/project/poetry/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" - -RDEPEND=" - >=dev-python/poetry-core-${PV}[${PYTHON_USEDEP}] - >=dev-python/poetry-plugin-export-1.6.0[${PYTHON_USEDEP}] - >=dev-python/build-1.2.1[${PYTHON_USEDEP}] - >=dev-python/cachecontrol-0.14.0[${PYTHON_USEDEP}] - >=dev-python/cleo-2.1.0[${PYTHON_USEDEP}] - >=dev-python/dulwich-0.25.0[${PYTHON_USEDEP}] - >=dev-python/fastjsonschema-2.18.0[${PYTHON_USEDEP}] - >=dev-python/findpython-0.6.2[${PYTHON_USEDEP}] - >=dev-python/installer-0.7.0[${PYTHON_USEDEP}] - >=dev-python/keyring-25.1.0[${PYTHON_USEDEP}] - >=dev-python/packaging-24.2[${PYTHON_USEDEP}] - >=dev-python/pbs-installer-2025.06.10[${PYTHON_USEDEP}] - >=dev-python/pkginfo-1.12[${PYTHON_USEDEP}] - >=dev-python/platformdirs-3.0.0[${PYTHON_USEDEP}] - >=dev-python/requests-2.26[${PYTHON_USEDEP}] - >=dev-python/requests-toolbelt-1.0.0[${PYTHON_USEDEP}] - >=dev-python/shellingham-1.5.0[${PYTHON_USEDEP}] - >=dev-python/tomlkit-0.11.6[${PYTHON_USEDEP}] - >=dev-python/trove-classifiers-2022.5.19[${PYTHON_USEDEP}] - >=dev-python/virtualenv-20.26.6[${PYTHON_USEDEP}] -" - -BDEPEND=" - test? ( - >=dev-python/deepdiff-6.3.1[${PYTHON_USEDEP}] - >=dev-python/jaraco-classes-3.3.1[${PYTHON_USEDEP}] - >=dev-python/pytest-mock-3.9[${PYTHON_USEDEP}] - dev-python/responses[${PYTHON_USEDEP}] - ) -" - -EPYTEST_PLUGINS=( pytest-mock ) -EPYTEST_RERUNS=5 -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # Internal test for lockfile being up-to-date - # Meaningless, also sdist does not include lockfile - tests/installation/test_installer.py::test_not_fresh_lock - - # broken if poetry-plugin-export is installed - 'tests/console/test_application_command_not_found.py::test_application_command_not_found_messages[x-None]' -) - -src_prepare() { - # unpin - sed -e 's:,<[0-9.]*::' -e 's:==\([0-9]\):>=\1:' -i pyproject.toml || die - - distutils-r1_src_prepare -} - -python_test() { - epytest -m "not network" -} diff --git a/dev-python/poetry/poetry-2.3.2-r1.ebuild b/dev-python/poetry/poetry-2.3.2-r1.ebuild new file mode 100644 index 000000000000..bb770728b976 --- /dev/null +++ b/dev-python/poetry/poetry-2.3.2-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYPI_VERIFY_REPO=https://github.com/python-poetry/poetry +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A frontend for poetry - a python dependency management and packaging tool" +HOMEPAGE=" + https://python-poetry.org/ + https://github.com/python-poetry/poetry/ + https://pypi.org/project/poetry/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + =dev-python/poetry-core-$(ver_cut 1-2)*[${PYTHON_USEDEP}] + >=dev-python/poetry-plugin-export-1.6.0[${PYTHON_USEDEP}] + >=dev-python/build-1.2.1[${PYTHON_USEDEP}] + >=dev-python/cachecontrol-0.14.0[${PYTHON_USEDEP}] + >=dev-python/cleo-2.1.0[${PYTHON_USEDEP}] + >=dev-python/dulwich-0.25.0[${PYTHON_USEDEP}] + >=dev-python/fastjsonschema-2.18.0[${PYTHON_USEDEP}] + >=dev-python/findpython-0.6.2[${PYTHON_USEDEP}] + >=dev-python/installer-0.7.0[${PYTHON_USEDEP}] + >=dev-python/keyring-25.1.0[${PYTHON_USEDEP}] + >=dev-python/packaging-24.2[${PYTHON_USEDEP}] + >=dev-python/pbs-installer-2025.06.10[${PYTHON_USEDEP}] + >=dev-python/pkginfo-1.12[${PYTHON_USEDEP}] + >=dev-python/platformdirs-3.0.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.26[${PYTHON_USEDEP}] + >=dev-python/requests-toolbelt-1.0.0[${PYTHON_USEDEP}] + >=dev-python/shellingham-1.5.0[${PYTHON_USEDEP}] + >=dev-python/tomlkit-0.11.6[${PYTHON_USEDEP}] + >=dev-python/trove-classifiers-2022.5.19[${PYTHON_USEDEP}] + >=dev-python/virtualenv-20.26.6[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + >=dev-python/deepdiff-6.3.1[${PYTHON_USEDEP}] + >=dev-python/jaraco-classes-3.3.1[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-3.9[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( pytest-mock ) +EPYTEST_RERUNS=5 +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Internal test for lockfile being up-to-date + # Meaningless, also sdist does not include lockfile + tests/installation/test_installer.py::test_not_fresh_lock + + # broken if poetry-plugin-export is installed + 'tests/console/test_application_command_not_found.py::test_application_command_not_found_messages[x-None]' +) + +src_prepare() { + # unpin + sed -e 's:,<[0-9.]*::' -e 's:==\([0-9]\):>=\1:' -i pyproject.toml || die + + distutils-r1_src_prepare +} + +python_test() { + epytest -m "not network" +} diff --git a/dev-python/poetry/poetry-2.3.2.ebuild b/dev-python/poetry/poetry-2.3.2.ebuild deleted file mode 100644 index 2d8d5e282e83..000000000000 --- a/dev-python/poetry/poetry-2.3.2.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 2023-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYPI_VERIFY_REPO=https://github.com/python-poetry/poetry -PYTHON_COMPAT=( python3_{11..13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="A frontend for poetry - a python dependency management and packaging tool" -HOMEPAGE=" - https://python-poetry.org/ - https://github.com/python-poetry/poetry/ - https://pypi.org/project/poetry/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" - -RDEPEND=" - =dev-python/poetry-core-2.3.1[${PYTHON_USEDEP}] - >=dev-python/poetry-plugin-export-1.6.0[${PYTHON_USEDEP}] - >=dev-python/build-1.2.1[${PYTHON_USEDEP}] - >=dev-python/cachecontrol-0.14.0[${PYTHON_USEDEP}] - >=dev-python/cleo-2.1.0[${PYTHON_USEDEP}] - >=dev-python/dulwich-0.25.0[${PYTHON_USEDEP}] - >=dev-python/fastjsonschema-2.18.0[${PYTHON_USEDEP}] - >=dev-python/findpython-0.6.2[${PYTHON_USEDEP}] - >=dev-python/installer-0.7.0[${PYTHON_USEDEP}] - >=dev-python/keyring-25.1.0[${PYTHON_USEDEP}] - >=dev-python/packaging-24.2[${PYTHON_USEDEP}] - >=dev-python/pbs-installer-2025.06.10[${PYTHON_USEDEP}] - >=dev-python/pkginfo-1.12[${PYTHON_USEDEP}] - >=dev-python/platformdirs-3.0.0[${PYTHON_USEDEP}] - >=dev-python/requests-2.26[${PYTHON_USEDEP}] - >=dev-python/requests-toolbelt-1.0.0[${PYTHON_USEDEP}] - >=dev-python/shellingham-1.5.0[${PYTHON_USEDEP}] - >=dev-python/tomlkit-0.11.6[${PYTHON_USEDEP}] - >=dev-python/trove-classifiers-2022.5.19[${PYTHON_USEDEP}] - >=dev-python/virtualenv-20.26.6[${PYTHON_USEDEP}] -" - -BDEPEND=" - test? ( - >=dev-python/deepdiff-6.3.1[${PYTHON_USEDEP}] - >=dev-python/jaraco-classes-3.3.1[${PYTHON_USEDEP}] - >=dev-python/pytest-mock-3.9[${PYTHON_USEDEP}] - dev-python/responses[${PYTHON_USEDEP}] - ) -" - -EPYTEST_PLUGINS=( pytest-mock ) -EPYTEST_RERUNS=5 -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # Internal test for lockfile being up-to-date - # Meaningless, also sdist does not include lockfile - tests/installation/test_installer.py::test_not_fresh_lock - - # broken if poetry-plugin-export is installed - 'tests/console/test_application_command_not_found.py::test_application_command_not_found_messages[x-None]' -) - -src_prepare() { - # unpin - sed -e 's:,<[0-9.]*::' -e 's:==\([0-9]\):>=\1:' -i pyproject.toml || die - - distutils-r1_src_prepare -} - -python_test() { - epytest -m "not network" -} -- cgit v1.2.3