|
37 | 37 | { |
38 | 38 | "scope": LifecycleScopeType.BUILD, |
39 | 39 | "linkage": SoftwareDependencyLinkType.TOOL, |
| 40 | + "swap": True, |
40 | 41 | }, |
41 | 42 | ), |
42 | 43 | Spdx2_RelationshipType.BUILD_TOOL_OF: ( |
43 | 44 | SoftwareDependencyRelationship, |
44 | 45 | RelationshipType.DEPENDS_ON, |
45 | | - {"scope": LifecycleScopeType.BUILD, "linkage": SoftwareDependencyLinkType.TOOL}, |
| 46 | + {"scope": LifecycleScopeType.BUILD, "linkage": SoftwareDependencyLinkType.TOOL, "swap": True}, |
46 | 47 | ), |
47 | 48 | Spdx2_RelationshipType.CONTAINED_BY: (Relationship, RelationshipType.CONTAINS, {"swap": True}), |
48 | 49 | Spdx2_RelationshipType.CONTAINS: ( |
|
55 | 56 | Spdx2_RelationshipType.DEPENDENCY_MANIFEST_OF: ( |
56 | 57 | SoftwareDependencyRelationship, |
57 | 58 | RelationshipType.DEPENDS_ON, |
58 | | - {}, |
| 59 | + {"swap": True}, |
59 | 60 | ), # "expect purpose has been set to manifest" |
60 | 61 | Spdx2_RelationshipType.DEPENDENCY_OF: ( |
61 | 62 | SoftwareDependencyRelationship, |
|
74 | 75 | Spdx2_RelationshipType.DEV_DEPENDENCY_OF: ( |
75 | 76 | SoftwareDependencyRelationship, |
76 | 77 | RelationshipType.DEPENDS_ON, |
77 | | - {"scope": LifecycleScopeType.DEVELOPMENT}, |
| 78 | + {"scope": LifecycleScopeType.DEVELOPMENT, "swap": True}, |
78 | 79 | ), |
79 | 80 | Spdx2_RelationshipType.DEV_TOOL_OF: ( |
80 | 81 | SoftwareDependencyRelationship, |
81 | 82 | RelationshipType.DEPENDS_ON, |
82 | | - {"scope": LifecycleScopeType.DEVELOPMENT, "linkage": SoftwareDependencyLinkType.TOOL}, |
| 83 | + {"scope": LifecycleScopeType.DEVELOPMENT, "linkage": SoftwareDependencyLinkType.TOOL, "swap": True}, |
83 | 84 | ), |
84 | 85 | Spdx2_RelationshipType.DISTRIBUTION_ARTIFACT: (None, None, {}), # not defined yet, purpose? |
85 | 86 | Spdx2_RelationshipType.DOCUMENTATION_OF: (Relationship, RelationshipType.DOCUMENTATION, {}), |
|
105 | 106 | Spdx2_RelationshipType.OPTIONAL_DEPENDENCY_OF: ( |
106 | 107 | SoftwareDependencyRelationship, |
107 | 108 | RelationshipType.DEPENDS_ON, |
108 | | - {"conditionality": DependencyConditionalityType.OPTIONAL}, |
| 109 | + {"conditionality": DependencyConditionalityType.OPTIONAL, "swap": True}, |
109 | 110 | ), |
110 | 111 | Spdx2_RelationshipType.OTHER: (Relationship, RelationshipType.OTHER, {}), |
111 | | - Spdx2_RelationshipType.PACKAGE_OF: (SoftwareDependencyRelationship, RelationshipType.DEPENDS_ON, {}), |
| 112 | + Spdx2_RelationshipType.PACKAGE_OF: (SoftwareDependencyRelationship, RelationshipType.DEPENDS_ON, "swap": True), |
112 | 113 | Spdx2_RelationshipType.PATCH_APPLIED: (Relationship, RelationshipType.PATCH, {"swap": True}), |
113 | 114 | Spdx2_RelationshipType.PATCH_FOR: (Relationship, RelationshipType.PATCH, {}), |
114 | 115 | Spdx2_RelationshipType.PREREQUISITE_FOR: ( |
|
119 | 120 | Spdx2_RelationshipType.PROVIDED_DEPENDENCY_OF: ( |
120 | 121 | SoftwareDependencyRelationship, |
121 | 122 | RelationshipType.DEPENDS_ON, |
122 | | - {"scope": LifecycleScopeType.BUILD, "conditionality": DependencyConditionalityType.PROVIDED}, |
| 123 | + {"scope": LifecycleScopeType.BUILD, "conditionality": DependencyConditionalityType.PROVIDED, "swap": True}, |
123 | 124 | ), |
124 | 125 | Spdx2_RelationshipType.RUNTIME_DEPENDENCY_OF: ( |
125 | 126 | SoftwareDependencyRelationship, |
126 | 127 | RelationshipType.DEPENDS_ON, |
127 | | - {"scope": LifecycleScopeType.RUNTIME}, |
| 128 | + {"scope": LifecycleScopeType.RUNTIME, "swap": True}, |
128 | 129 | ), |
129 | 130 | Spdx2_RelationshipType.STATIC_LINK: ( |
130 | 131 | SoftwareDependencyRelationship, |
131 | 132 | RelationshipType.DEPENDS_ON, |
132 | | - {"linkage": SoftwareDependencyLinkType.STATIC}, |
| 133 | + {"linkage": SoftwareDependencyLinkType.STATIC, "swap": True}, |
133 | 134 | ), |
134 | 135 | Spdx2_RelationshipType.TEST_CASE_OF: (Relationship, RelationshipType.TEST_CASE, {}), |
135 | 136 | Spdx2_RelationshipType.TEST_DEPENDENCY_OF: ( |
136 | 137 | SoftwareDependencyRelationship, |
137 | 138 | RelationshipType.DEPENDS_ON, |
138 | | - {"scope": LifecycleScopeType.TEST}, |
| 139 | + {"scope": LifecycleScopeType.TEST, "swap": True}, |
139 | 140 | ), |
140 | 141 | Spdx2_RelationshipType.TEST_OF: (Relationship, RelationshipType.TEST, {}), |
141 | 142 | Spdx2_RelationshipType.TEST_TOOL_OF: ( |
142 | 143 | SoftwareDependencyRelationship, |
143 | 144 | RelationshipType.DEPENDS_ON, |
144 | | - {"scope": LifecycleScopeType.TEST, "linkage": SoftwareDependencyLinkType.TOOL}, |
| 145 | + {"scope": LifecycleScopeType.TEST, "linkage": SoftwareDependencyLinkType.TOOL, "swap": True}, |
145 | 146 | ), |
146 | 147 | Spdx2_RelationshipType.VARIANT_OF: (Relationship, RelationshipType.VARIANT, {}), |
147 | 148 | Spdx2_RelationshipType.REQUIREMENT_DESCRIPTION_FOR: (Relationship, RelationshipType.REQUIREMENT_FOR, {}), |
|
0 commit comments