csspin-tooling 1.0.0rc1__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.
- csspin_tooling/__init__.py +18 -0
- csspin_tooling/sbomasm.py +216 -0
- csspin_tooling/sbomasm_schema.yaml +35 -0
- csspin_tooling-1.0.0rc1.dist-info/METADATA +81 -0
- csspin_tooling-1.0.0rc1.dist-info/RECORD +8 -0
- csspin_tooling-1.0.0rc1.dist-info/WHEEL +5 -0
- csspin_tooling-1.0.0rc1.dist-info/licenses/LICENSE +176 -0
- csspin_tooling-1.0.0rc1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2026 CONTACT Software GmbH
|
|
4
|
+
# https://www.contact-software.com/
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
|
|
18
|
+
# File needed for _utils.py to be imported.
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2026 CONTACT Software GmbH
|
|
4
|
+
# https://www.contact-software.com/
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
|
|
18
|
+
"""Module implementing the SBOM assembly and enrichment plugin for spin."""
|
|
19
|
+
|
|
20
|
+
from __future__ import annotations
|
|
21
|
+
|
|
22
|
+
import email.utils
|
|
23
|
+
import sys
|
|
24
|
+
from tempfile import TemporaryDirectory
|
|
25
|
+
|
|
26
|
+
from csspin import (
|
|
27
|
+
backtick,
|
|
28
|
+
config,
|
|
29
|
+
die,
|
|
30
|
+
download,
|
|
31
|
+
exists,
|
|
32
|
+
extract,
|
|
33
|
+
group,
|
|
34
|
+
info,
|
|
35
|
+
)
|
|
36
|
+
from csspin.tree import ConfigTree
|
|
37
|
+
from csspin_python.python import get_project_metadata
|
|
38
|
+
from path import Path
|
|
39
|
+
|
|
40
|
+
defaults = config(
|
|
41
|
+
version="2.0.3",
|
|
42
|
+
install_dir="{spin.data}/sbomasm",
|
|
43
|
+
use=None,
|
|
44
|
+
output_file="{spin.project_name}.cdx.json",
|
|
45
|
+
format=config(spec="cyclonedx", version="1.6"),
|
|
46
|
+
requires=config(spin=["csspin_python.python"]),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def provision(cfg: ConfigTree) -> None:
|
|
51
|
+
"""Provision the plugin"""
|
|
52
|
+
if not cfg.sbomasm.use:
|
|
53
|
+
_provision_sbomasm(cfg)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@group()
|
|
57
|
+
def sbomasm(cfg: ConfigTree) -> None: # pylint: disable=unused-argument
|
|
58
|
+
"""sbomasm-based SBOM assembly and enrichment."""
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@sbomasm.task(when="sbom:assemble")
|
|
62
|
+
def assemble(cfg: ConfigTree) -> None:
|
|
63
|
+
"""Merge the top-level SBOMs into a single one (no enrichment)."""
|
|
64
|
+
_assemble_sbom(cfg)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
@sbomasm.task(when="sbom:enrich")
|
|
68
|
+
def enrich(cfg: ConfigTree) -> None:
|
|
69
|
+
"""Enrich the assembled SBOM with project metadata."""
|
|
70
|
+
_enrich_sbom(cfg)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
# -- Internals -----------------------------------------------------------------
|
|
74
|
+
def _provision_sbomasm(cfg: ConfigTree) -> None:
|
|
75
|
+
"""Downloads sbomasm"""
|
|
76
|
+
version = cfg.sbomasm.version
|
|
77
|
+
sbomasm_install_dir = cfg.sbomasm.install_dir / version
|
|
78
|
+
|
|
79
|
+
if exists(sbomasm_install_dir / f"sbomasm{cfg.platform.exe}"):
|
|
80
|
+
info(f"Using cached sbomasm ({sbomasm_install_dir})")
|
|
81
|
+
return
|
|
82
|
+
|
|
83
|
+
info("Installing sbomasm")
|
|
84
|
+
archive = (
|
|
85
|
+
f"sbomasm_{version}_Windows_x86_64.tar.gz"
|
|
86
|
+
if sys.platform == "win32"
|
|
87
|
+
else f"sbomasm_{version}_Linux_x86_64.tar.gz"
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
with TemporaryDirectory() as tmp_dir:
|
|
91
|
+
archive_path = Path(tmp_dir) / archive
|
|
92
|
+
download(
|
|
93
|
+
f"https://github.com/interlynk-io/sbomasm/releases/download/v{version}/{archive}",
|
|
94
|
+
archive_path,
|
|
95
|
+
)
|
|
96
|
+
extract(archive_path, sbomasm_install_dir, f"sbomasm{cfg.platform.exe}")
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def _sbomasm_binary(cfg: ConfigTree) -> Path:
|
|
100
|
+
"""Return the path to the sbomasm binary to use."""
|
|
101
|
+
if cfg.sbomasm.use:
|
|
102
|
+
return Path(cfg.sbomasm.use)
|
|
103
|
+
return cfg.sbomasm.install_dir / cfg.sbomasm.version / f"sbomasm{cfg.platform.exe}"
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def _assemble_sbom(cfg: ConfigTree) -> None:
|
|
107
|
+
"""Merge SBOMs in the working directory into ``cfg.sbomasm.output_file``.
|
|
108
|
+
|
|
109
|
+
With a single input, the file is copied through unchanged — ``sbomasm
|
|
110
|
+
assemble`` rejects single-input invocations. Enrichment is handled
|
|
111
|
+
separately by :func:`_enrich_sbom`.
|
|
112
|
+
"""
|
|
113
|
+
output = Path(cfg.sbomasm.output_file)
|
|
114
|
+
sboms = {path for path in Path().glob("*.cdx.json") if output != path}
|
|
115
|
+
info(f"Found {len(sboms)} SBOM(s) to assemble: {[str(p) for p in sboms]}")
|
|
116
|
+
|
|
117
|
+
if not sboms:
|
|
118
|
+
die("No SBOMs found to assemble.")
|
|
119
|
+
return
|
|
120
|
+
|
|
121
|
+
if len(sboms) == 1:
|
|
122
|
+
single_sbom = sboms.pop()
|
|
123
|
+
output.write_text(single_sbom.read_text(encoding="utf-8"), encoding="utf-8")
|
|
124
|
+
info(f"Single SBOM {single_sbom} copied to {output}")
|
|
125
|
+
return
|
|
126
|
+
|
|
127
|
+
metadata = get_project_metadata(cfg.spin.project_root, cfg.python.index_url)
|
|
128
|
+
args = [
|
|
129
|
+
str(_sbomasm_binary(cfg)),
|
|
130
|
+
"assemble",
|
|
131
|
+
"-m",
|
|
132
|
+
"-n",
|
|
133
|
+
metadata.get("name", "unknown"),
|
|
134
|
+
"-v",
|
|
135
|
+
metadata.get("version", "0.0.0"),
|
|
136
|
+
"-t",
|
|
137
|
+
"application",
|
|
138
|
+
"-e",
|
|
139
|
+
cfg.sbomasm.format.version,
|
|
140
|
+
]
|
|
141
|
+
if cfg.sbomasm.format.spec.lower() == "spdx":
|
|
142
|
+
args.append("-s")
|
|
143
|
+
args.extend(str(p) for p in sboms)
|
|
144
|
+
|
|
145
|
+
sbom_text = backtick(*args)
|
|
146
|
+
output.write_text(sbom_text, encoding="utf-8")
|
|
147
|
+
info(f"Merged {len(sboms)} SBOMs into {output}")
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
def _enrich_sbom(cfg: ConfigTree) -> None:
|
|
151
|
+
"""Enrich ``cfg.sbomasm.output_file`` in place via ``sbomasm edit``."""
|
|
152
|
+
output = Path(cfg.sbomasm.output_file)
|
|
153
|
+
if not exists(output):
|
|
154
|
+
die(f"Cannot enrich {output}: file does not exist.")
|
|
155
|
+
|
|
156
|
+
metadata = get_project_metadata(cfg.spin.project_root, cfg.python.index_url)
|
|
157
|
+
|
|
158
|
+
if not (name := metadata.get("name")):
|
|
159
|
+
die("Project metadata is missing 'name'.")
|
|
160
|
+
if not (version := metadata.get("version")):
|
|
161
|
+
die("Project metadata is missing 'version'.")
|
|
162
|
+
if not (license_id := metadata.get("license")):
|
|
163
|
+
die("Project metadata is missing 'license'.")
|
|
164
|
+
|
|
165
|
+
authors = _parse_authors(
|
|
166
|
+
author_name=metadata.get("author", "").strip(),
|
|
167
|
+
author_email=metadata.get("author_email", "").strip(),
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
args = [
|
|
171
|
+
str(_sbomasm_binary(cfg)),
|
|
172
|
+
"edit",
|
|
173
|
+
"--subject",
|
|
174
|
+
"primary-component",
|
|
175
|
+
"--name",
|
|
176
|
+
name,
|
|
177
|
+
"--version",
|
|
178
|
+
version,
|
|
179
|
+
"--author",
|
|
180
|
+
authors,
|
|
181
|
+
"--license",
|
|
182
|
+
license_id,
|
|
183
|
+
str(output),
|
|
184
|
+
]
|
|
185
|
+
|
|
186
|
+
info(f"Enriching SBOM {output}")
|
|
187
|
+
sbom_text = backtick(*args)
|
|
188
|
+
output.write_text(sbom_text, encoding="utf-8")
|
|
189
|
+
info(f"Enriched SBOM written to {output}")
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
def _parse_authors(author_name: str, author_email: str) -> str:
|
|
193
|
+
"""
|
|
194
|
+
Parse RFC 2822 Author-email metadata and return a comma-separated string in
|
|
195
|
+
sbomasm-acceptable format ('name (email)' or multiple authors,
|
|
196
|
+
comma-separated).
|
|
197
|
+
"""
|
|
198
|
+
if not author_email:
|
|
199
|
+
die("Project metadata has no Author-email field.")
|
|
200
|
+
return ""
|
|
201
|
+
|
|
202
|
+
entries = email.utils.getaddresses([author_email])
|
|
203
|
+
|
|
204
|
+
# setup.py case: single bare address paired with a separate Author field
|
|
205
|
+
if len(entries) == 1 and not entries[0][0] and author_name:
|
|
206
|
+
entries = [(author_name, entries[0][1])]
|
|
207
|
+
|
|
208
|
+
for name, addr in entries:
|
|
209
|
+
if not name:
|
|
210
|
+
die(f"Author entry '{addr}' has no name; all authors require a name.")
|
|
211
|
+
return ""
|
|
212
|
+
if not addr:
|
|
213
|
+
die(f"Author entry '{name}' has no email; all authors require an email.")
|
|
214
|
+
return ""
|
|
215
|
+
|
|
216
|
+
return ", ".join(f"{name} ({addr})" for name, addr in entries)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# -*- mode: yaml; coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Schema for the sbomasm plugin for spin
|
|
4
|
+
|
|
5
|
+
sbomasm:
|
|
6
|
+
type: object
|
|
7
|
+
help: |
|
|
8
|
+
The sbomasm plugin wraps around the sbomasm tool for for assembling and
|
|
9
|
+
enriching SBOMs.
|
|
10
|
+
properties:
|
|
11
|
+
version:
|
|
12
|
+
type: str
|
|
13
|
+
help: Version of sbomasm to use
|
|
14
|
+
install_dir:
|
|
15
|
+
type: path
|
|
16
|
+
help: The installation directory to install sbomasm versions into
|
|
17
|
+
use:
|
|
18
|
+
type: path
|
|
19
|
+
help: |
|
|
20
|
+
Can be used to specify a custom sbomasm binary to use instead of the one
|
|
21
|
+
installed by the plugin
|
|
22
|
+
output_file:
|
|
23
|
+
type: path
|
|
24
|
+
help: The file path to write the generated SBOM to
|
|
25
|
+
format:
|
|
26
|
+
type: object
|
|
27
|
+
help: Configuration regarding the output format of the generated SBOM
|
|
28
|
+
properties:
|
|
29
|
+
name:
|
|
30
|
+
type: str
|
|
31
|
+
help: |
|
|
32
|
+
The name of the output format to use
|
|
33
|
+
version:
|
|
34
|
+
type: str
|
|
35
|
+
help: The version of the output format to use
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: csspin-tooling
|
|
3
|
+
Version: 1.0.0rc1
|
|
4
|
+
Summary: Plugin-package for csspin providing common tooling for csspin-based projects
|
|
5
|
+
Author-email: CONTACT Software GmbH <info@contact-software.com>
|
|
6
|
+
Maintainer-email: Benjamin Thomas Schwertfeger <benjaminthomas.schwertfeger@contact-software.com>, Fabian Hafer <fabian.hafer@contact-software.com>, Waleri Enns <waleri.enns@contact-software.com>
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
Project-URL: CONTACT Software GmbH, https://contact-software.com
|
|
9
|
+
Project-URL: Documentation, https://csspin-tooling.readthedocs.io/en/stable/
|
|
10
|
+
Project-URL: Issue Tracker, https://github.com/cslab/csspin-tooling/issues
|
|
11
|
+
Project-URL: Release Notes, https://csspin-tooling.readthedocs.io/en/stable/relnotes.html
|
|
12
|
+
Project-URL: Repository, https://github.com/cslab/csspin-tooling
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Topic :: Software Development
|
|
24
|
+
Requires-Python: >=3.10
|
|
25
|
+
Description-Content-Type: text/x-rst
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: csspin-python
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
``csspin-tooling`` is maintained by `CONTACT Software GmbH`_ and provides
|
|
31
|
+
utility plugins and tasks to be used with the `csspin`_ task runner.
|
|
32
|
+
|
|
33
|
+
The following plugins are available:
|
|
34
|
+
|
|
35
|
+
- ``csspin_tooling.sbomasm``: Assembles multiple CycloneDX SBOM files into a
|
|
36
|
+
single enriched top-level SBOM using the `sbomasm`_ tool.
|
|
37
|
+
|
|
38
|
+
Prerequisites
|
|
39
|
+
-------------
|
|
40
|
+
|
|
41
|
+
`csspin`_ must be installed before using this package:
|
|
42
|
+
|
|
43
|
+
.. code-block:: console
|
|
44
|
+
|
|
45
|
+
python -m pip install csspin
|
|
46
|
+
|
|
47
|
+
Using csspin-tooling
|
|
48
|
+
--------------------
|
|
49
|
+
|
|
50
|
+
Add the package and the desired plugins to your project's ``spinfile.yaml``:
|
|
51
|
+
|
|
52
|
+
.. code-block:: yaml
|
|
53
|
+
|
|
54
|
+
spin:
|
|
55
|
+
project_name: my_project
|
|
56
|
+
|
|
57
|
+
plugin_packages:
|
|
58
|
+
- csspin-python
|
|
59
|
+
- csspin-tooling
|
|
60
|
+
|
|
61
|
+
plugins:
|
|
62
|
+
- csspin_tooling.sbomasm
|
|
63
|
+
|
|
64
|
+
python:
|
|
65
|
+
version: "3.11.9"
|
|
66
|
+
|
|
67
|
+
Provision the project to download sbomasm and install all dependencies:
|
|
68
|
+
|
|
69
|
+
.. code-block:: console
|
|
70
|
+
|
|
71
|
+
spin provision
|
|
72
|
+
|
|
73
|
+
Assemble a top-level SBOM from all ``*.cdx.json`` files in the project root:
|
|
74
|
+
|
|
75
|
+
.. code-block:: console
|
|
76
|
+
|
|
77
|
+
spin sbom --help
|
|
78
|
+
|
|
79
|
+
.. _`CONTACT Software GmbH`: https://contact-software.com
|
|
80
|
+
.. _`csspin`: https://pypi.org/project/csspin
|
|
81
|
+
.. _`sbomasm`: https://github.com/interlynk-io/sbomasm
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
csspin_tooling/__init__.py,sha256=_aend_LjiCh_wXpo6X9YU9_BFxqx9I8JpSJA2GLrq6k,696
|
|
2
|
+
csspin_tooling/sbomasm.py,sha256=xd4bwqoS1fzG1iEI7L0IVIZFxhAM6aLyfPBtGs11TmU,6719
|
|
3
|
+
csspin_tooling/sbomasm_schema.yaml,sha256=uM70fuLToFZ85F0YVcTiHhWjoTzggI6qLILL8wjCFFA,961
|
|
4
|
+
csspin_tooling-1.0.0rc1.dist-info/licenses/LICENSE,sha256=4MAecetnRTQw5DlHtiikDSzKWO1xVLwzM5_DsPMYlnE,10172
|
|
5
|
+
csspin_tooling-1.0.0rc1.dist-info/METADATA,sha256=GDqTr6Zwht2WkC0jJrbx3CbKCtfR4kcnEqay1TAekHk,2669
|
|
6
|
+
csspin_tooling-1.0.0rc1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
7
|
+
csspin_tooling-1.0.0rc1.dist-info/top_level.txt,sha256=84uiKmEci5TW1HewSfGKdOvTX5-BP6ElnP3W9p7VIbE,15
|
|
8
|
+
csspin_tooling-1.0.0rc1.dist-info/RECORD,,
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
csspin_tooling
|