Disable database/opensearch
[oi-userland.git] / components / python / cattrs / patches / 03-tox-cov-proto.patch
blob75aa7c52b0fe5d08aee01b687bd6a0de9c0a89af
1 We test in proto area not in site-packages.
3 --- cattrs-24.1.2/tox.ini.orig
4 +++ cattrs-24.1.2/tox.ini
5 @@ -28,7 +28,7 @@
6 COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
7 allowlist_externals = pdm
8 commands_pre =
9 - python -c 'import pathlib; pathlib.Path("{env_site_packages_dir}/cov.pth").write_text("import coverage; coverage.process_startup()")'
10 + python -c 'import pathlib; pathlib.Path("cov.pth").write_text("import coverage; coverage.process_startup()")'
11 commands =
12 coverage run -m pytest tests {posargs:-n auto}
13 passenv = CI