hegemony-steps-git 0.59.0__py3-none-any.whl
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.
- hegemony_steps_git/__init__.py +31 -0
- hegemony_steps_git/commit.py +1019 -0
- hegemony_steps_git/docs/git.commit.md +116 -0
- hegemony_steps_git-0.59.0.dist-info/METADATA +45 -0
- hegemony_steps_git-0.59.0.dist-info/RECORD +8 -0
- hegemony_steps_git-0.59.0.dist-info/WHEEL +4 -0
- hegemony_steps_git-0.59.0.dist-info/entry_points.txt +3 -0
- hegemony_steps_git-0.59.0.dist-info/licenses/LICENSE-AGPL-3.0-or-later.txt +235 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Rexonix s.r.o.
|
|
2
|
+
# SPDX-FileContributor: Jakub Trávník <jakub.travnik@gmail.com>
|
|
3
|
+
#
|
|
4
|
+
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
5
|
+
|
|
6
|
+
"""Git step handlers for Hegemony: the ``git.`` namespace.
|
|
7
|
+
|
|
8
|
+
``git.commit`` commits an earlier step's evidence to a Git repository, only
|
|
9
|
+
when it changed. It runs git in a container through ``container.run``'s
|
|
10
|
+
runner, so this wheel depends on ``hegemony-steps-container``.
|
|
11
|
+
|
|
12
|
+
Registers under the ``hegemony.step_handlers`` entry-point group; the entry
|
|
13
|
+
point name is the claimed handler-id namespace prefix (``git``).
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
|
|
18
|
+
from hegemony_step_sdk import BaseHandler, StepHandlerRegistry
|
|
19
|
+
|
|
20
|
+
from .commit import GitCommitHandler
|
|
21
|
+
|
|
22
|
+
ALL_HANDLERS: tuple[type[BaseHandler], ...] = (GitCommitHandler,)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def register(registry: StepHandlerRegistry) -> None:
|
|
26
|
+
"""Entry point: register this wheel's handlers with the host registry."""
|
|
27
|
+
for handler_class in ALL_HANDLERS:
|
|
28
|
+
registry.register_handler_type(handler_class)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
__all__ = ["ALL_HANDLERS", "GitCommitHandler", "register"]
|