cikit 0.3.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cikit-0.3.0 → cikit-0.4.0}/LICENSE +166 -0
- cikit-0.4.0/PKG-INFO +267 -0
- cikit-0.4.0/README.md +246 -0
- {cikit-0.3.0 → cikit-0.4.0}/pyproject.toml +11 -6
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/__init__.py +2 -2
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/artifacts.py +29 -9
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/badge.py +2 -2
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/ci/__init__.py +4 -2
- cikit-0.4.0/src/cikit/ci/arguments.py +76 -0
- cikit-0.4.0/src/cikit/ci/commands/__init__.py +11 -0
- cikit-0.4.0/src/cikit/ci/commands/_clint_common.py +77 -0
- cikit-0.4.0/src/cikit/ci/commands/_coverage_common.py +62 -0
- cikit-0.4.0/src/cikit/ci/commands/cbuild.py +107 -0
- cikit-0.4.0/src/cikit/ci/commands/ccoverage.py +59 -0
- cikit-0.4.0/src/cikit/ci/commands/clint.py +81 -0
- cikit-0.4.0/src/cikit/ci/commands/ctest.py +86 -0
- cikit-0.4.0/src/cikit/ci/commands/doxygen.py +83 -0
- cikit-0.4.0/src/cikit/ci/commands/init.py +54 -0
- cikit-0.4.0/src/cikit/ci/commands/platformio.py +94 -0
- cikit-0.4.0/src/cikit/ci/commands/platformio_lint.py +70 -0
- cikit-0.4.0/src/cikit/ci/commands/pybuild.py +73 -0
- cikit-0.4.0/src/cikit/ci/commands/pycoverage.py +58 -0
- cikit-0.4.0/src/cikit/ci/commands/pylint.py +87 -0
- cikit-0.4.0/src/cikit/ci/commands/pypublish.py +63 -0
- cikit-0.4.0/src/cikit/ci/commands/pytest.py +76 -0
- cikit-0.4.0/src/cikit/ci/commands/pytest_init.py +58 -0
- cikit-0.4.0/src/cikit/ci/commands/repomix.py +67 -0
- cikit-0.4.0/src/cikit/ci/commands/ruff.py +83 -0
- cikit-0.4.0/src/cikit/ci/commands/sphinx.py +63 -0
- cikit-0.4.0/src/cikit/ci/commands/tectonic.py +111 -0
- cikit-0.4.0/src/cikit/ci/loader.py +149 -0
- cikit-0.4.0/src/cikit/ci/main.py +126 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/ci/runner.py +2 -2
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/command.py +2 -2
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/data/__init__.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/data/api.py +32 -4
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/data/cli.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/data/client.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/data/common.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/env/__init__.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/env/api.py +117 -60
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/env/cli.py +2 -2
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/env/common.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/env/env_vars.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/env/provider.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/errors.py +2 -2
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/factory.py +7 -10
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/json_utils.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/lint_to_rst.py +8 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/logging_utils.py +3 -2
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/macros/__init__.py +2 -4
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/macros/bundle.py +1 -1
- cikit-0.4.0/src/cikit/macros/clint.py +386 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/macros/cmake.py +21 -14
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/macros/common.py +2 -18
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/macros/coverage.py +36 -5
- cikit-0.4.0/src/cikit/macros/doxygen.py +415 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/macros/platformio.py +53 -29
- cikit-0.4.0/src/cikit/macros/pybuild.py +247 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/macros/pylint.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/macros/pytest.py +17 -12
- cikit-0.4.0/src/cikit/macros/repomix.py +244 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/macros/reports.py +12 -6
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/macros/ruff.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/macros/sphinx.py +6 -3
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/project_meta.py +109 -107
- cikit-0.4.0/src/cikit/resources/node/repomix.mjs +83 -0
- cikit-0.4.0/src/cikit/resources/php/cikit_data/README.md +350 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/resources/php/cikit_data/cikit_data_common.php +6 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/resources/php/cikit_data/cikit_data_create.php +29 -39
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/resources/php/cikit_data/cikit_data_latest.php +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/resources/php/cikit_data/cikit_data_timeline.php +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/resources/php/cikit_data/cikit_data_update.php +14 -6
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/resources/php/cikit_data/config.php.example +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/resources/php/cikit_data/generate_secrets.py +1 -1
- cikit-0.4.0/src/cikit/resources/sql/cikit_data/README.md +72 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/resources/sql/cikit_data/db_init.sql +2 -2
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/resources/sql/cikit_data/db_reset.sql +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/rst_tools.py +12 -10
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/sphinx_ext/__init__.py +1 -1
- cikit-0.4.0/src/cikit/sphinx_ext/chart.py +156 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/sphinx_ext/hash.py +22 -21
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/sphinx_ext/log.py +83 -53
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/sphinx_ext/metrics.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/status.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/systemtest/__init__.py +1 -1
- cikit-0.4.0/src/cikit/systemtest/fixtures.py +166 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/timeline/__init__.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/timeline/__main__.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/timeline/charts.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/timeline/presets.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/timeline/preview.py +1 -1
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/timeline/timeline_chart.py +1 -1
- cikit-0.4.0/src/cikit/version_parsers.py +135 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit/xml_tools.py +46 -33
- cikit-0.4.0/src/cikit.egg-info/PKG-INFO +267 -0
- cikit-0.4.0/src/cikit.egg-info/SOURCES.txt +100 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit.egg-info/requires.txt +1 -0
- cikit-0.3.0/.gitignore +0 -19
- cikit-0.3.0/.gitlab-ci.yml +0 -174
- cikit-0.3.0/.project +0 -17
- cikit-0.3.0/.pydevproject +0 -9
- cikit-0.3.0/.pylintrc +0 -659
- cikit-0.3.0/.repomixignore +0 -6
- cikit-0.3.0/PKG-INFO +0 -425
- cikit-0.3.0/README.md +0 -405
- cikit-0.3.0/ci_commands/__init__.py +0 -20
- cikit-0.3.0/ci_commands/all_.py +0 -103
- cikit-0.3.0/ci_commands/coverage.py +0 -69
- cikit-0.3.0/ci_commands/init.py +0 -65
- cikit-0.3.0/ci_commands/pylint.py +0 -80
- cikit-0.3.0/ci_commands/ruff.py +0 -72
- cikit-0.3.0/ci_commands/sphinx.py +0 -119
- cikit-0.3.0/ci_commands/test.py +0 -73
- cikit-0.3.0/docs/Makefile +0 -20
- cikit-0.3.0/docs/_static/logo/cikit-logo-192.png +0 -0
- cikit-0.3.0/docs/_static/logo/cikit-logo.png +0 -0
- cikit-0.3.0/docs/_static/logo/favicon.ico +0 -0
- cikit-0.3.0/docs/build_reports/index.rst +0 -11
- cikit-0.3.0/docs/build_reports/lint.rst +0 -9
- cikit-0.3.0/docs/build_reports/tests.rst +0 -8
- cikit-0.3.0/docs/concepts/artifacts.rst +0 -650
- cikit-0.3.0/docs/concepts/cikit_data.rst +0 -644
- cikit-0.3.0/docs/concepts/environment.rst +0 -412
- cikit-0.3.0/docs/concepts/index.rst +0 -13
- cikit-0.3.0/docs/concepts/metadata.rst +0 -509
- cikit-0.3.0/docs/concepts/providers.rst +0 -592
- cikit-0.3.0/docs/conf.py +0 -55
- cikit-0.3.0/docs/getting_started.rst +0 -312
- cikit-0.3.0/docs/guides/azure_devops.rst +0 -322
- cikit-0.3.0/docs/guides/builds.rst +0 -857
- cikit-0.3.0/docs/guides/ci_commands.rst +0 -691
- cikit-0.3.0/docs/guides/gitlab_ci.rst +0 -232
- cikit-0.3.0/docs/guides/index.rst +0 -18
- cikit-0.3.0/docs/guides/local_pipeline.rst +0 -627
- cikit-0.3.0/docs/guides/macros.rst +0 -695
- cikit-0.3.0/docs/guides/sphinx_build.rst +0 -502
- cikit-0.3.0/docs/guides/sphinx_extensions.rst +0 -778
- cikit-0.3.0/docs/guides/timelines.rst +0 -255
- cikit-0.3.0/docs/index.rst +0 -21
- cikit-0.3.0/docs/roadmap.rst +0 -33
- cikit-0.3.0/src/cikit/ci/README.md +0 -183
- cikit-0.3.0/src/cikit/ci/loader.py +0 -206
- cikit-0.3.0/src/cikit/ci/main.py +0 -62
- cikit-0.3.0/src/cikit/data/README.md +0 -601
- cikit-0.3.0/src/cikit/env/README.md +0 -559
- cikit-0.3.0/src/cikit/macros/README.md +0 -74
- cikit-0.3.0/src/cikit/resources/php/cikit_data/.htaccess +0 -7
- cikit-0.3.0/src/cikit/resources/php/cikit_data/README.md +0 -267
- cikit-0.3.0/src/cikit/resources/php/cikit_data/config.php +0 -75
- cikit-0.3.0/src/cikit/resources/sql/cikit_data/README.md +0 -56
- cikit-0.3.0/src/cikit/sphinx_ext/chart.py +0 -111
- cikit-0.3.0/src/cikit/systemtest/fixtures.py +0 -85
- cikit-0.3.0/src/cikit/timeline/README.md +0 -71
- cikit-0.3.0/src/cikit.egg-info/PKG-INFO +0 -425
- cikit-0.3.0/src/cikit.egg-info/SOURCES.txt +0 -200
- cikit-0.3.0/tests/systemtests/conftest.py +0 -13
- cikit-0.3.0/tests/systemtests/projects/cmake_error/CMakeLists.txt +0 -6
- cikit-0.3.0/tests/systemtests/projects/cmake_error/main.c +0 -7
- cikit-0.3.0/tests/systemtests/projects/cmake_native/CMakeLists.txt +0 -19
- cikit-0.3.0/tests/systemtests/projects/cmake_native/linker.ld +0 -25
- cikit-0.3.0/tests/systemtests/projects/cmake_native/main.c +0 -6
- cikit-0.3.0/tests/systemtests/projects/cmake_warning/CMakeLists.txt +0 -6
- cikit-0.3.0/tests/systemtests/projects/cmake_warning/main.c +0 -7
- cikit-0.3.0/tests/systemtests/projects/command_consumer/ci_commands/__init__.py +0 -8
- cikit-0.3.0/tests/systemtests/projects/command_consumer/ci_commands/override.py +0 -33
- cikit-0.3.0/tests/systemtests/projects/command_provider/pyproject.toml +0 -16
- cikit-0.3.0/tests/systemtests/projects/command_provider/src/cikit_test_commands/__init__.py +0 -8
- cikit-0.3.0/tests/systemtests/projects/command_provider/src/cikit_test_commands/override.py +0 -33
- cikit-0.3.0/tests/systemtests/projects/command_provider/src/cikit_test_commands/provider.py +0 -33
- cikit-0.3.0/tests/systemtests/projects/platformio_error/platformio.ini +0 -2
- cikit-0.3.0/tests/systemtests/projects/platformio_error/src/main.c +0 -6
- cikit-0.3.0/tests/systemtests/projects/platformio_native/platformio.ini +0 -2
- cikit-0.3.0/tests/systemtests/projects/platformio_native/src/main.cpp +0 -10
- cikit-0.3.0/tests/systemtests/projects/sphinx/docs/conf.py +0 -7
- cikit-0.3.0/tests/systemtests/projects/sphinx/docs/index.rst +0 -14
- cikit-0.3.0/tests/systemtests/projects/sphinx/docs/test-log.txt +0 -17
- cikit-0.3.0/tests/systemtests/projects/sphinx_invalid/docs/ index.rst +0 -4
- cikit-0.3.0/tests/systemtests/projects/sphinx_invalid/docs/conf.py +0 -7
- cikit-0.3.0/tests/systemtests/test_ci_cli.py +0 -126
- cikit-0.3.0/tests/systemtests/test_cmake.py +0 -122
- cikit-0.3.0/tests/systemtests/test_data_cli.py +0 -111
- cikit-0.3.0/tests/systemtests/test_env_cli.py +0 -75
- cikit-0.3.0/tests/systemtests/test_platformio.py +0 -94
- cikit-0.3.0/tests/systemtests/test_sphinx.py +0 -98
- cikit-0.3.0/tests/unittests/test_ci_commands/__init__.py +0 -0
- cikit-0.3.0/tests/unittests/test_ci_commands/test_all.py +0 -91
- cikit-0.3.0/tests/unittests/test_ci_commands/test_sphinx.py +0 -54
- cikit-0.3.0/tests/unittests/test_cikit/__init__.py +0 -0
- cikit-0.3.0/tests/unittests/test_cikit/test_artifacts.py +0 -453
- cikit-0.3.0/tests/unittests/test_cikit/test_badge.py +0 -119
- cikit-0.3.0/tests/unittests/test_cikit/test_ci/__init__.py +0 -11
- cikit-0.3.0/tests/unittests/test_cikit/test_ci/test_loader.py +0 -159
- cikit-0.3.0/tests/unittests/test_cikit/test_command.py +0 -320
- cikit-0.3.0/tests/unittests/test_cikit/test_data/__init__.py +0 -12
- cikit-0.3.0/tests/unittests/test_cikit/test_data/test_api.py +0 -297
- cikit-0.3.0/tests/unittests/test_cikit/test_data/test_cli.py +0 -57
- cikit-0.3.0/tests/unittests/test_cikit/test_data/test_client.py +0 -280
- cikit-0.3.0/tests/unittests/test_cikit/test_data/test_common.py +0 -89
- cikit-0.3.0/tests/unittests/test_cikit/test_env/__init__.py +0 -0
- cikit-0.3.0/tests/unittests/test_cikit/test_env/test_api.py +0 -613
- cikit-0.3.0/tests/unittests/test_cikit/test_env/test_common.py +0 -117
- cikit-0.3.0/tests/unittests/test_cikit/test_env/test_env_vars.py +0 -63
- cikit-0.3.0/tests/unittests/test_cikit/test_env/test_provider.py +0 -293
- cikit-0.3.0/tests/unittests/test_cikit/test_errors.py +0 -50
- cikit-0.3.0/tests/unittests/test_cikit/test_factory.py +0 -219
- cikit-0.3.0/tests/unittests/test_cikit/test_json_utils.py +0 -56
- cikit-0.3.0/tests/unittests/test_cikit/test_lint_to_rst.py +0 -355
- cikit-0.3.0/tests/unittests/test_cikit/test_logging_utils.py +0 -140
- cikit-0.3.0/tests/unittests/test_cikit/test_macros/__init__.py +0 -8
- cikit-0.3.0/tests/unittests/test_cikit/test_macros/test_bundle.py +0 -203
- cikit-0.3.0/tests/unittests/test_cikit/test_macros/test_cmake.py +0 -869
- cikit-0.3.0/tests/unittests/test_cikit/test_macros/test_common.py +0 -151
- cikit-0.3.0/tests/unittests/test_cikit/test_macros/test_coverage.py +0 -258
- cikit-0.3.0/tests/unittests/test_cikit/test_macros/test_platformio.py +0 -583
- cikit-0.3.0/tests/unittests/test_cikit/test_macros/test_pylint.py +0 -363
- cikit-0.3.0/tests/unittests/test_cikit/test_macros/test_pytest.py +0 -114
- cikit-0.3.0/tests/unittests/test_cikit/test_macros/test_reports.py +0 -318
- cikit-0.3.0/tests/unittests/test_cikit/test_macros/test_ruff.py +0 -268
- cikit-0.3.0/tests/unittests/test_cikit/test_macros/test_sphinx.py +0 -214
- cikit-0.3.0/tests/unittests/test_cikit/test_project_meta.py +0 -394
- cikit-0.3.0/tests/unittests/test_cikit/test_rst_tools.py +0 -373
- cikit-0.3.0/tests/unittests/test_cikit/test_sphinx_ext/__init__.py +0 -11
- cikit-0.3.0/tests/unittests/test_cikit/test_sphinx_ext/test_chart.py +0 -153
- cikit-0.3.0/tests/unittests/test_cikit/test_sphinx_ext/test_hash.py +0 -93
- cikit-0.3.0/tests/unittests/test_cikit/test_sphinx_ext/test_init.py +0 -25
- cikit-0.3.0/tests/unittests/test_cikit/test_sphinx_ext/test_log.py +0 -169
- cikit-0.3.0/tests/unittests/test_cikit/test_sphinx_ext/test_metrics.py +0 -115
- cikit-0.3.0/tests/unittests/test_cikit/test_status.py +0 -70
- cikit-0.3.0/tests/unittests/test_cikit/test_timeline/__init__.py +0 -11
- cikit-0.3.0/tests/unittests/test_cikit/test_timeline/test_charts.py +0 -25
- cikit-0.3.0/tests/unittests/test_cikit/test_timeline/test_presets.py +0 -58
- cikit-0.3.0/tests/unittests/test_cikit/test_timeline/test_preview.py +0 -43
- cikit-0.3.0/tests/unittests/test_cikit/test_timeline/test_timeline_chart.py +0 -294
- cikit-0.3.0/tests/unittests/test_cikit/test_xml_tools.py +0 -179
- cikit-0.3.0/uv.lock +0 -1045
- {cikit-0.3.0 → cikit-0.4.0}/setup.cfg +0 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit.egg-info/dependency_links.txt +0 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit.egg-info/entry_points.txt +0 -0
- {cikit-0.3.0 → cikit-0.4.0}/src/cikit.egg-info/top_level.txt +0 -0
|
@@ -1,3 +1,169 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
|
166
|
+
|
|
1
167
|
GNU GENERAL PUBLIC LICENSE
|
|
2
168
|
Version 3, 29 June 2007
|
|
3
169
|
|
cikit-0.4.0/PKG-INFO
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cikit
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: CI helper toolkit
|
|
5
|
+
Author-email: Sven Schlender <svesch@gmx.de>
|
|
6
|
+
License-Expression: LGPL-3.0-or-later
|
|
7
|
+
Project-URL: Documentation, https://cikit-a4de14.gitlab.io
|
|
8
|
+
Project-URL: Repository, https://gitlab.com/svesch/cikit
|
|
9
|
+
Keywords: ci,gitlab,devops,pipeline,artifacts,sphinx
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Requires-Python: >=3.12
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: requests>=2.34
|
|
17
|
+
Requires-Dist: anybadge>=1.16
|
|
18
|
+
Requires-Dist: pygal>=3.1.0
|
|
19
|
+
Requires-Dist: packaging>=24
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
|
|
22
|
+
# cikit
|
|
23
|
+
|
|
24
|
+

