目前,我正在使用pants 来构建和测试我们的python2.7 包。在 pytests 目标完成后,我们开始在运行目标期间注意到以下错误。我尝试添加 constraints.txt 文件以排除它抱怨的依赖项,但错误不会停止。有没有办法在裤子构建步骤中排除这些依赖项?
./pants test.pytest --coverage=auto tests/python/abcd/test/xyz
[pytest]
[cache]
No cached artifacts for 1 target.
Invalidated 1 target.
[run]
Failed to execute PEX file, missing compatible dependencies for:
importlib-metadata
zipp
No .coverage file was found! Skipping coverage reporting.
tests/python/abcd/test/xyz ..... SUCCESS
FAILURE