commit: 9b2b5a5e6d9d8ead906008c544f1178bff9d62c4 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed May 10 19:12:09 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed May 10 19:17:13 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b2b5a5e
dev-python/hatchling: Workaround test failures w/ no cargo(1) Closes: https://bugs.gentoo.org/906081 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/hatchling/hatchling-1.15.0.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-python/hatchling/hatchling-1.15.0.ebuild b/dev-python/hatchling/hatchling-1.15.0.ebuild index d19c9d5239f8..a71cd5b7faf4 100644 --- a/dev-python/hatchling/hatchling-1.15.0.ebuild +++ b/dev-python/hatchling/hatchling-1.15.0.ebuild @@ -69,11 +69,16 @@ python_test() { tests/backend/dep/test_core.py::test_extra_unmet tests/backend/dep/test_core.py::test_unknown_extra tests/backend/dep/test_core.py::test_version_unmet + # broken if CARGO is set + tests/backend/builders/test_app.py::TestBuildBootstrap::test_no_cargo ) # top-level "tests" directory contains tests both for hatch # and hatchling cd "${WORKDIR}/${MY_P}" || die local -x PYTHONPATH="src:${PYTHONPATH}" + # tests mock cargo subprocess call but the backend raises if CARGO + # is not set and shutil.which() can't find it + local -x CARGO=cargo epytest tests/backend }