|
|
25
|
+

|
|
26
|
+

|
|
27
|
+

|
|
28
|
+

|
|
29
|
+

|
|
30
|
+

|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
**cikit** is a lightweight Python toolkit for implementing local development and CI workflows
|
|
34
|
+
with reusable Python building blocks instead of large shell scripts or provider-specific pipeline
|
|
35
|
+
logic.
|
|
36
|
+
|
|
37
|
+
It combines a CI command framework with CI environment abstraction, reusable macros,
|
|
38
|
+
run data, artifact management, reports, timeline charts, and Sphinx integration.
|
|
39
|
+
|
|
40
|
+
[Documentation](https://cikit-a4de14.gitlab.io/) ·
|
|
41
|
+
[Repository](https://gitlab.com/svesch/cikit)
|
|
42
|
+
|
|
43
|
+
## Highlights
|
|
44
|
+
|
|
45
|
+
| Category | Features |
|
|
46
|
+
| --- | --- |
|
|
47
|
+
| CI Framework | Built-in and custom commands, installed command packages, lazy loading |
|
|
48
|
+
| CI Providers | Local Git, GitLab, Azure DevOps |
|
|
49
|
+
| Builds | CMake, CTest, PlatformIO, Python package builds and publishing, Tectonic |
|
|
50
|
+
| Code Quality | Ruff, Pylint, clang-tidy/cloc, pytest, Python and C/C++ coverage |
|
|
51
|
+
| Documentation | Sphinx, Doxygen |
|
|
52
|
+
| Repository Analysis | Repomix repository packing, token and file statistics |
|
|
53
|
+
| Data and Artifacts | Persistent run data, artifact registry, bundles, historical metrics |
|
|
54
|
+
| Reporting | Badges, RST reports, interactive SVG timelines and Sphinx extensions |
|
|
55
|
+
|
|
56
|
+
## Installation
|
|
57
|
+
|
|
58
|
+
cikit requires Python 3.12 or newer.
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
pip install cikit
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
For projects using uv, add cikit as a development dependency:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
uv add --dev cikit
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Tool-specific dependencies must be provided by the project or CI environment.
|
|
71
|
+
cikit does not install external tools automatically.
|
|
72
|
+
|
|
73
|
+
By default, cikit uses `uv run` as the execution prefix for tools configured to
|
|
74
|
+
use it. When working without uv, set `EXEC_TOOL` to an empty string, for example
|
|
75
|
+
in a POSIX shell:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
export EXEC_TOOL=""
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Quick Start
|
|
82
|
+
|
|
83
|
+
For a Python project with a `pyproject.toml`, source files under `src/`, and tests
|
|
84
|
+
under `tests/`, a basic CI workflow looks like this:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
uv add --dev cikit ruff pytest
|
|
88
|
+
|
|
89
|
+
uv run cikit init
|
|
90
|
+
uv run cikit ruff src tests
|
|
91
|
+
uv run cikit pytest tests
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
`init` removes the configured public output directory, including previously generated
|
|
95
|
+
artifacts and cached run data. Subsequent commands can share their results within the
|
|
96
|
+
same workflow.
|
|
97
|
+
|
|
98
|
+
List the available commands or inspect command-specific options with:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
uv run cikit --help
|
|
102
|
+
uv run cikit ruff --help
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
When using pip without uv, invoke `cikit` directly. See the
|
|
106
|
+
[Getting Started guide](https://cikit-a4de14.gitlab.io/getting_started.html)
|
|
107
|
+
for a complete introduction.
|
|
108
|
+
|
|
109
|
+
## CI Command Framework
|
|
110
|
+
|
|
111
|
+
The `cikit` console command discovers three sources of commands, with increasing precedence:
|
|
112
|
+
|
|
113
|
+
```text
|
|
114
|
+
Built-in commands < Installed command packages < Project-local commands
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Installed command packages use the `cikit.commands` entry-point group. Project-local
|
|
118
|
+
commands can be added in a root-level `ci_commands` package. Only the selected command
|
|
119
|
+
implementation is loaded, keeping unrelated tool dependencies optional.
|
|
120
|
+
|
|
121
|
+
For example, add an empty `ci_commands/__init__.py` and the following `ci_commands/check.py`:
|
|
122
|
+
|
|
123
|
+
```python
|
|
124
|
+
from cikit.ci import run_ci_script
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def command(args):
|
|
128
|
+
return run_ci_script("check", lambda env, status: print(env["PROJECT_ROOT"]), args=args)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def register(subparsers, name):
|
|
132
|
+
parser = subparsers.add_parser(name, help="Show the project root.")
|
|
133
|
+
parser.set_defaults(func=command)
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
The command is then available through the normal CLI:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
uv run cikit check
|
|
140
|
+
uv run cikit --name custom-check check
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
The logical run name identifies run data and artifact metadata. The `--name` and
|
|
144
|
+
`--verbose` options precede the command name. For command registration, discovery,
|
|
145
|
+
overrides and orchestration, see the
|
|
146
|
+
[CI Commands guide](https://cikit-a4de14.gitlab.io/guides/ci_commands.html).
|
|
147
|
+
|
|
148
|
+
## Environment and Providers
|
|
149
|
+
|
|
150
|
+
`cikit.env` resolves configuration and provides a common environment API for commands
|
|
151
|
+
and macros. The active provider is detected automatically. Local Git, GitLab and Azure
|
|
152
|
+
DevOps supply pipeline and revision metadata through the same interface.
|
|
153
|
+
|
|
154
|
+
The [Environment concept](https://cikit-a4de14.gitlab.io/concepts/environment.html)
|
|
155
|
+
explains configuration and the CI lifecycle. The
|
|
156
|
+
[CI Provider Integration guides](https://cikit-a4de14.gitlab.io/guides/providers/index.html)
|
|
157
|
+
cover provider-specific setup and artifact handling.
|
|
158
|
+
|
|
159
|
+
## Project Metadata
|
|
160
|
+
|
|
161
|
+
cikit combines project metadata from `pyproject.toml` with CI and Git information.
|
|
162
|
+
Both static versions and optional PEP 517 dynamic version resolution are supported,
|
|
163
|
+
as well as configurable version parsing and metadata templates.
|
|
164
|
+
|
|
165
|
+
See [Project Metadata](https://cikit-a4de14.gitlab.io/concepts/metadata.html)
|
|
166
|
+
for configuration and dependency requirements.
|
|
167
|
+
|
|
168
|
+
## Macros and Build Workflows
|
|
169
|
+
|
|
170
|
+
The `cikit.macros` package provides reusable Python building blocks for tool integration,
|
|
171
|
+
metrics, artifacts and reports. Built-in and project-specific commands can use the same macros.
|
|
172
|
+
|
|
173
|
+
Examples of independent built-in workflows for projects with the corresponding tools and
|
|
174
|
+
configuration:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
cikit cbuild
|
|
178
|
+
cikit ctest
|
|
179
|
+
cikit platformio
|
|
180
|
+
cikit pybuild
|
|
181
|
+
cikit doxygen
|
|
182
|
+
cikit repomix
|
|
183
|
+
cikit sphinx
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Build reports combine available build and compiler metadata, timings, diagnostics, memory
|
|
187
|
+
usage, downloadable artifacts and logs. Python distributions can be published separately
|
|
188
|
+
with `pypublish`.
|
|
189
|
+
|
|
190
|
+
Explore the [Built-in CI Commands](https://cikit-a4de14.gitlab.io/guides/builtin_commands/index.html),
|
|
191
|
+
[Macros](https://cikit-a4de14.gitlab.io/guides/macros/index.html) and
|
|
192
|
+
[Builds](https://cikit-a4de14.gitlab.io/guides/builds.html) guides for tool requirements,
|
|
193
|
+
command options and Python API examples.
|
|
194
|
+
|
|
195
|
+
## Data and Artifacts
|
|
196
|
+
|
|
197
|
+
`CiRunEnvironment` associates metrics and registered artifacts with a logical run. Run data
|
|
198
|
+
is stored locally and can optionally be synchronized with a remote cikit data service:
|
|
199
|
+
|
|
200
|
+
```python
|
|
201
|
+
env.data_set("build_time", 4.2)
|
|
202
|
+
env.data_update({"warnings": 0, "errors": 0})
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Registered artifacts include files, bundles and folders with optional entry points.
|
|
206
|
+
The persistent artifact registry enables subsequent commands to discover generated outputs
|
|
207
|
+
without hard-coded physical paths. Separate CI jobs must transfer the required artifacts
|
|
208
|
+
and registry explicitly.
|
|
209
|
+
|
|
210
|
+
See [cikit Data](https://cikit-a4de14.gitlab.io/concepts/cikit_data.html) for the data model
|
|
211
|
+
and [Artifacts](https://cikit-a4de14.gitlab.io/concepts/artifacts.html) for the artifact API.
|
|
212
|
+
|
|
213
|
+
## Timeline Charts
|
|
214
|
+
|
|
215
|
+
Historical run data can be queried from the optional remote data service and rendered
|
|
216
|
+
as configurable SVG charts. In an active run environment with remote access configured:
|
|
217
|
+
|
|
218
|
+
```python
|
|
219
|
+
from cikit.macros import chart_timeline
|
|
220
|
+
|
|
221
|
+
chart = chart_timeline(env, keys=["build_time"], title="Build duration", limit=20)
|
|
222
|
+
chart.create(env, "build-duration")
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Registered timeline charts can be included in generated reports. See
|
|
226
|
+
[Timeline Charts](https://cikit-a4de14.gitlab.io/guides/timelines.html) for chart presets,
|
|
227
|
+
configuration and standalone rendering.
|
|
228
|
+
|
|
229
|
+
## Sphinx Integration
|
|
230
|
+
|
|
231
|
+
The Sphinx macro prepares registered reports, badges and other artifacts for a documentation
|
|
232
|
+
build and registers the resulting HTML folder as an artifact.
|
|
233
|
+
|
|
234
|
+
The bundled extensions provide the following RST interfaces:
|
|
235
|
+
|
|
236
|
+
| RST interface | Purpose |
|
|
237
|
+
| --- | --- |
|
|
238
|
+
| `.. cikit-chart::` | Interactive SVG timeline charts |
|
|
239
|
+
| `:cikit-hash:` | Compact and copyable hash values |
|
|
240
|
+
| `.. cikit-log::` | Collapsible command logs |
|
|
241
|
+
| `:cikit-metric:` | Inline values from local run data |
|
|
242
|
+
|
|
243
|
+
Enable all four extensions in the Sphinx configuration:
|
|
244
|
+
|
|
245
|
+
```python
|
|
246
|
+
extensions = ["cikit.sphinx_ext"]
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
See the [Sphinx Build](https://cikit-a4de14.gitlab.io/guides/sphinx_build.html) and
|
|
250
|
+
[Sphinx Extensions](https://cikit-a4de14.gitlab.io/guides/sphinx_extensions.html) guides
|
|
251
|
+
for setup and usage examples.
|
|
252
|
+
|
|
253
|
+
## Console Entry Points
|
|
254
|
+
|
|
255
|
+
| Command | Purpose |
|
|
256
|
+
| --- | --- |
|
|
257
|
+
| `cikit` | Discover and execute CI commands |
|
|
258
|
+
| `cikit-data` | Access cikit data operations |
|
|
259
|
+
| `cikit-env` | Inspect, export, document and prepare the CI environment |
|
|
260
|
+
|
|
261
|
+
Use `--help` on each command for available options.
|
|
262
|
+
|
|
263
|
+
## License
|
|
264
|
+
|
|
265
|
+
GNU Lesser General Public License, version 3 or later (`LGPL-3.0-or-later`).
|
|
266
|
+
|
|
267
|
+
See the [GNU LGPLv3 license text](https://www.gnu.org/licenses/lgpl-3.0.html).
|
cikit-0.4.0/README.md
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# cikit
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
**cikit** is a lightweight Python toolkit for implementing local development and CI workflows
|
|
13
|
+
with reusable Python building blocks instead of large shell scripts or provider-specific pipeline
|
|
14
|
+
logic.
|
|
15
|
+
|
|
16
|
+
It combines a CI command framework with CI environment abstraction, reusable macros,
|
|
17
|
+
run data, artifact management, reports, timeline charts, and Sphinx integration.
|
|
18
|
+
|
|
19
|
+
[Documentation](https://cikit-a4de14.gitlab.io/) ·
|
|
20
|
+
[Repository](https://gitlab.com/svesch/cikit)
|
|
21
|
+
|
|
22
|
+
## Highlights
|
|
23
|
+
|
|
24
|
+
| Category | Features |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| CI Framework | Built-in and custom commands, installed command packages, lazy loading |
|
|
27
|
+
| CI Providers | Local Git, GitLab, Azure DevOps |
|
|
28
|
+
| Builds | CMake, CTest, PlatformIO, Python package builds and publishing, Tectonic |
|
|
29
|
+
| Code Quality | Ruff, Pylint, clang-tidy/cloc, pytest, Python and C/C++ coverage |
|
|
30
|
+
| Documentation | Sphinx, Doxygen |
|
|
31
|
+
| Repository Analysis | Repomix repository packing, token and file statistics |
|
|
32
|
+
| Data and Artifacts | Persistent run data, artifact registry, bundles, historical metrics |
|
|
33
|
+
| Reporting | Badges, RST reports, interactive SVG timelines and Sphinx extensions |
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
cikit requires Python 3.12 or newer.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install cikit
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
For projects using uv, add cikit as a development dependency:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
uv add --dev cikit
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Tool-specific dependencies must be provided by the project or CI environment.
|
|
50
|
+
cikit does not install external tools automatically.
|
|
51
|
+
|
|
52
|
+
By default, cikit uses `uv run` as the execution prefix for tools configured to
|
|
53
|
+
use it. When working without uv, set `EXEC_TOOL` to an empty string, for example
|
|
54
|
+
in a POSIX shell:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
export EXEC_TOOL=""
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Quick Start
|
|
61
|
+
|
|
62
|
+
For a Python project with a `pyproject.toml`, source files under `src/`, and tests
|
|
63
|
+
under `tests/`, a basic CI workflow looks like this:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
uv add --dev cikit ruff pytest
|
|
67
|
+
|
|
68
|
+
uv run cikit init
|
|
69
|
+
uv run cikit ruff src tests
|
|
70
|
+
uv run cikit pytest tests
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
`init` removes the configured public output directory, including previously generated
|
|
74
|
+
artifacts and cached run data. Subsequent commands can share their results within the
|
|
75
|
+
same workflow.
|
|
76
|
+
|
|
77
|
+
List the available commands or inspect command-specific options with:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
uv run cikit --help
|
|
81
|
+
uv run cikit ruff --help
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
When using pip without uv, invoke `cikit` directly. See the
|
|
85
|
+
[Getting Started guide](https://cikit-a4de14.gitlab.io/getting_started.html)
|
|
86
|
+
for a complete introduction.
|
|
87
|
+
|
|
88
|
+
## CI Command Framework
|
|
89
|
+
|
|
90
|
+
The `cikit` console command discovers three sources of commands, with increasing precedence:
|
|
91
|
+
|
|
92
|
+
```text
|
|
93
|
+
Built-in commands < Installed command packages < Project-local commands
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Installed command packages use the `cikit.commands` entry-point group. Project-local
|
|
97
|
+
commands can be added in a root-level `ci_commands` package. Only the selected command
|
|
98
|
+
implementation is loaded, keeping unrelated tool dependencies optional.
|
|
99
|
+
|
|
100
|
+
For example, add an empty `ci_commands/__init__.py` and the following `ci_commands/check.py`:
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
from cikit.ci import run_ci_script
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def command(args):
|
|
107
|
+
return run_ci_script("check", lambda env, status: print(env["PROJECT_ROOT"]), args=args)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
def register(subparsers, name):
|
|
111
|
+
parser = subparsers.add_parser(name, help="Show the project root.")
|
|
112
|
+
parser.set_defaults(func=command)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
The command is then available through the normal CLI:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
uv run cikit check
|
|
119
|
+
uv run cikit --name custom-check check
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
The logical run name identifies run data and artifact metadata. The `--name` and
|
|
123
|
+
`--verbose` options precede the command name. For command registration, discovery,
|
|
124
|
+
overrides and orchestration, see the
|
|
125
|
+
[CI Commands guide](https://cikit-a4de14.gitlab.io/guides/ci_commands.html).
|
|
126
|
+
|
|
127
|
+
## Environment and Providers
|
|
128
|
+
|
|
129
|
+
`cikit.env` resolves configuration and provides a common environment API for commands
|
|
130
|
+
and macros. The active provider is detected automatically. Local Git, GitLab and Azure
|
|
131
|
+
DevOps supply pipeline and revision metadata through the same interface.
|
|
132
|
+
|
|
133
|
+
The [Environment concept](https://cikit-a4de14.gitlab.io/concepts/environment.html)
|
|
134
|
+
explains configuration and the CI lifecycle. The
|
|
135
|
+
[CI Provider Integration guides](https://cikit-a4de14.gitlab.io/guides/providers/index.html)
|
|
136
|
+
cover provider-specific setup and artifact handling.
|
|
137
|
+
|
|
138
|
+
## Project Metadata
|
|
139
|
+
|
|
140
|
+
cikit combines project metadata from `pyproject.toml` with CI and Git information.
|
|
141
|
+
Both static versions and optional PEP 517 dynamic version resolution are supported,
|
|
142
|
+
as well as configurable version parsing and metadata templates.
|
|
143
|
+
|
|
144
|
+
See [Project Metadata](https://cikit-a4de14.gitlab.io/concepts/metadata.html)
|
|
145
|
+
for configuration and dependency requirements.
|
|
146
|
+
|
|
147
|
+
## Macros and Build Workflows
|
|
148
|
+
|
|
149
|
+
The `cikit.macros` package provides reusable Python building blocks for tool integration,
|
|
150
|
+
metrics, artifacts and reports. Built-in and project-specific commands can use the same macros.
|
|
151
|
+
|
|
152
|
+
Examples of independent built-in workflows for projects with the corresponding tools and
|
|
153
|
+
configuration:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
cikit cbuild
|
|
157
|
+
cikit ctest
|
|
158
|
+
cikit platformio
|
|
159
|
+
cikit pybuild
|
|
160
|
+
cikit doxygen
|
|
161
|
+
cikit repomix
|
|
162
|
+
cikit sphinx
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Build reports combine available build and compiler metadata, timings, diagnostics, memory
|
|
166
|
+
usage, downloadable artifacts and logs. Python distributions can be published separately
|
|
167
|
+
with `pypublish`.
|
|
168
|
+
|
|
169
|
+
Explore the [Built-in CI Commands](https://cikit-a4de14.gitlab.io/guides/builtin_commands/index.html),
|
|
170
|
+
[Macros](https://cikit-a4de14.gitlab.io/guides/macros/index.html) and
|
|
171
|
+
[Builds](https://cikit-a4de14.gitlab.io/guides/builds.html) guides for tool requirements,
|
|
172
|
+
command options and Python API examples.
|
|
173
|
+
|
|
174
|
+
## Data and Artifacts
|
|
175
|
+
|
|
176
|
+
`CiRunEnvironment` associates metrics and registered artifacts with a logical run. Run data
|
|
177
|
+
is stored locally and can optionally be synchronized with a remote cikit data service:
|
|
178
|
+
|
|
179
|
+
```python
|
|
180
|
+
env.data_set("build_time", 4.2)
|
|
181
|
+
env.data_update({"warnings": 0, "errors": 0})
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Registered artifacts include files, bundles and folders with optional entry points.
|
|
185
|
+
The persistent artifact registry enables subsequent commands to discover generated outputs
|
|
186
|
+
without hard-coded physical paths. Separate CI jobs must transfer the required artifacts
|
|
187
|
+
and registry explicitly.
|
|
188
|
+
|
|
189
|
+
See [cikit Data](https://cikit-a4de14.gitlab.io/concepts/cikit_data.html) for the data model
|
|
190
|
+
and [Artifacts](https://cikit-a4de14.gitlab.io/concepts/artifacts.html) for the artifact API.
|
|
191
|
+
|
|
192
|
+
## Timeline Charts
|
|
193
|
+
|
|
194
|
+
Historical run data can be queried from the optional remote data service and rendered
|
|
195
|
+
as configurable SVG charts. In an active run environment with remote access configured:
|
|
196
|
+
|
|
197
|
+
```python
|
|
198
|
+
from cikit.macros import chart_timeline
|
|
199
|
+
|
|
200
|
+
chart = chart_timeline(env, keys=["build_time"], title="Build duration", limit=20)
|
|
201
|
+
chart.create(env, "build-duration")
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Registered timeline charts can be included in generated reports. See
|
|
205
|
+
[Timeline Charts](https://cikit-a4de14.gitlab.io/guides/timelines.html) for chart presets,
|
|
206
|
+
configuration and standalone rendering.
|
|
207
|
+
|
|
208
|
+
## Sphinx Integration
|
|
209
|
+
|
|
210
|
+
The Sphinx macro prepares registered reports, badges and other artifacts for a documentation
|
|
211
|
+
build and registers the resulting HTML folder as an artifact.
|
|
212
|
+
|
|
213
|
+
The bundled extensions provide the following RST interfaces:
|
|
214
|
+
|
|
215
|
+
| RST interface | Purpose |
|
|
216
|
+
| --- | --- |
|
|
217
|
+
| `.. cikit-chart::` | Interactive SVG timeline charts |
|
|
218
|
+
| `:cikit-hash:` | Compact and copyable hash values |
|
|
219
|
+
| `.. cikit-log::` | Collapsible command logs |
|
|
220
|
+
| `:cikit-metric:` | Inline values from local run data |
|
|
221
|
+
|
|
222
|
+
Enable all four extensions in the Sphinx configuration:
|
|
223
|
+
|
|
224
|
+
```python
|
|
225
|
+
extensions = ["cikit.sphinx_ext"]
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
See the [Sphinx Build](https://cikit-a4de14.gitlab.io/guides/sphinx_build.html) and
|
|
229
|
+
[Sphinx Extensions](https://cikit-a4de14.gitlab.io/guides/sphinx_extensions.html) guides
|
|
230
|
+
for setup and usage examples.
|
|
231
|
+
|
|
232
|
+
## Console Entry Points
|
|
233
|
+
|
|
234
|
+
| Command | Purpose |
|
|
235
|
+
| --- | --- |
|
|
236
|
+
| `cikit` | Discover and execute CI commands |
|
|
237
|
+
| `cikit-data` | Access cikit data operations |
|
|
238
|
+
| `cikit-env` | Inspect, export, document and prepare the CI environment |
|
|
239
|
+
|
|
240
|
+
Use `--help` on each command for available options.
|
|
241
|
+
|
|
242
|
+
## License
|
|
243
|
+
|
|
244
|
+
GNU Lesser General Public License, version 3 or later (`LGPL-3.0-or-later`).
|
|
245
|
+
|
|
246
|
+
See the [GNU LGPLv3 license text](https://www.gnu.org/licenses/lgpl-3.0.html).
|