continuous-delivery-scripts 4.7.0__tar.gz → 4.8.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.
- {continuous_delivery_scripts-4.7.0/continuous_delivery_scripts.egg-info → continuous_delivery_scripts-4.8.0}/PKG-INFO +4 -3
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/README.md +3 -2
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/_version.py +3 -3
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/golang.py +273 -21
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/tag_and_release.py +14 -4
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/language_specifics_base.py +4 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0/continuous_delivery_scripts.egg-info}/PKG-INFO +4 -3
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/GitPython.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/Jinja2.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/Mako.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/Markdown.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/MarkupSafe.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/PyYAML.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/Pygments.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/SecretStorage.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/beartype.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/boolean.py.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/boto3.spdx +4 -4
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/botocore.spdx +4 -4
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/bracex.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/certifi.spdx +4 -4
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/cffi.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/charset-normalizer.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/click.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/continuous-delivery-scripts.spdx +81 -81
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/cryptography.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/detect-secrets.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/docutils.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/gibberish-detector.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/gitdb.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/id.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/idna.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/jaraco.classes.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/jaraco.context.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/jaraco.functools.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/jeepney.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/jellyfish.spdx +4 -4
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/jmespath.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/keyring.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/license-expression.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/licenseheaders.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/markdown-it-py.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/mdurl.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/more-itertools.spdx +4 -4
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/nh3.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/packaging.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/pdoc3.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/ply.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/pyautoversion.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/pycparser.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/pyparsing.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/python-dateutil.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/python-dotenv.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/rdflib.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/readme_renderer.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/regex.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/requests-toolbelt.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/requests.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/rfc3986.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/rich.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/s3transfer.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/semantic-version.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/semver.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/setuptools.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/six.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/smmap.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/spdx-tools.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/toml.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/towncrier.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/twine.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/uritools.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/urllib3.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/wcmatch.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/xmltodict.spdx +1 -1
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/LICENSE +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/MANIFEST.in +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/__init__.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/assert_news.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/check_licence_compliance.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/check_project_config.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/create_news_file.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/describe_licence_obligations.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/detect_secrets.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/generate_docs.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/generate_news.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/get_config.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/get_version.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/language_specifics.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/license_files.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/BASIC.MD +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/CI.MD +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/GITHUB_ACTIONS.MD +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/GOLAND.MD +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/NOOP.MD +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/PYTHON.MD +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/__init__.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/basic.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/ci.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/docker.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/github_actions.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/noop.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/plugins/python.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/report_third_party_ip.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/__init__.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/data/licence_assessment.toml +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/licence_assessment.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/project_licensing.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/scancode_licence_db.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/spdx_dependency.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/spdx_document.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/spdx_file.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/spdx_helpers.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/spdx_package.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/spdx_project.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/spdx_summary.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/templates/licence_obligations_report.txt.jinja2 +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/templates/third_party_IP_report.csv.jinja2 +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/templates/third_party_IP_report.html.jinja2 +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/spdx_report/templates/third_party_IP_report.txt.jinja2 +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/sync_project_licence.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/templates/documentation_landing.html.jinja2 +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/templates/documentation_page.html.jinja2 +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/templates/llms-full.txt.jinja2 +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/templates/llms.txt.jinja2 +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/templates/robots.txt.jinja2 +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/update_secrets_registry.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/__init__.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/aws_helpers.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/changelog.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/configuration.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/definitions.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/documentation_discovery.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/documentation_templates.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/filesystem_helpers.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/git_helpers.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/github_helpers.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/hash_helpers.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/logging.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/news_file.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/noop/__init__.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/noop/package_helpers.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/package_helpers.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/project_config_schema.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/python/__init__.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/python/package_helpers.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/python/python_helpers.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/string_helpers.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/third_party_licences.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts/utils/versioning.py +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts.egg-info/SOURCES.txt +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts.egg-info/dependency_links.txt +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts.egg-info/entry_points.txt +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts.egg-info/requires.txt +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/continuous_delivery_scripts.egg-info/top_level.txt +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/pyproject.toml +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/setup.cfg +0 -0
- {continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: continuous-delivery-scripts
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.8.0
|
|
4
4
|
Summary: Git-based CI/CD tools for releases, changelogs, SPDX SBOMs and licence reporting
|
|
5
5
|
Home-page: https://github.com/ARMmbed/continuous-delivery-scripts
|
|
6
6
|
Author: Arm
|
|
@@ -96,8 +96,9 @@ including paths, versioning rules and the selected `PROGRAMMING_LANGUAGE`,
|
|
|
96
96
|
regardless of the project's language or CI system. The selected plugin then
|
|
97
97
|
uses appropriate ecosystem tools: for example, GoReleaser for Go releases or
|
|
98
98
|
wheel and Twine for Python packages. Consult the
|
|
99
|
-
[plugin guides](./
|
|
100
|
-
requirements
|
|
99
|
+
[plugin guides](./guides/plugin-guides.md) for language-specific
|
|
100
|
+
requirements, including the [Go plugin guides](./guides/plugin-golang.md);
|
|
101
|
+
native build manifests and credentials may still be needed. See
|
|
101
102
|
the [project configuration guide](./DEVELOPMENT.md#project-configuration) for
|
|
102
103
|
the `pyproject.toml` fields required by each workflow.
|
|
103
104
|
|
|
@@ -35,8 +35,9 @@ including paths, versioning rules and the selected `PROGRAMMING_LANGUAGE`,
|
|
|
35
35
|
regardless of the project's language or CI system. The selected plugin then
|
|
36
36
|
uses appropriate ecosystem tools: for example, GoReleaser for Go releases or
|
|
37
37
|
wheel and Twine for Python packages. Consult the
|
|
38
|
-
[plugin guides](./
|
|
39
|
-
requirements
|
|
38
|
+
[plugin guides](./guides/plugin-guides.md) for language-specific
|
|
39
|
+
requirements, including the [Go plugin guides](./guides/plugin-golang.md);
|
|
40
|
+
native build manifests and credentials may still be needed. See
|
|
40
41
|
the [project configuration guide](./DEVELOPMENT.md#project-configuration) for
|
|
41
42
|
the `pyproject.toml` fields required by each workflow.
|
|
42
43
|
|
|
@@ -11,8 +11,8 @@ References
|
|
|
11
11
|
This file is autogenerated, do not modify by hand.
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
__version__ = "4.
|
|
15
|
-
COMMIT = "
|
|
14
|
+
__version__ = "4.8.0"
|
|
15
|
+
COMMIT = "e6ad13245b70ec03ef549214fe3490f33538b555"
|
|
16
16
|
MAJOR = 4
|
|
17
|
-
MINOR =
|
|
17
|
+
MINOR = 8
|
|
18
18
|
PATCH = 0
|
|
@@ -12,9 +12,11 @@ import os
|
|
|
12
12
|
import shutil
|
|
13
13
|
from contextlib import contextmanager
|
|
14
14
|
from pathlib import Path
|
|
15
|
-
from subprocess import check_call, check_output, run, CalledProcessError
|
|
15
|
+
from subprocess import check_call, check_output, run, CalledProcessError, STDOUT
|
|
16
16
|
from tempfile import TemporaryDirectory
|
|
17
|
-
from typing import Optional, List, Dict, MutableMapping, Iterator
|
|
17
|
+
from typing import Optional, List, Dict, MutableMapping, Iterator, Set
|
|
18
|
+
|
|
19
|
+
import semver
|
|
18
20
|
|
|
19
21
|
from continuous_delivery_scripts.spdx_report.spdx_project import SpdxProject
|
|
20
22
|
from continuous_delivery_scripts.utils.configuration import (
|
|
@@ -41,6 +43,9 @@ logger = logging.getLogger(__name__)
|
|
|
41
43
|
|
|
42
44
|
SRC_DIR = Path(str(configuration.get_value(ConfigurationVariable.SOURCE_DIR)))
|
|
43
45
|
ROOT_DIR = Path(str(configuration.get_value(ConfigurationVariable.PROJECT_ROOT)))
|
|
46
|
+
GO_MOD_FILENAME = "go.mod"
|
|
47
|
+
GO_WORK_FILENAME = "go.work"
|
|
48
|
+
GO_ALL_PACKAGES_PATTERN = "./..."
|
|
44
49
|
ENVVAR_GORELEASER_GIT_TOKEN = "GITHUB_TOKEN"
|
|
45
50
|
ENVVAR_GORELEASER_CUSTOMISED_TAG = "GORELEASER_CURRENT_TAG"
|
|
46
51
|
ENVVAR_GO_MOD = "GO111MODULE"
|
|
@@ -52,6 +57,241 @@ GO_WORK_OFF_VALUE = "off"
|
|
|
52
57
|
GO_LICENSES_TEMPLATE = "{{range .}}{{.Name}}\t{{.Version}}\t{{.LicenseURL}}\t{{.LicenseName}}\n{{end}}"
|
|
53
58
|
LICENCE_FILE_PREFIXES = ("LICENSE", "LICENCE", "COPYING")
|
|
54
59
|
|
|
60
|
+
# JSON fields returned by `go mod edit -json` and `go work edit -json`.
|
|
61
|
+
# https://go.dev/ref/mod#go-mod-edit
|
|
62
|
+
# https://go.dev/ref/mod#go-work-edit
|
|
63
|
+
GO_JSON_MODULE = "Module"
|
|
64
|
+
GO_JSON_REQUIRE = "Require"
|
|
65
|
+
GO_JSON_REPLACE = "Replace"
|
|
66
|
+
GO_JSON_OLD = "Old"
|
|
67
|
+
GO_JSON_NEW = "New"
|
|
68
|
+
GO_JSON_PATH = "Path"
|
|
69
|
+
GO_JSON_VERSION = "Version"
|
|
70
|
+
GO_JSON_USE = "Use"
|
|
71
|
+
GO_JSON_DISK_PATH = "DiskPath"
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def _go_edit_command(file: Path, subcommand: str, flags: List[str]) -> List[str]:
|
|
75
|
+
"""Target an explicit go.mod or go.work, independent of the current directory."""
|
|
76
|
+
return ["go", subcommand, "edit", *flags, str(file)]
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def _read_go_metadata_with_edit_command(file: Path, subcommand: str) -> dict:
|
|
80
|
+
"""Use Go's parser to inspect directives without resolving unpublished modules."""
|
|
81
|
+
try:
|
|
82
|
+
metadata = json.loads(
|
|
83
|
+
check_output(_go_edit_command(file, subcommand, ["-json"]), encoding="utf8", stderr=STDOUT)
|
|
84
|
+
)
|
|
85
|
+
except (CalledProcessError, ValueError, OSError) as error:
|
|
86
|
+
detail = error.output if isinstance(error, CalledProcessError) else str(error)
|
|
87
|
+
raise ValueError(f"Cannot parse {file} with Go tooling: {detail}") from error
|
|
88
|
+
if not isinstance(metadata, dict):
|
|
89
|
+
raise ValueError(f"Expected a JSON object from Go tooling for {file}")
|
|
90
|
+
return metadata
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def _read_go_module_metadata(go_mod_file: Path) -> dict:
|
|
94
|
+
"""Read module identity and dependencies without modifying go.mod."""
|
|
95
|
+
return _read_go_metadata_with_edit_command(go_mod_file, "mod")
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def _read_go_workspace_metadata(go_work_file: Path) -> dict:
|
|
99
|
+
"""Read workspace module selections and replacements without changing go.work."""
|
|
100
|
+
return _read_go_metadata_with_edit_command(go_work_file, "work")
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def _release_checkout_path(path: Path, root: Path) -> Path:
|
|
104
|
+
"""Map a path chosen by tag discovery to the same location in the release checkout.
|
|
105
|
+
|
|
106
|
+
Never prepare modules outside the configured project root, even when a
|
|
107
|
+
workspace happens to reference them.
|
|
108
|
+
"""
|
|
109
|
+
source_root = ROOT_DIR.resolve()
|
|
110
|
+
resolved = path.resolve()
|
|
111
|
+
if not resolved.is_relative_to(source_root):
|
|
112
|
+
raise ValueError(f"Go module path is outside the project root: {path}")
|
|
113
|
+
return root.resolve() / resolved.relative_to(source_root)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
def _discover_release_modules(root: Path) -> Dict[str, Path]:
|
|
117
|
+
"""Index only tagging's selected modules by their declared import paths.
|
|
118
|
+
|
|
119
|
+
Include the root module when present. Exact declared paths, rather than
|
|
120
|
+
repository-relative names or shared prefixes, identify internal dependencies.
|
|
121
|
+
"""
|
|
122
|
+
modules: Dict[str, Path] = {}
|
|
123
|
+
for directory in _candidate_go_module_directories(include_project_root=True):
|
|
124
|
+
file = _release_checkout_path(directory, root) / GO_MOD_FILENAME
|
|
125
|
+
if not file.is_file():
|
|
126
|
+
continue
|
|
127
|
+
metadata = _read_go_module_metadata(file)
|
|
128
|
+
name = (metadata.get(GO_JSON_MODULE) or {}).get(GO_JSON_PATH)
|
|
129
|
+
if not name:
|
|
130
|
+
raise ValueError(f"Missing module declaration in {file}")
|
|
131
|
+
if name in modules:
|
|
132
|
+
raise ValueError(f"Duplicate Go module declaration {name!r}: {modules[name]} and {file}")
|
|
133
|
+
modules[name] = file
|
|
134
|
+
return modules
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def _release_workspaces(root: Path) -> List[Path]:
|
|
138
|
+
"""Locate the root/source workspaces used by tag discovery for validation."""
|
|
139
|
+
return [_release_checkout_path(path, root) for path in _find_go_work_files()]
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def _go_major(version: str) -> int:
|
|
143
|
+
"""Parse the major component of CDS or Go semver, including pseudo-versions."""
|
|
144
|
+
try:
|
|
145
|
+
return int(semver.VersionInfo.parse(version.removeprefix("v")).major)
|
|
146
|
+
except ValueError as error:
|
|
147
|
+
raise ValueError(f"Invalid Go module version: {version!r}") from error
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
def _go_module_path_major(module: str) -> Optional[int]:
|
|
151
|
+
"""Parse a Go path's /vN (or gopkg.in .vN) semantic import suffix.
|
|
152
|
+
|
|
153
|
+
Module paths encode only the major version. Append zero minor and patch
|
|
154
|
+
components so the existing semver parser can validate and extract it.
|
|
155
|
+
See https://go.dev/ref/mod#module-path,
|
|
156
|
+
https://go.dev/doc/modules/major-version and https://semver.org/#spec-item-2.
|
|
157
|
+
"""
|
|
158
|
+
separator = ".v" if module.startswith("gopkg.in/") else "/v"
|
|
159
|
+
_, found, major_suffix = module.rpartition(separator)
|
|
160
|
+
if not found:
|
|
161
|
+
return None
|
|
162
|
+
try:
|
|
163
|
+
return _go_major(f"{major_suffix}.0.0")
|
|
164
|
+
except ValueError:
|
|
165
|
+
return None
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
def _go_module_path_supports_major(module: str, major: int) -> bool:
|
|
169
|
+
"""Match v2+ suffixes and reject them for unsuffixed v0/v1 releases."""
|
|
170
|
+
path_major = _go_module_path_major(module)
|
|
171
|
+
if major >= 2:
|
|
172
|
+
return path_major == major
|
|
173
|
+
return path_major is None or path_major < 2
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
def _check_internal_go_version(module: str, old: str, target: str) -> None:
|
|
177
|
+
"""Reject requirements incompatible with the module path before any edits.
|
|
178
|
+
|
|
179
|
+
Warn only when a change of major version also requires a manual path and
|
|
180
|
+
import migration; releases within an existing major remain supported.
|
|
181
|
+
"""
|
|
182
|
+
target_major = _go_major(target)
|
|
183
|
+
if _go_module_path_supports_major(module, target_major):
|
|
184
|
+
return
|
|
185
|
+
|
|
186
|
+
if _go_major(old) != target_major and target_major >= 2:
|
|
187
|
+
logger.warning(
|
|
188
|
+
"Go major-version migration is only partially supported. CDS does not migrate module "
|
|
189
|
+
"declarations, source imports or replace directives. Manual migration is required: "
|
|
190
|
+
"https://go.dev/doc/modules/major-version"
|
|
191
|
+
)
|
|
192
|
+
raise ValueError(
|
|
193
|
+
f"Internal Go module {module!r} cannot require {target}: its module path must match "
|
|
194
|
+
f"major version v{target_major}. Migrate module declarations, imports and requirements before release."
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def _validate_local_go_targets(
|
|
199
|
+
metadata: dict, file: Path, modules: Dict[str, Path], root: Path, target_version: str
|
|
200
|
+
) -> Set[str]:
|
|
201
|
+
"""Return internal modules whose replacements will resolve the target version.
|
|
202
|
+
|
|
203
|
+
Check local targets inside the project, but leave replacements pointing
|
|
204
|
+
outside the repository alone. A version-specific replacement for the old
|
|
205
|
+
requirement does not necessarily resolve the upcoming release version.
|
|
206
|
+
"""
|
|
207
|
+
locally_replaced: Set[str] = set()
|
|
208
|
+
for replacement in metadata.get(GO_JSON_REPLACE) or []:
|
|
209
|
+
old = replacement[GO_JSON_OLD][GO_JSON_PATH]
|
|
210
|
+
new = replacement[GO_JSON_NEW]
|
|
211
|
+
if new.get(GO_JSON_VERSION):
|
|
212
|
+
continue
|
|
213
|
+
target = (file.parent / new[GO_JSON_PATH]).resolve()
|
|
214
|
+
if not target.is_relative_to(root.resolve()):
|
|
215
|
+
continue
|
|
216
|
+
if not (target / GO_MOD_FILENAME).is_file():
|
|
217
|
+
raise ValueError(f"Local replacement for {old} in {file} has no {GO_MOD_FILENAME} at {target}")
|
|
218
|
+
if old in modules and target != modules[old].parent.resolve():
|
|
219
|
+
raise ValueError(f"Local replacement for {old} in {file} points to {target}, not {modules[old].parent}")
|
|
220
|
+
if old in modules and replacement[GO_JSON_OLD].get(GO_JSON_VERSION) in (None, "", target_version):
|
|
221
|
+
locally_replaced.add(old)
|
|
222
|
+
return locally_replaced
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
def _plan_internal_go_requirement_updates(
|
|
226
|
+
modules: Dict[str, Path], workspace_modules: Dict[Path, Set[str]], root: Path, target_version: str
|
|
227
|
+
) -> Dict[Path, List[str]]:
|
|
228
|
+
"""Plan edits after exact path matching, before touching any go.mod files.
|
|
229
|
+
|
|
230
|
+
Update only requirements resolved through a repository-local replacement
|
|
231
|
+
or through a workspace containing the requiring and required modules.
|
|
232
|
+
"""
|
|
233
|
+
changes: Dict[Path, List[str]] = {}
|
|
234
|
+
for module_file in modules.values():
|
|
235
|
+
metadata = _read_go_module_metadata(module_file)
|
|
236
|
+
locally_resolved = _validate_local_go_targets(metadata, module_file, modules, root, target_version)
|
|
237
|
+
locally_resolved.update(workspace_modules.get(module_file, set()))
|
|
238
|
+
outdated = []
|
|
239
|
+
for requirement in metadata.get(GO_JSON_REQUIRE) or []:
|
|
240
|
+
path = requirement[GO_JSON_PATH]
|
|
241
|
+
if path in locally_resolved:
|
|
242
|
+
_check_internal_go_version(path, requirement[GO_JSON_VERSION], target_version)
|
|
243
|
+
if requirement[GO_JSON_VERSION] != target_version:
|
|
244
|
+
outdated.append(path)
|
|
245
|
+
if outdated:
|
|
246
|
+
changes[module_file] = sorted(outdated)
|
|
247
|
+
return changes
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def _validate_go_release_workspaces(root: Path, modules: Dict[str, Path], target_version: str) -> Dict[Path, Set[str]]:
|
|
251
|
+
"""Find internal modules locally available to each workspace member."""
|
|
252
|
+
available_by_module: Dict[Path, Set[str]] = {}
|
|
253
|
+
for workspace in _release_workspaces(root):
|
|
254
|
+
work_metadata = _read_go_workspace_metadata(workspace)
|
|
255
|
+
replaced = _validate_local_go_targets(work_metadata, workspace, modules, root, target_version)
|
|
256
|
+
used_directories = set()
|
|
257
|
+
for use in work_metadata.get(GO_JSON_USE) or []:
|
|
258
|
+
directory = (workspace.parent / use[GO_JSON_DISK_PATH]).resolve()
|
|
259
|
+
if not (directory / GO_MOD_FILENAME).is_file():
|
|
260
|
+
raise ValueError(f"Go workspace {workspace} references missing module at {directory}")
|
|
261
|
+
if directory.is_relative_to(root.resolve()):
|
|
262
|
+
used_directories.add(directory)
|
|
263
|
+
available = replaced | {name for name, file in modules.items() if file.parent.resolve() in used_directories}
|
|
264
|
+
for file in modules.values():
|
|
265
|
+
if file.parent.resolve() in used_directories:
|
|
266
|
+
available_by_module.setdefault(file, set()).update(available)
|
|
267
|
+
return available_by_module
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
def _update_internal_go_requirements(file: Path, paths: List[str], target_version: str) -> None:
|
|
271
|
+
"""Apply only planned require changes using Go tooling, without go get or tidy."""
|
|
272
|
+
logger.info("Updating internal Go requirements in %s to %s", file, target_version)
|
|
273
|
+
try:
|
|
274
|
+
check_call(_go_edit_command(file, "mod", [f"-require={path}@{target_version}" for path in paths]))
|
|
275
|
+
except (CalledProcessError, OSError) as error:
|
|
276
|
+
raise ValueError(f"Cannot update internal Go requirements in {file}: {error}") from error
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
def _prepare_go_module_requirements(root: Path, target_version: str) -> List[Path]:
|
|
280
|
+
"""Validate all selected modules, then update their internal requirements.
|
|
281
|
+
|
|
282
|
+
Return only changed go.mod paths so CDS can stage them in its release
|
|
283
|
+
commit; a single-module project has no internal dependencies to update.
|
|
284
|
+
"""
|
|
285
|
+
modules = _discover_release_modules(root)
|
|
286
|
+
workspace_modules = _validate_go_release_workspaces(root, modules, target_version)
|
|
287
|
+
changes = _plan_internal_go_requirement_updates(modules, workspace_modules, root, target_version)
|
|
288
|
+
if len(modules) < 2:
|
|
289
|
+
return []
|
|
290
|
+
|
|
291
|
+
for file, paths in changes.items():
|
|
292
|
+
_update_internal_go_requirements(file, paths, target_version)
|
|
293
|
+
return list(changes)
|
|
294
|
+
|
|
55
295
|
|
|
56
296
|
def _generate_doc2go_command_list(executable: str, output_directory: Path, patterns: List[str]) -> List[str]:
|
|
57
297
|
return [
|
|
@@ -124,10 +364,12 @@ def _candidate_go_module_directories(include_project_root: bool = False) -> List
|
|
|
124
364
|
def _go_licence_module_directories() -> List[Path]:
|
|
125
365
|
"""Find actual Go modules for dependency reporting."""
|
|
126
366
|
modules = [
|
|
127
|
-
path
|
|
367
|
+
path
|
|
368
|
+
for path in _candidate_go_module_directories(include_project_root=True)
|
|
369
|
+
if (path / GO_MOD_FILENAME).is_file()
|
|
128
370
|
]
|
|
129
371
|
if not modules:
|
|
130
|
-
raise FileNotFoundError(f"No
|
|
372
|
+
raise FileNotFoundError(f"No {GO_MOD_FILENAME} found in {SRC_DIR}, {ROOT_DIR} or their Go workspace modules.")
|
|
131
373
|
return modules
|
|
132
374
|
|
|
133
375
|
|
|
@@ -139,7 +381,7 @@ def _go_module_name(module_dir: Path, env: MutableMapping[str, str]) -> str:
|
|
|
139
381
|
module_env = dict(env)
|
|
140
382
|
module_env[ENVVAR_GO_WORK] = GO_WORK_OFF_VALUE
|
|
141
383
|
module = json.loads(check_output(["go", "list", "-m", "-json"], cwd=module_dir, env=module_env, encoding="utf8"))
|
|
142
|
-
return str(module[
|
|
384
|
+
return str(module[GO_JSON_PATH])
|
|
143
385
|
|
|
144
386
|
|
|
145
387
|
def _download_go_module_dependencies(module_directories: List[Path], env: MutableMapping[str, str]) -> None:
|
|
@@ -202,7 +444,7 @@ def _run_go_licenses_report(
|
|
|
202
444
|
) -> str:
|
|
203
445
|
"""Run go-licenses with captured stderr so CDS controls when diagnostics are shown."""
|
|
204
446
|
result = run(
|
|
205
|
-
[executable, "report",
|
|
447
|
+
[executable, "report", GO_ALL_PACKAGES_PATTERN, "--template", str(template_path)],
|
|
206
448
|
cwd=module_dir,
|
|
207
449
|
env=env,
|
|
208
450
|
encoding="utf8",
|
|
@@ -341,7 +583,7 @@ def _doc2go_target(module: str) -> tuple[Path, List[str]]:
|
|
|
341
583
|
dict.fromkeys(
|
|
342
584
|
directory.resolve()
|
|
343
585
|
for directory in _candidate_go_module_directories(include_project_root=True)
|
|
344
|
-
if (directory /
|
|
586
|
+
if (directory / GO_MOD_FILENAME).is_file()
|
|
345
587
|
)
|
|
346
588
|
)
|
|
347
589
|
|
|
@@ -350,16 +592,16 @@ def _doc2go_target(module: str) -> tuple[Path, List[str]]:
|
|
|
350
592
|
dict.fromkeys(
|
|
351
593
|
directory.resolve()
|
|
352
594
|
for directory in _determine_go_work_module_directories()
|
|
353
|
-
if (directory /
|
|
595
|
+
if (directory / GO_MOD_FILENAME).is_file() and directory.resolve().is_relative_to(root)
|
|
354
596
|
)
|
|
355
597
|
)
|
|
356
598
|
if workspace_modules:
|
|
357
599
|
return root, [
|
|
358
|
-
|
|
600
|
+
GO_ALL_PACKAGES_PATTERN if directory == root else f"./{directory.relative_to(root).as_posix()}/..."
|
|
359
601
|
for directory in workspace_modules
|
|
360
602
|
]
|
|
361
|
-
if (root /
|
|
362
|
-
return root, [
|
|
603
|
+
if (root / GO_MOD_FILENAME).is_file():
|
|
604
|
+
return root, [GO_ALL_PACKAGES_PATTERN]
|
|
363
605
|
raise FileNotFoundError(f"No Go module or workspace found at {ROOT_DIR}")
|
|
364
606
|
|
|
365
607
|
matches = []
|
|
@@ -368,12 +610,16 @@ def _doc2go_target(module: str) -> tuple[Path, List[str]]:
|
|
|
368
610
|
if requested in {directory.name, str(directory), relative, f"./{relative}"}:
|
|
369
611
|
matches.append(directory)
|
|
370
612
|
project_module = (root / requested).resolve()
|
|
371
|
-
if
|
|
613
|
+
if (
|
|
614
|
+
project_module.is_relative_to(root)
|
|
615
|
+
and (project_module / GO_MOD_FILENAME).is_file()
|
|
616
|
+
and project_module not in matches
|
|
617
|
+
):
|
|
372
618
|
matches.append(project_module)
|
|
373
619
|
if len(matches) > 1:
|
|
374
620
|
raise ValueError(f"MODULE_TO_DOCUMENT={requested!r} matches several Go modules; use a project-relative path")
|
|
375
621
|
if matches:
|
|
376
|
-
return matches[0], [
|
|
622
|
+
return matches[0], [GO_ALL_PACKAGES_PATTERN]
|
|
377
623
|
|
|
378
624
|
# Package directories can be named relative to the project or source root.
|
|
379
625
|
package_matches = []
|
|
@@ -392,8 +638,8 @@ def _doc2go_target(module: str) -> tuple[Path, List[str]]:
|
|
|
392
638
|
return package_matches[0]
|
|
393
639
|
|
|
394
640
|
# A source subdirectory of a module can also be selected by its short name.
|
|
395
|
-
if requested == source.name and any((parent /
|
|
396
|
-
return source, [
|
|
641
|
+
if requested == source.name and any((parent / GO_MOD_FILENAME).is_file() for parent in (source, *source.parents)):
|
|
642
|
+
return source, [GO_ALL_PACKAGES_PATTERN]
|
|
397
643
|
|
|
398
644
|
# Recognise a full module path without requiring the caller to append /....
|
|
399
645
|
if "." in requested and not requested.startswith("./"):
|
|
@@ -401,7 +647,7 @@ def _doc2go_target(module: str) -> tuple[Path, List[str]]:
|
|
|
401
647
|
for directory in modules:
|
|
402
648
|
import_path = _go_module_name(directory, env)
|
|
403
649
|
if requested in {import_path, f"{import_path}/..."}:
|
|
404
|
-
return directory, [
|
|
650
|
+
return directory, [GO_ALL_PACKAGES_PATTERN]
|
|
405
651
|
|
|
406
652
|
# An explicit package import path or Go package pattern is used as supplied.
|
|
407
653
|
return source, [requested]
|
|
@@ -466,7 +712,7 @@ def _determine_go_module_tag_for_directory(module_directory: Path, version: str)
|
|
|
466
712
|
|
|
467
713
|
def _find_go_work_files() -> List[Path]:
|
|
468
714
|
go_work_files: List[Path] = []
|
|
469
|
-
for go_work_file in [SRC_DIR.joinpath(
|
|
715
|
+
for go_work_file in [SRC_DIR.joinpath(GO_WORK_FILENAME), ROOT_DIR.joinpath(GO_WORK_FILENAME)]:
|
|
470
716
|
if go_work_file.exists() and go_work_file not in go_work_files:
|
|
471
717
|
go_work_files.append(go_work_file)
|
|
472
718
|
return go_work_files
|
|
@@ -479,10 +725,10 @@ def _determine_go_work_module_directories_from_json(go_work_file: Path) -> List[
|
|
|
479
725
|
See https://go.dev/ref/mod#workspaces and https://pkg.go.dev/cmd/go#hdr-Edit_workspace_file.
|
|
480
726
|
"""
|
|
481
727
|
go_work_root = go_work_file.parent
|
|
482
|
-
go_work =
|
|
728
|
+
go_work = _read_go_workspace_metadata(go_work_file)
|
|
483
729
|
module_directories: List[Path] = []
|
|
484
|
-
for use_definition in go_work.get(
|
|
485
|
-
disk_path = use_definition.get(
|
|
730
|
+
for use_definition in go_work.get(GO_JSON_USE, []):
|
|
731
|
+
disk_path = use_definition.get(GO_JSON_DISK_PATH) or use_definition.get(GO_JSON_PATH)
|
|
486
732
|
if not disk_path:
|
|
487
733
|
continue
|
|
488
734
|
module_directory = Path(str(disk_path))
|
|
@@ -507,7 +753,7 @@ def _determine_go_work_module_directories() -> List[Path]:
|
|
|
507
753
|
def _determine_go_subproject_directories() -> List[Path]:
|
|
508
754
|
if not SRC_DIR.exists():
|
|
509
755
|
return []
|
|
510
|
-
return sorted((go_mod_file.parent for go_mod_file in SRC_DIR.rglob(
|
|
756
|
+
return sorted((go_mod_file.parent for go_mod_file in SRC_DIR.rglob(GO_MOD_FILENAME)), key=lambda path: str(path))
|
|
511
757
|
|
|
512
758
|
|
|
513
759
|
def _determine_go_module_tag(version: str) -> List[str]:
|
|
@@ -536,6 +782,12 @@ class Go(BaseLanguage):
|
|
|
536
782
|
cleansed_version = version.strip().lstrip("v")
|
|
537
783
|
return f"v{cleansed_version}"
|
|
538
784
|
|
|
785
|
+
def prepare_release(self, root: Path, version: str, is_new_version: bool) -> List[Path]:
|
|
786
|
+
"""Synchronise internal requirements only for a new project release."""
|
|
787
|
+
if not is_new_version:
|
|
788
|
+
return []
|
|
789
|
+
return _prepare_go_module_requirements(root, self.get_version_tag(version))
|
|
790
|
+
|
|
539
791
|
def package_software(self, mode: CommitType, version: str) -> None:
|
|
540
792
|
"""No operation."""
|
|
541
793
|
super().package_software(mode, version)
|
|
@@ -9,7 +9,7 @@ import datetime
|
|
|
9
9
|
import logging
|
|
10
10
|
import sys
|
|
11
11
|
from pathlib import Path
|
|
12
|
-
from typing import TYPE_CHECKING, Optional, Tuple, Dict
|
|
12
|
+
from typing import TYPE_CHECKING, Optional, Tuple, Dict, List
|
|
13
13
|
|
|
14
14
|
from continuous_delivery_scripts.generate_docs import generate_documentation
|
|
15
15
|
from continuous_delivery_scripts.generate_news import version_project
|
|
@@ -57,6 +57,9 @@ def tag_and_release(mode: CommitType, current_branch: Optional[str] = None) -> N
|
|
|
57
57
|
raise ValueError("Undefined version.")
|
|
58
58
|
if mode == CommitType.DEVELOPMENT:
|
|
59
59
|
return
|
|
60
|
+
files_changed_by_release_preparation = get_language_specifics().prepare_release(
|
|
61
|
+
Path(str(configuration.get_value(ConfigurationVariable.PROJECT_ROOT))), version, is_new_version
|
|
62
|
+
)
|
|
60
63
|
# The documentation folder will be emptied when the documentation is updated
|
|
61
64
|
_update_documentation()
|
|
62
65
|
spdx_project: Optional["SpdxProject"] = None
|
|
@@ -67,7 +70,9 @@ def tag_and_release(mode: CommitType, current_branch: Optional[str] = None) -> N
|
|
|
67
70
|
# Add summaries after the documentation output has been cleared and regenerated.
|
|
68
71
|
spdx_project = _update_licensing_summary()
|
|
69
72
|
insert_licence_header(0)
|
|
70
|
-
_update_repository(
|
|
73
|
+
_update_repository(
|
|
74
|
+
mode, is_new_version, version, current_branch, version_elements, files_changed_by_release_preparation
|
|
75
|
+
)
|
|
71
76
|
if is_new_version:
|
|
72
77
|
if get_language_specifics().should_clean_before_packaging():
|
|
73
78
|
_clean_repository()
|
|
@@ -118,6 +123,7 @@ def _update_repository(
|
|
|
118
123
|
version: str,
|
|
119
124
|
current_branch: Optional[str],
|
|
120
125
|
version_elements: Dict[str, str],
|
|
126
|
+
files_changed_by_release_preparation: List[Path],
|
|
121
127
|
) -> None:
|
|
122
128
|
"""Update repository with changes that happened."""
|
|
123
129
|
with ProjectTempClone(desired_branch_name=current_branch) as git:
|
|
@@ -125,7 +131,7 @@ def _update_repository(
|
|
|
125
131
|
time_str = datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M")
|
|
126
132
|
commit_message = f"🚀 releasing version {version} @ {time_str}" if is_new_version else "📰 Automatic changes ⚙"
|
|
127
133
|
if mode == CommitType.RELEASE:
|
|
128
|
-
_commit_release_changes(git, version, commit_message)
|
|
134
|
+
_commit_release_changes(git, version, commit_message, files_changed_by_release_preparation)
|
|
129
135
|
if is_new_version:
|
|
130
136
|
get_language_specifics().tag_release(
|
|
131
137
|
git,
|
|
@@ -165,8 +171,12 @@ def _add_version_changes(git: GitWrapper) -> None:
|
|
|
165
171
|
git.add(configuration.get_value(ConfigurationVariable.NEWS_DIR))
|
|
166
172
|
|
|
167
173
|
|
|
168
|
-
def _commit_release_changes(
|
|
174
|
+
def _commit_release_changes(
|
|
175
|
+
git: GitWrapper, version: str, commit_message: str, files_changed_by_release_preparation: List[Path]
|
|
176
|
+
) -> None:
|
|
169
177
|
logger.info(f"Committing release [{version}]...")
|
|
178
|
+
for path in files_changed_by_release_preparation:
|
|
179
|
+
git.add(path)
|
|
170
180
|
git.add(configuration.get_value(ConfigurationVariable.DOCUMENTATION_PRODUCTION_OUTPUT_PATH))
|
|
171
181
|
_add_version_changes(git)
|
|
172
182
|
_commit_changes(commit_message, git)
|
|
@@ -87,6 +87,10 @@ class BaseLanguage(ABC):
|
|
|
87
87
|
"""States whether the repository must be cleaned before packaging happens."""
|
|
88
88
|
return False
|
|
89
89
|
|
|
90
|
+
def prepare_release(self, root: Path, version: str, is_new_version: bool) -> List[Path]:
|
|
91
|
+
"""Prepare language-specific files for a new release; return paths to stage."""
|
|
92
|
+
return []
|
|
93
|
+
|
|
90
94
|
def tag_release(self, git: GitWrapper, version: str, shortcuts: Dict[str, bool]) -> None:
|
|
91
95
|
"""Tags release commit."""
|
|
92
96
|
logger.info(f"Tagging commit as release {version}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: continuous-delivery-scripts
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.8.0
|
|
4
4
|
Summary: Git-based CI/CD tools for releases, changelogs, SPDX SBOMs and licence reporting
|
|
5
5
|
Home-page: https://github.com/ARMmbed/continuous-delivery-scripts
|
|
6
6
|
Author: Arm
|
|
@@ -96,8 +96,9 @@ including paths, versioning rules and the selected `PROGRAMMING_LANGUAGE`,
|
|
|
96
96
|
regardless of the project's language or CI system. The selected plugin then
|
|
97
97
|
uses appropriate ecosystem tools: for example, GoReleaser for Go releases or
|
|
98
98
|
wheel and Twine for Python packages. Consult the
|
|
99
|
-
[plugin guides](./
|
|
100
|
-
requirements
|
|
99
|
+
[plugin guides](./guides/plugin-guides.md) for language-specific
|
|
100
|
+
requirements, including the [Go plugin guides](./guides/plugin-golang.md);
|
|
101
|
+
native build manifests and credentials may still be needed. See
|
|
101
102
|
the [project configuration guide](./DEVELOPMENT.md#project-configuration) for
|
|
102
103
|
the `pyproject.toml` fields required by each workflow.
|
|
103
104
|
|
{continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/GitPython.spdx
RENAMED
|
@@ -9,7 +9,7 @@ DocumentComment: This document was created automatically using available project
|
|
|
9
9
|
## Creation Information
|
|
10
10
|
Creator: Person: unknown (Sebastian Thiel <byronimo@gmail.com>, Michael Trier <mtrier@gmail.com>)
|
|
11
11
|
Creator: Tool: mbed-spdx-generator
|
|
12
|
-
Created: 2026-10-
|
|
12
|
+
Created: 2026-10-19T13:43:22Z
|
|
13
13
|
|
|
14
14
|
## Package Information
|
|
15
15
|
PackageName: GitPython
|
{continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/Jinja2.spdx
RENAMED
|
@@ -9,7 +9,7 @@ DocumentComment: This document was created automatically using available project
|
|
|
9
9
|
## Creation Information
|
|
10
10
|
Creator: Person: unknown (unknown)
|
|
11
11
|
Creator: Tool: mbed-spdx-generator
|
|
12
|
-
Created: 2026-10-
|
|
12
|
+
Created: 2026-10-19T13:43:22Z
|
|
13
13
|
|
|
14
14
|
## Package Information
|
|
15
15
|
PackageName: Jinja2
|
|
@@ -9,7 +9,7 @@ DocumentComment: This document was created automatically using available project
|
|
|
9
9
|
## Creation Information
|
|
10
10
|
Creator: Person: unknown (Mike Bayer <mike@zzzcomputing.com>)
|
|
11
11
|
Creator: Tool: mbed-spdx-generator
|
|
12
|
-
Created: 2026-10-
|
|
12
|
+
Created: 2026-10-19T13:43:23Z
|
|
13
13
|
|
|
14
14
|
## Package Information
|
|
15
15
|
PackageName: Mako
|
{continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/Markdown.spdx
RENAMED
|
@@ -9,7 +9,7 @@ DocumentComment: This document was created automatically using available project
|
|
|
9
9
|
## Creation Information
|
|
10
10
|
Creator: Person: Manfred Stienstra, Yuri Takhteyev (Waylan limberg <python.markdown@gmail.com>)
|
|
11
11
|
Creator: Tool: mbed-spdx-generator
|
|
12
|
-
Created: 2026-10-
|
|
12
|
+
Created: 2026-10-19T13:43:23Z
|
|
13
13
|
|
|
14
14
|
## Package Information
|
|
15
15
|
PackageName: Markdown
|
{continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/MarkupSafe.spdx
RENAMED
|
@@ -9,7 +9,7 @@ DocumentComment: This document was created automatically using available project
|
|
|
9
9
|
## Creation Information
|
|
10
10
|
Creator: Person: unknown (unknown)
|
|
11
11
|
Creator: Tool: mbed-spdx-generator
|
|
12
|
-
Created: 2026-10-
|
|
12
|
+
Created: 2026-10-19T13:43:22Z
|
|
13
13
|
|
|
14
14
|
## Package Information
|
|
15
15
|
PackageName: MarkupSafe
|
{continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/PyYAML.spdx
RENAMED
|
@@ -9,7 +9,7 @@ DocumentComment: This document was created automatically using available project
|
|
|
9
9
|
## Creation Information
|
|
10
10
|
Creator: Person: Kirill Simonov (xi@resolvent.net)
|
|
11
11
|
Creator: Tool: mbed-spdx-generator
|
|
12
|
-
Created: 2026-10-
|
|
12
|
+
Created: 2026-10-19T13:43:24Z
|
|
13
13
|
|
|
14
14
|
## Package Information
|
|
15
15
|
PackageName: PyYAML
|
{continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/Pygments.spdx
RENAMED
|
@@ -9,7 +9,7 @@ DocumentComment: This document was created automatically using available project
|
|
|
9
9
|
## Creation Information
|
|
10
10
|
Creator: Person: unknown (Georg Brandl <georg@python.org>)
|
|
11
11
|
Creator: Tool: mbed-spdx-generator
|
|
12
|
-
Created: 2026-10-
|
|
12
|
+
Created: 2026-10-19T13:43:23Z
|
|
13
13
|
|
|
14
14
|
## Package Information
|
|
15
15
|
PackageName: Pygments
|
{continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/SecretStorage.spdx
RENAMED
|
@@ -9,7 +9,7 @@ DocumentComment: This document was created automatically using available project
|
|
|
9
9
|
## Creation Information
|
|
10
10
|
Creator: Person: unknown (Dmitry Shachnev <mitya57@gmail.com>)
|
|
11
11
|
Creator: Tool: mbed-spdx-generator
|
|
12
|
-
Created: 2026-10-
|
|
12
|
+
Created: 2026-10-19T13:43:23Z
|
|
13
13
|
|
|
14
14
|
## Package Information
|
|
15
15
|
PackageName: SecretStorage
|
{continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/beartype.spdx
RENAMED
|
@@ -9,7 +9,7 @@ DocumentComment: This document was created automatically using available project
|
|
|
9
9
|
## Creation Information
|
|
10
10
|
Creator: Person: unknown (Cecil Curry <leycec@gmail.com>)
|
|
11
11
|
Creator: Tool: mbed-spdx-generator
|
|
12
|
-
Created: 2026-10-
|
|
12
|
+
Created: 2026-10-19T13:43:25Z
|
|
13
13
|
|
|
14
14
|
## Package Information
|
|
15
15
|
PackageName: beartype
|
{continuous_delivery_scripts-4.7.0 → continuous_delivery_scripts-4.8.0}/spdx-tmp/boolean.py.spdx
RENAMED
|
@@ -9,7 +9,7 @@ DocumentComment: This document was created automatically using available project
|
|
|
9
9
|
## Creation Information
|
|
10
10
|
Creator: Person: Sebastian Kraemer (basti.kr@gmail.com)
|
|
11
11
|
Creator: Tool: mbed-spdx-generator
|
|
12
|
-
Created: 2026-10-
|
|
12
|
+
Created: 2026-10-19T13:43:25Z
|
|
13
13
|
|
|
14
14
|
## Package Information
|
|
15
15
|
PackageName: boolean.py
|