-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path__init__.py
More file actions
118 lines (115 loc) · 4.02 KB
/
__init__.py
File metadata and controls
118 lines (115 loc) · 4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
"""Typed Stage 5 release promotion boundaries.
This package starts with release-candidate identity and candidate-bundle
schemas. Promotion side effects still live in the existing transaction engine
until later Stage 5 migration slices move them behind typed services.
"""
from .artifacts import (
BASE_RELEASE_ARTIFACT_PATHS,
ReleaseArtifactSpec,
dedupe_normalized_release_paths,
infer_artifact_identity,
infer_release_artifact_spec,
logical_name_for_release_path,
normalize_release_path,
strip_staging_prefix,
)
from .candidate import (
ReleaseCandidateInputBundle,
)
from .candidate_builders import build_legacy_release_candidate_bundle
from .context import ReleasePromotionContext
from .stage4_reader import (
build_release_candidate_bundle_from_stage4_contract,
read_stage4_release_candidate_bundle,
)
from .contract import (
RELEASE_PROMOTION_CONTRACT_FILENAME,
RELEASE_PROMOTION_CONTRACT_TYPE,
ReleasePromotionContractBuilder,
build_release_promotion_contract,
release_promotion_contract_path,
release_promotion_contract_repo_path,
write_release_promotion_contract,
)
from .published_index import (
PUBLISHED_ARTIFACT_INDEX_FILENAME,
PUBLISHED_ARTIFACT_INDEX_MEDIA_TYPE,
PublishedArtifactIndexRow,
build_published_artifact_index,
published_artifact_index_artifact_ref,
published_artifact_index_from_jsonl,
published_artifact_index_path,
published_artifact_index_repo_path,
published_artifact_index_to_jsonl,
read_published_artifact_index,
write_published_artifact_index,
)
from .results import (
CleanupPromotionResult,
CompletionMarkerPromotionResult,
FullPromotionResult,
GcsPromotionResult,
HuggingFacePromotionResult,
ReleaseManifestPromotionResult,
VersionManifestPromotionResult,
parse_full_promotion_result_json,
)
from .validation import build_release_candidate_shape_report
from .validation import (
DEFAULT_REQUIRED_RELEASE_ARTIFACT_FAMILIES,
RELEASE_VALIDATION_SUBSTAGE_ID,
ReleaseCandidateValidationDependencies,
ReleaseCandidateValidator,
VALIDATION_REPORT_POLICY_PRESENCE_ONLY,
VALIDATION_REPORT_POLICY_REQUIRE_PASSING,
default_release_candidate_validation_dependencies,
)
__all__ = [
"BASE_RELEASE_ARTIFACT_PATHS",
"DEFAULT_REQUIRED_RELEASE_ARTIFACT_FAMILIES",
"RELEASE_VALIDATION_SUBSTAGE_ID",
"RELEASE_PROMOTION_CONTRACT_FILENAME",
"RELEASE_PROMOTION_CONTRACT_TYPE",
"PUBLISHED_ARTIFACT_INDEX_FILENAME",
"PUBLISHED_ARTIFACT_INDEX_MEDIA_TYPE",
"CleanupPromotionResult",
"CompletionMarkerPromotionResult",
"FullPromotionResult",
"GcsPromotionResult",
"HuggingFacePromotionResult",
"PublishedArtifactIndexRow",
"ReleaseArtifactSpec",
"ReleaseCandidateInputBundle",
"ReleasePromotionContractBuilder",
"ReleasePromotionContext",
"ReleaseCandidateValidationDependencies",
"ReleaseCandidateValidator",
"ReleaseManifestPromotionResult",
"VersionManifestPromotionResult",
"VALIDATION_REPORT_POLICY_PRESENCE_ONLY",
"VALIDATION_REPORT_POLICY_REQUIRE_PASSING",
"build_legacy_release_candidate_bundle",
"build_published_artifact_index",
"build_release_promotion_contract",
"build_release_candidate_bundle_from_stage4_contract",
"build_release_candidate_shape_report",
"default_release_candidate_validation_dependencies",
"dedupe_normalized_release_paths",
"infer_artifact_identity",
"infer_release_artifact_spec",
"logical_name_for_release_path",
"normalize_release_path",
"parse_full_promotion_result_json",
"published_artifact_index_artifact_ref",
"published_artifact_index_from_jsonl",
"published_artifact_index_path",
"published_artifact_index_repo_path",
"published_artifact_index_to_jsonl",
"release_promotion_contract_path",
"release_promotion_contract_repo_path",
"read_published_artifact_index",
"read_stage4_release_candidate_bundle",
"strip_staging_prefix",
"write_published_artifact_index",
"write_release_promotion_contract",
]