build: the project as pyproject.toml, the build command build-mkp in scripts/ #9
Loading…
Reference in a new issue
No description provided.
Delete branch "pyproject"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The repository as a Python project, with the MKP's build as an entry point.
pyproject.toml replaces three files:
requirements-test.txt→ the extratest(still pinned; Renovate's pep621 manager updates them).pytest.ini→[tool.pytest.ini_options], pluspythonpath = ["scripts"]so that the tests import the build module also where the project is not installed..cz.toml→[tool.commitizen]withversion_provider = "pep621":project.versionis the one place of the version, the MKP's too. The release bot finds the config there and runscz bump --version-files-only; tried with commitizen 4.19.4, it writes bothproject.versionand the README's install commands.build.py → scripts/build_mkp.py, installed as the command
build-mkp(pip install -e .):pyproject.toml;build-mkp --versionprints it.python3 scripts/build_mkp.pystill works without installing.build_mkp, notbuild: a top-level modulebuildwould shadow PyPA'sbuild(python -m build) in the same venv.src/andnode_modules/of the checkout.CI
pip install -e '.[test]'; the MKP is built with.venv/bin/build-mkp.build-mkp --version, builds withbuild-mkp.Checked locally
build.pyon main builds.packages.py --check 2.4 2.5passes.Tests of CI / unit: passed
86 passed, 0 failed, 0 skipped (86 tests, 55.6 s)
Of
f709aa27b1, the run, updated by every run.Tests of CI / integration (Checkmk 2.4): failed
17 passed, 1 failed, 0 skipped (18 tests, 304.8 s)
Failed tests
tests.integration.test_checkmk.test_page_draws_the_trees_in_a_browser[2.4-chromium-sankey]Of
f709aa27b1, the run, updated by every run.Tests of CI / integration (Checkmk 2.5): failed
17 passed, 1 failed, 0 skipped (18 tests, 308.6 s)
Failed tests
tests.integration.test_checkmk.test_page_draws_the_trees_in_a_browser[2.5-chromium-sankey]Of
f709aa27b1, the run, updated by every run.Tests of CI / integration (update 2.4 to 2.5): passed
6 passed, 0 failed, 0 skipped (6 tests, 400.0 s)
Of
f709aa27b1, the run, updated by every run.