diff --git a/CHANGELOG.md b/CHANGELOG.md index dfc56ce..fbd5981 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,26 @@ This project was forked from version 1.7.4 of [mbed-tools-ci-scripts](https://gi [//]: # (begin_release_notes) +"3.2.1" (2025-01-09) +==================== + +Bugfixes +-------- + +- Support python 3.11 (#20230303162821) +- Dependency upgrade: mypy-1.1.1 (#20230307082327) +- Dependency upgrade: coverage-7.2.2 (#20230317082258) +- :bug: Fix the python error appearing from python > 3.11 (#20250109163919) +- Dependency upgrade: fetch-metadata-2.2.0 (#20250109185536) +- Dependency upgrade: scorecard-action-2.4.0 (#20250109185845) + + +Misc +---- + +- #20250109170328 + + "3.2.0" (2023-03-01) ==================== diff --git a/continuous_delivery_scripts/_version.py b/continuous_delivery_scripts/_version.py index 8b53338..37c978c 100644 --- a/continuous_delivery_scripts/_version.py +++ b/continuous_delivery_scripts/_version.py @@ -10,8 +10,8 @@ This file is autogenerated, do not modify by hand. """ -__version__ = "3.2.0" -COMMIT = "b8e85ab7e9d654882a35647095d8e51e4e7773fb" +__version__ = "3.2.1" +COMMIT = "516e08deffc6bba1a9fd975f52587189e19ef5aa" MAJOR = 3 MINOR = 2 -PATCH = 0 +PATCH = 1 diff --git a/docs/assert_news.html b/docs/assert_news.html index 2c46383..68d47e6 100644 --- a/docs/assert_news.html +++ b/docs/assert_news.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.assert_newsExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Checks if valid news files are created for changes in the project."""
@@ -41,7 +41,7 @@ 

Module continuous_delivery_scripts.assert_newsModule continuous_delivery_scripts.assert_newsModule continuous_delivery_scripts.assert_newsModule continuous_delivery_scripts.assert_newsArgs

if not configuration.get_value(ConfigurationVariable.AUTOGENERATE_NEWS_FILE_ON_DEPENDENCY_UPDATE): raise EnvironmentError(f"Branch {current_branch} must contain a news file.") + list_groups = _convert_to_string_iter(groups) message = str(configuration.get_value(ConfigurationVariable.DEPENDENCY_UPDATE_NEWS_MESSAGE)).format( - message=", ".join(groups) + message=", ".join(list_groups) ) logger.info(f"Generating a news file with content: {message}...") return create_news_file( diff --git a/docs/create_news_file.html b/docs/create_news_file.html index a5fce8c..4c069ae 100644 --- a/docs/create_news_file.html +++ b/docs/create_news_file.html @@ -34,7 +34,7 @@

Usage

Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Easy news files generation.
diff --git a/docs/generate_docs.html b/docs/generate_docs.html
index b3de5f9..8bd5f2d 100644
--- a/docs/generate_docs.html
+++ b/docs/generate_docs.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.generate_docs< Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Generates documentation."""
diff --git a/docs/generate_news.html b/docs/generate_news.html
index 8cbb2ad..3622d2f 100644
--- a/docs/generate_news.html
+++ b/docs/generate_news.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.generate_news< Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Handles usage of towncrier for automated changelog generation and pyautoversion for versioning."""
diff --git a/docs/get_config.html b/docs/get_config.html
index 5aefac2..c37be27 100644
--- a/docs/get_config.html
+++ b/docs/get_config.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.get_config

Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Retrieves configuration values."""
diff --git a/docs/get_version.html b/docs/get_version.html
index d73f430..0f41eec 100644
--- a/docs/get_version.html
+++ b/docs/get_version.html
@@ -32,12 +32,13 @@ 

Module continuous_delivery_scripts.get_versionExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Determine the project new version."""
 import sys
 
+from typing import Optional
 import argparse
 import logging
 from continuous_delivery_scripts.utils.versioning import calculate_version, determine_version_string
@@ -48,7 +49,7 @@ 

Module continuous_delivery_scripts.get_versionModule continuous_delivery_scripts.get_versionFunctions

-def get_project_version_string(commit_type: CommitType) ‑> str +def get_project_version_string(commit_type: CommitType) ‑> Optional[str]

Determine the project version string.

@@ -110,7 +111,7 @@

Returns

Expand source code -
def get_project_version_string(commit_type: CommitType) -> str:
+
def get_project_version_string(commit_type: CommitType) -> Optional[str]:
     """Determine the project version string.
 
     Args:
diff --git a/docs/index.html b/docs/index.html
index a5e7da3..bf1011d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -32,7 +32,7 @@ 

Package continuous_delivery_scripts

Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Scripts and utilities used by the CI pipeline."""
diff --git a/docs/language_specifics.html b/docs/language_specifics.html
index 74eb5a3..77bb0a1 100644
--- a/docs/language_specifics.html
+++ b/docs/language_specifics.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.language_specificsExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Language plugins Loader."""
@@ -49,8 +49,8 @@ 

Module continuous_delivery_scripts.language_specificsModule continuous_delivery_scripts.language_specificsModule continuous_delivery_scripts.language_specificsReturns

"""Fetches all language plugins which inherit from BaseLanguage. Returns: - A list of classes containing language plugins + A list of classes containing language plugins """ all_plugins = _retrieve_all_subclasses(BaseLanguage) - return {la.get_related_language().lower().strip(): la for la in [lang() for lang in all_plugins]} # type: ignore
+ return {la.get_related_language().lower().strip(): la for la in [lang() for lang in all_plugins]}

@@ -164,7 +164,7 @@

Returns

language: the language to select Returns: - A language plugin corresponding to the language requested + A language plugin corresponding to the language requested """ return cast(BaseLanguage, all_plugins.get(_sanitise_program_language(language)))
diff --git a/docs/license_files.html b/docs/license_files.html index 83cdaad..4fe7e56 100644 --- a/docs/license_files.html +++ b/docs/license_files.html @@ -34,7 +34,7 @@

Module continuous_delivery_scripts.license_files< Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Apply copyright and licensing to all source files present in a project.
diff --git a/docs/plugins/basic.html b/docs/plugins/basic.html
index 92d51d2..062f0cb 100644
--- a/docs/plugins/basic.html
+++ b/docs/plugins/basic.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.plugins.basic< Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Basic plugin."""
diff --git a/docs/plugins/ci.html b/docs/plugins/ci.html
index e5c47c2..6e63072 100644
--- a/docs/plugins/ci.html
+++ b/docs/plugins/ci.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.plugins.ci

Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Plugin for CI projects."""
@@ -63,7 +63,7 @@ 

Module continuous_delivery_scripts.plugins.ci

Classes

"""Gets the related language.""" return get_language_from_file_name(__file__) - def get_version_tag(self, version: str): + def get_version_tag(self, version: str) -> str: """Gets tag based on version.""" cleansed_version = version.strip().lstrip("v") return f"v{cleansed_version}" @@ -229,7 +229,7 @@

Methods

-def get_version_tag(self, version: str) +def get_version_tag(self, version: str) ‑> str

Gets tag based on version.

@@ -237,7 +237,7 @@

Methods

Expand source code -
def get_version_tag(self, version: str):
+
def get_version_tag(self, version: str) -> str:
     """Gets tag based on version."""
     cleansed_version = version.strip().lstrip("v")
     return f"v{cleansed_version}"
diff --git a/docs/plugins/docker.html b/docs/plugins/docker.html index 4165bf9..8cf4c8c 100644 --- a/docs/plugins/docker.html +++ b/docs/plugins/docker.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.plugins.docker Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Plugin for Docker projects."""
diff --git a/docs/plugins/github_actions.html b/docs/plugins/github_actions.html
index 313d2f7..59b4f01 100644
--- a/docs/plugins/github_actions.html
+++ b/docs/plugins/github_actions.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.plugins.github_action Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Plugin for CI projects."""
diff --git a/docs/plugins/golang.html b/docs/plugins/golang.html
index 35187dd..f9d998c 100644
--- a/docs/plugins/golang.html
+++ b/docs/plugins/golang.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.plugins.golang Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Plugin for Golang projects."""
@@ -127,7 +127,7 @@ 

Module continuous_delivery_scripts.plugins.golang check_call(_generate_goreleaser_check_command_list(), cwd=ROOT_DIR, env=env) -def _determine_go_module_tag(version) -> Optional[str]: +def _determine_go_module_tag(version: str) -> Optional[str]: """Determines go module for tagging. See https://golang.org/ref/mod#vcs-version. @@ -154,7 +154,7 @@

Module continuous_delivery_scripts.plugins.golang """Gets the related language.""" return get_language_from_file_name(__file__) - def get_version_tag(self, version: str): + def get_version_tag(self, version: str) -> str: """Gets tag based on version.""" cleansed_version = version.strip().lstrip("v") return f"v{cleansed_version}" @@ -249,7 +249,7 @@

Classes

"""Gets the related language.""" return get_language_from_file_name(__file__) - def get_version_tag(self, version: str): + def get_version_tag(self, version: str) -> str: """Gets tag based on version.""" cleansed_version = version.strip().lstrip("v") return f"v{cleansed_version}" @@ -384,7 +384,7 @@

Methods

-def get_version_tag(self, version: str) +def get_version_tag(self, version: str) ‑> str

Gets tag based on version.

@@ -392,7 +392,7 @@

Methods

Expand source code -
def get_version_tag(self, version: str):
+
def get_version_tag(self, version: str) -> str:
     """Gets tag based on version."""
     cleansed_version = version.strip().lstrip("v")
     return f"v{cleansed_version}"
diff --git a/docs/plugins/index.html b/docs/plugins/index.html index c2c3794..0e605a5 100644 --- a/docs/plugins/index.html +++ b/docs/plugins/index.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.plugins

Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Language specific actions."""
diff --git a/docs/plugins/noop.html b/docs/plugins/noop.html
index 9866c23..1659d96 100644
--- a/docs/plugins/noop.html
+++ b/docs/plugins/noop.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.plugins.noopExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """No Operation plugin."""
diff --git a/docs/plugins/python.html b/docs/plugins/python.html
index de2716e..a36d43e 100644
--- a/docs/plugins/python.html
+++ b/docs/plugins/python.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.plugins.python Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Plugin for Python projects."""
diff --git a/docs/report_third_party_ip.html b/docs/report_third_party_ip.html
index d6f2f2b..cc4eb31 100644
--- a/docs/report_third_party_ip.html
+++ b/docs/report_third_party_ip.html
@@ -38,7 +38,7 @@ 

Module continuous_delivery_scripts.report_third_party_ip Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Script providing information about licensing and third party IP in order to comply with OpenChain.
diff --git a/docs/spdx_report/index.html b/docs/spdx_report/index.html
index bf7fad1..8c6e8e4 100644
--- a/docs/spdx_report/index.html
+++ b/docs/spdx_report/index.html
@@ -42,7 +42,7 @@ 

Examples

Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Module in charge of handling SPDX documents.
diff --git a/docs/spdx_report/spdx_dependency.html b/docs/spdx_report/spdx_dependency.html
index 825e396..fc5de1d 100644
--- a/docs/spdx_report/spdx_dependency.html
+++ b/docs/spdx_report/spdx_dependency.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.spdx_report.spdx_depe Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Definition of dependency SPDX Document."""
diff --git a/docs/spdx_report/spdx_document.html b/docs/spdx_report/spdx_document.html
index dd2a514..69f444b 100644
--- a/docs/spdx_report/spdx_document.html
+++ b/docs/spdx_report/spdx_document.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.spdx_report.spdx_docu Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Definition of an SPDX Document."""
@@ -64,7 +64,7 @@ 

Module continuous_delivery_scripts.spdx_report.spdx_docu package_metadata: PackageMetadata, other_document_refs: List[DependencySpdxDocumentRef] = list(), is_dependency: bool = False, - document_namespace: str = None, + document_namespace: Optional[str] = None, ): """Constructor.""" self._project_root = Path(configuration.get_value(ConfigurationVariable.PROJECT_ROOT)) @@ -292,7 +292,7 @@

Classes

class SpdxDocument -(package_metadata: PackageMetadata, other_document_refs: List[DependencySpdxDocumentRef] = [], is_dependency: bool = False, document_namespace: str = None) +(package_metadata: PackageMetadata, other_document_refs: List[DependencySpdxDocumentRef] = [], is_dependency: bool = False, document_namespace: Optional[str] = None)

SPDX document.

@@ -313,7 +313,7 @@

Classes

package_metadata: PackageMetadata, other_document_refs: List[DependencySpdxDocumentRef] = list(), is_dependency: bool = False, - document_namespace: str = None, + document_namespace: Optional[str] = None, ): """Constructor.""" self._project_root = Path(configuration.get_value(ConfigurationVariable.PROJECT_ROOT)) diff --git a/docs/spdx_report/spdx_file.html b/docs/spdx_report/spdx_file.html index e50832b..899c0fd 100644 --- a/docs/spdx_report/spdx_file.html +++ b/docs/spdx_report/spdx_file.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.spdx_report.spdx_file Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Definition of an SPDX File."""
diff --git a/docs/spdx_report/spdx_helpers.html b/docs/spdx_report/spdx_helpers.html
index 8416256..e705fa7 100644
--- a/docs/spdx_report/spdx_helpers.html
+++ b/docs/spdx_report/spdx_helpers.html
@@ -42,7 +42,7 @@ 

Examples

Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Facilities regarding SPDX.
@@ -76,8 +76,8 @@ 

Examples

logger = logging.getLogger(__name__) # Copyright similar to the regex defined in flake8-copyright -COPYRIGHT_PATTERN = r"((?i)Copyright(?i).*$)" -COPYRIGHT_REGEX_PATTERN = re.compile(COPYRIGHT_PATTERN, re.MULTILINE) +COPYRIGHT_PATTERN = r"Copyright.*$" +COPYRIGHT_REGEX_PATTERN = re.compile(COPYRIGHT_PATTERN, flags=re.MULTILINE | re.IGNORECASE) # Specification of the identifier based on https://spdx.org/spdx-specification-21-web-version#h.twlc0ztnng3b # and https://spdx.org/ids-how SPDX_LICENCE_IDENTIFIER_PATTERN = r"SPDX-License-Identifier: ([\.\w+\-\(\)\s]+)[\*]?$" @@ -116,7 +116,7 @@

Examples

match = scan_file_for_pattern(path, COPYRIGHT_REGEX_PATTERN) if not match: return None - return str(match.group(1).strip()) + return str(match.group(0).strip()) def determine_spdx_value(value: Optional[str]) -> Union[str, UnKnown, SPDXNone]: @@ -235,7 +235,7 @@

Functions

match = scan_file_for_pattern(path, COPYRIGHT_REGEX_PATTERN) if not match: return None - return str(match.group(1).strip())
+ return str(match.group(0).strip())

diff --git a/docs/spdx_report/spdx_package.html b/docs/spdx_report/spdx_package.html index 833ca45..7616ec1 100644 --- a/docs/spdx_report/spdx_package.html +++ b/docs/spdx_report/spdx_package.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.spdx_report.spdx_pack Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Definition of an SPDX Package."""
diff --git a/docs/spdx_report/spdx_project.html b/docs/spdx_report/spdx_project.html
index 9677af8..913f0af 100644
--- a/docs/spdx_report/spdx_project.html
+++ b/docs/spdx_report/spdx_project.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.spdx_report.spdx_proj Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Definition of an SPDX report for a Python project."""
diff --git a/docs/spdx_report/spdx_summary.html b/docs/spdx_report/spdx_summary.html
index cd0d7d2..01edc82 100644
--- a/docs/spdx_report/spdx_summary.html
+++ b/docs/spdx_report/spdx_summary.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.spdx_report.spdx_summ Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Summary generators."""
@@ -60,7 +60,7 @@ 

Module continuous_delivery_scripts.spdx_report.spdx_summ def generate_file_based_on_template( - output_dir: Path, template_name: str, template_args: dict, suffix: str = None + output_dir: Path, template_name: str, template_args: dict, suffix: Optional[str] = None ) -> None: """Write file based on template and arguments.""" logger.info("Loading template '%s'.", template_name) @@ -96,11 +96,13 @@

Module continuous_delivery_scripts.spdx_report.spdx_summ "name": self.project.name, "compliance": global_compliance, "compliance_details": ( - f"Project [{self.project.name}]'s licence is compliant: {self.project.licence}." - "All its dependencies are also compliant licence-wise." - ) - if global_compliance - else f"Project [{self.project.name}] or one, at least, of its dependencies has a non compliant licence", + ( + f"Project [{self.project.name}]'s licence is compliant: {self.project.licence}." + "All its dependencies are also compliant licence-wise." + ) + if global_compliance + else f"Project [{self.project.name}] or one, at least, of its dependencies has a non compliant licence" + ), } arguments["packages"] = description_list arguments["render_time"] = datetime.datetime.now() @@ -138,12 +140,14 @@

Module continuous_delivery_scripts.spdx_report.spdx_summ "licence": p.licence, "is_compliant": is_compliant, "mark_as_problematic": not is_licence_compliant, - "licence_compliance_details": "Licence is compliant." - if is_licence_compliant - else ( - f"Package's licence manually checked: {manual_check_details}" - if package_manually_checked - else "Licence is not compliant according to project's configuration." + "licence_compliance_details": ( + "Licence is compliant." + if is_licence_compliant + else ( + f"Package's licence manually checked: {manual_check_details}" + if package_manually_checked + else "Licence is not compliant according to project's configuration." + ) ), } @@ -172,7 +176,7 @@

Module continuous_delivery_scripts.spdx_report.spdx_summ

Functions

-def generate_file_based_on_template(output_dir: pathlib.Path, template_name: str, template_args: dict, suffix: str = None) ‑> None +def generate_file_based_on_template(output_dir: pathlib.Path, template_name: str, template_args: dict, suffix: Optional[str] = None) ‑> None

Write file based on template and arguments.

@@ -181,7 +185,7 @@

Functions

Expand source code
def generate_file_based_on_template(
-    output_dir: Path, template_name: str, template_args: dict, suffix: str = None
+    output_dir: Path, template_name: str, template_args: dict, suffix: Optional[str] = None
 ) -> None:
     """Write file based on template and arguments."""
     logger.info("Loading template '%s'.", template_name)
@@ -233,11 +237,13 @@ 

Classes

"name": self.project.name, "compliance": global_compliance, "compliance_details": ( - f"Project [{self.project.name}]'s licence is compliant: {self.project.licence}." - "All its dependencies are also compliant licence-wise." - ) - if global_compliance - else f"Project [{self.project.name}] or one, at least, of its dependencies has a non compliant licence", + ( + f"Project [{self.project.name}]'s licence is compliant: {self.project.licence}." + "All its dependencies are also compliant licence-wise." + ) + if global_compliance + else f"Project [{self.project.name}] or one, at least, of its dependencies has a non compliant licence" + ), } arguments["packages"] = description_list arguments["render_time"] = datetime.datetime.now() @@ -275,12 +281,14 @@

Classes

"licence": p.licence, "is_compliant": is_compliant, "mark_as_problematic": not is_licence_compliant, - "licence_compliance_details": "Licence is compliant." - if is_licence_compliant - else ( - f"Package's licence manually checked: {manual_check_details}" - if package_manually_checked - else "Licence is not compliant according to project's configuration." + "licence_compliance_details": ( + "Licence is compliant." + if is_licence_compliant + else ( + f"Package's licence manually checked: {manual_check_details}" + if package_manually_checked + else "Licence is not compliant according to project's configuration." + ) ), } diff --git a/docs/tag_and_release.html b/docs/tag_and_release.html index 45f2838..776f84e 100644 --- a/docs/tag_and_release.html +++ b/docs/tag_and_release.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.tag_and_releaseExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Orchestrates release process."""
diff --git a/docs/third_party_IP_report.csv b/docs/third_party_IP_report.csv
index a54bc7f..ca1d773 100644
--- a/docs/third_party_IP_report.csv
+++ b/docs/third_party_IP_report.csv
@@ -1,50 +1,52 @@
 Compliance, Name,Is a dependency?,URL,Licence,Details
-True,bleach,True,https://github.com/mozilla/bleach,Apache-2.0,Licence is compliant.
+False,backports.tarfile,True,None,Unknown,Licence is not compliant according to project's configuration.
 True,boolean.py,True,https://github.com/bastikr/boolean.py,BSD-2-Clause,Licence is compliant.
 True,boto3,True,https://github.com/boto/boto3,Apache-2.0,Licence is compliant.
 True,botocore,True,https://github.com/boto/botocore,Apache-2.0,Licence is compliant.
 True,bracex,True,None,Unknown,Package's licence manually checked: MIT
 True,certifi,True,https://github.com/certifi/python-certifi,MPL-2.0,Licence is compliant.
 True,cffi,True,http://cffi.readthedocs.org,MIT,Licence is compliant.
-True,charset-normalizer,True,https://github.com/Ousret/charset_normalizer,MIT,Licence is compliant.
-True,click,True,https://palletsprojects.com/p/click/,BSD-3-Clause,Licence is compliant.
-True,click-default-group,True,https://github.com/sublee/click-default-group/,0BSD,Licence is compliant.
+True,charset-normalizer,True,None,MIT,Licence is compliant.
+True,click,True,None,Unknown,Package's licence manually checked: BSD-3-Clause
+True,click-default-group,True,None,Unknown,Package's licence manually checked: BSD-3-Clause
 True,continuous-delivery-scripts,False,https://github.com/ARMmbed/continuous-delivery-scripts,Apache-2.0,Licence is compliant.
-True,cryptography,True,https://github.com/pyca/cryptography,APSL-2.0 AND (Apache-2.0 OR BSD-3-Clause),Package's licence manually checked: ((Apache-2.0 OR BSD-3-Clause) AND PSF-2.0)
-True,docutils,True,https://docutils.sourceforge.io/,Python-2.0,Licence is compliant.
+True,cryptography,True,None,Apache-2.0 OR BSD-3-Clause,Licence is compliant.
+True,docutils,True,None,Unknown,Package's licence manually checked: BSD-3-Clause
 True,gitdb,True,https://github.com/gitpython-developers/gitdb,0BSD,Licence is compliant.
-True,GitPython,True,https://github.com/gitpython-developers/GitPython,0BSD,Licence is compliant.
+True,GitPython,True,https://github.com/gitpython-developers/GitPython,BSD-3-Clause,Licence is compliant.
 True,idna,True,None,Unknown,Package's licence manually checked: BSD-3-Clause
-True,importlib-metadata,True,https://github.com/python/importlib_metadata,Unknown,Package's licence manually checked: Apache-2.0 or Python-2.0
-True,incremental,True,https://github.com/twisted/incremental,MIT,Licence is compliant.
-True,isodate,True,https://github.com/gweis/isodate/,0BSD,Licence is compliant.
+True,importlib_metadata,True,None,Unknown,Package's licence manually checked: Apache-2.0
+True,incremental,True,None,Unknown,Package's licence manually checked: MIT
 False,jaraco.classes,True,https://github.com/jaraco/jaraco.classes,Unknown,Licence is not compliant according to project's configuration.
+False,jaraco.context,True,None,Unknown,Licence is not compliant according to project's configuration.
+False,jaraco.functools,True,None,Unknown,Licence is not compliant according to project's configuration.
 True,jeepney,True,https://gitlab.com/takluyver/jeepney,Unknown,Package's licence manually checked: MIT
-True,jellyfish,True,http://github.com/jamesturk/jellyfish,Unknown,Package's licence manually checked: BSD-2-Clause
+True,jellyfish,True,None,MIT,Licence is compliant.
 True,Jinja2,True,https://palletsprojects.com/p/jinja/,BSD-3-Clause,Licence is compliant.
 True,jmespath,True,https://github.com/jmespath/jmespath.py,MIT,Licence is compliant.
-True,keyring,True,https://github.com/jaraco/keyring,Unknown,Package's licence manually checked: MIT
-True,license-expression,True,https://github.com/nexB/license-expression,Apache-2.0,Licence is compliant.
+True,keyring,True,None,Unknown,Package's licence manually checked: MIT
+True,license-expression,True,https://github.com/aboutcode-org/license-expression,Apache-2.0,Licence is compliant.
 True,licenseheaders,True,http://github.com/johann-petrak/licenseheaders,MIT,Licence is compliant.
 True,Mako,True,https://www.makotemplates.org/,MIT,Licence is compliant.
-True,Markdown,True,https://Python-Markdown.github.io/,0BSD,Licence is compliant.
+True,Markdown,True,None,BSD-1-Clause,Licence is compliant.
 True,markdown-it-py,True,None,Unknown,Package's licence manually checked: MIT
 True,MarkupSafe,True,https://palletsprojects.com/p/markupsafe/,BSD-3-Clause,Licence is compliant.
 True,mdurl,True,None,Unknown,Package's licence manually checked: MIT
 True,more-itertools,True,None,Unknown,Package's licence manually checked: MIT
+True,nh3,True,None,MIT,Licence is compliant.
 True,packaging,True,None,Unknown,Package's licence manually checked: either Apache-2.0 or BSD-2-Clause
 True,pdoc3,True,https://pdoc3.github.io/pdoc/,AGPL-3.0,Package's licence manually checked: Accepted for this project since not distributed
 True,pkginfo,True,https://code.launchpad.net/~tseaver/pkginfo/trunk,MIT,Licence is compliant.
 True,ply,True,http://www.dabeaz.com/ply/,0BSD,Licence is compliant.
 True,pyautoversion,True,https://github.com/ARMmbed/autoversion,Apache-2.0,Licence is compliant.
-True,pycparser,True,https://github.com/eliben/pycparser,0BSD,Licence is compliant.
-True,Pygments,True,https://pygments.org/,BSD-2-Clause,Licence is compliant.
+True,pycparser,True,https://github.com/eliben/pycparser,BSD-3-Clause,Licence is compliant.
+True,Pygments,True,None,BSD-2-Clause,Licence is compliant.
 True,pyparsing,True,None,Unknown,Package's licence manually checked: MIT
 True,python-dateutil,True,https://github.com/dateutil/dateutil,Unknown,Package's licence manually checked: All contributions after December 1, 2017 released under dual license - either Apache 2.0 License or the BSD 3-Clause License.
 True,python-dotenv,True,https://github.com/theskumar/python-dotenv,BSD-3-Clause,Licence is compliant.
 True,PyYAML,True,https://pyyaml.org/,MIT,Licence is compliant.
 True,rdflib,True,https://github.com/RDFLib/rdflib,BSD-3-Clause,Licence is compliant.
-True,readme-renderer,True,https://github.com/pypa/readme_renderer,Apache-2.0,Licence is compliant.
+True,readme_renderer,True,None,Apache-2.0,Licence is compliant.
 True,regex,True,https://github.com/mrabarnett/mrab-regex,Apache-2.0,Licence is compliant.
 True,requests,True,https://requests.readthedocs.io,Apache-2.0,Licence is compliant.
 True,requests-toolbelt,True,https://toolbelt.readthedocs.io/,Apache-2.0,Licence is compliant.
@@ -53,16 +55,14 @@ True,rich,True,https://github.com/Textualize/rich,MIT,Licence is compliant.
 True,s3transfer,True,https://github.com/boto/s3transfer,Apache-2.0,Licence is compliant.
 True,SecretStorage,True,https://github.com/mitya57/secretstorage,BSD-1-Clause,Licence is compliant.
 True,semver,True,https://github.com/python-semver/python-semver,0BSD,Licence is compliant.
-True,setuptools,True,https://github.com/pypa/setuptools,Unknown,Package's licence manually checked: MIT
+True,setuptools,True,None,Unknown,Package's licence manually checked: MIT
 True,six,True,https://github.com/benjaminp/six,MIT,Licence is compliant.
-True,smmap,True,https://github.com/gitpython-developers/smmap,0BSD,Licence is compliant.
+True,smmap,True,https://github.com/gitpython-developers/smmap,BSD-3-Clause,Licence is compliant.
 True,spdx-tools,True,https://github.com/spdx/tools-python,Apache-2.0,Licence is compliant.
 True,toml,True,https://github.com/uiri/toml,MIT,Licence is compliant.
-True,tomli,True,None,Unknown,Package's licence manually checked: MIT
 True,towncrier,True,https://github.com/twisted/towncrier,MIT,Licence is compliant.
-True,twine,True,https://twine.readthedocs.io/,Unknown,Package's licence manually checked: Apache-2.0
-True,urllib3,True,https://urllib3.readthedocs.io/,MIT,Licence is compliant.
+True,twine,True,None,Unknown,Package's licence manually checked: Apache-2.0
+True,urllib3,True,None,Unknown,Package's licence manually checked: MIT
 True,wcmatch,True,None,Unknown,Package's licence manually checked: MIT
-True,webencodings,True,https://github.com/SimonSapin/python-webencodings,0BSD,Licence is compliant.
 True,xmltodict,True,https://github.com/martinblech/xmltodict,MIT,Licence is compliant.
-True,zipp,True,https://github.com/jaraco/zipp,Unknown,Package's licence manually checked: MIT
+True,zipp,True,None,Unknown,Package's licence manually checked: MIT
diff --git a/docs/third_party_IP_report.html b/docs/third_party_IP_report.html
index 87987a6..4375fa7 100644
--- a/docs/third_party_IP_report.html
+++ b/docs/third_party_IP_report.html
@@ -65,7 +65,7 @@
   
   
     

Project's 3rd party IP report

-

2023-03-01 15:02:15.486066

+

2025-01-09 21:14:36.365739

Summary

@@ -92,20 +92,20 @@

Package licences

- + @@ -217,7 +217,7 @@

Package licences

@@ -251,14 +251,14 @@

Package licences

@@ -285,14 +285,14 @@

Package licences

@@ -302,14 +302,14 @@

Package licences

@@ -339,7 +339,7 @@

Package licences

https://github.com/gitpython-developers/GitPython @@ -387,41 +387,58 @@

Package licences

- + + + + + + + + + @@ -506,7 +523,7 @@

Package licences

+ + + + + + + + @@ -747,7 +781,7 @@

Package licences

https://github.com/eliben/pycparser - - - - - - - - @@ -1135,7 +1152,7 @@

Package licences

@@ -1178,23 +1195,6 @@

Package licences

- - - - - - - - @@ -1220,7 +1220,7 @@

Package licences

Details
- bleach + backports.tarfile Y - https://github.com/mozilla/bleach + None - Apache-2.0 + Unknown - Licence is compliant. + Licence is not compliant according to project's configuration.
Y - https://github.com/Ousret/charset_normalizer + None MIT @@ -234,14 +234,14 @@

Package licences

Y - https://palletsprojects.com/p/click/ + None - BSD-3-Clause + Unknown - Licence is compliant. + Package's licence manually checked: BSD-3-Clause
Y - https://github.com/sublee/click-default-group/ + None - 0BSD + Unknown - Licence is compliant. + Package's licence manually checked: BSD-3-Clause
Y - https://github.com/pyca/cryptography + None - APSL-2.0 AND (Apache-2.0 OR BSD-3-Clause) + Apache-2.0 OR BSD-3-Clause - Package's licence manually checked: ((Apache-2.0 OR BSD-3-Clause) AND PSF-2.0) + Licence is compliant.
Y - https://docutils.sourceforge.io/ + None - Python-2.0 + Unknown - Licence is compliant. + Package's licence manually checked: BSD-3-Clause
- 0BSD + BSD-3-Clause @@ -366,18 +366,18 @@

Package licences

- importlib-metadata + importlib_metadata Y - https://github.com/python/importlib_metadata + None Unknown - Package's licence manually checked: Apache-2.0 or Python-2.0 + Package's licence manually checked: Apache-2.0
Y - https://github.com/twisted/incremental + None - MIT + Unknown - Licence is compliant. + Package's licence manually checked: MIT
- isodate + jaraco.classes Y - https://github.com/gweis/isodate/ + https://github.com/jaraco/jaraco.classes - 0BSD + Unknown - Licence is compliant. + Licence is not compliant according to project's configuration.
- jaraco.classes + jaraco.context Y - https://github.com/jaraco/jaraco.classes + None + + Unknown + + + Licence is not compliant according to project's configuration. +
+ jaraco.functools + Y + None Unknown @@ -455,14 +472,14 @@

Package licences

Y - http://github.com/jamesturk/jellyfish + None - Unknown + MIT - Package's licence manually checked: BSD-2-Clause + Licence is compliant.
Y - https://github.com/jaraco/keyring + None Unknown @@ -523,7 +540,7 @@

Package licences

Y - https://github.com/nexB/license-expression + https://github.com/aboutcode-org/license-expression Apache-2.0 @@ -574,10 +591,10 @@

Package licences

Y - https://Python-Markdown.github.io/ + None - 0BSD + BSD-1-Clause @@ -651,6 +668,23 @@

Package licences

Package's licence manually checked: MIT
+ nh3 + Y + None + + MIT + + + Licence is compliant. +
- 0BSD + BSD-3-Clause @@ -761,7 +795,7 @@

Package licences

Y - https://pygments.org/ + None BSD-2-Clause @@ -859,11 +893,11 @@

Package licences

- readme-renderer + readme_renderer Y - https://github.com/pypa/readme_renderer + None Apache-2.0 @@ -1016,7 +1050,7 @@

Package licences

Y - https://github.com/pypa/setuptools + None Unknown @@ -1053,7 +1087,7 @@

Package licences

https://github.com/gitpython-developers/smmap
- 0BSD + BSD-3-Clause @@ -1093,23 +1127,6 @@

Package licences

Licence is compliant.
- tomli - Y - None - - Unknown - - - Package's licence manually checked: MIT -
Y - https://twine.readthedocs.io/ + None Unknown @@ -1152,14 +1169,14 @@

Package licences

Y - https://urllib3.readthedocs.io/ + None - MIT + Unknown - Licence is compliant. + Package's licence manually checked: MIT
Package's licence manually checked: MIT
- webencodings - Y - https://github.com/SimonSapin/python-webencodings - - 0BSD - - - Licence is compliant. -
Y - https://github.com/jaraco/zipp + None Unknown diff --git a/docs/third_party_IP_report.txt b/docs/third_party_IP_report.txt index 27270a7..0498562 100644 --- a/docs/third_party_IP_report.txt +++ b/docs/third_party_IP_report.txt @@ -1,6 +1,6 @@ 3rd party IP report for continuous-delivery-scripts - 2023-03-01 15:02:15.486066 + 2025-01-09 21:14:36.365739 # Summary: Licence compliance: Not compliant @@ -8,12 +8,12 @@ # More details: -- bleach: - [X] Compliant? +- backports.tarfile: + [] Compliant? [X] Dependency? - URL: https://github.com/mozilla/bleach - Licence: Apache-2.0 - Licence compliance: Licence is compliant. + URL: None + Licence: Unknown + Licence compliance: Licence is not compliant according to project's configuration. - boolean.py: [X] Compliant? @@ -60,23 +60,23 @@ - charset-normalizer: [X] Compliant? [X] Dependency? - URL: https://github.com/Ousret/charset_normalizer + URL: None Licence: MIT Licence compliance: Licence is compliant. - click: [X] Compliant? [X] Dependency? - URL: https://palletsprojects.com/p/click/ - Licence: BSD-3-Clause - Licence compliance: Licence is compliant. + URL: None + Licence: Unknown + Licence compliance: Package's licence manually checked: BSD-3-Clause - click-default-group: [X] Compliant? [X] Dependency? - URL: https://github.com/sublee/click-default-group/ - Licence: 0BSD - Licence compliance: Licence is compliant. + URL: None + Licence: Unknown + Licence compliance: Package's licence manually checked: BSD-3-Clause - continuous-delivery-scripts: [X] Compliant? @@ -88,16 +88,16 @@ - cryptography: [X] Compliant? [X] Dependency? - URL: https://github.com/pyca/cryptography - Licence: APSL-2.0 AND (Apache-2.0 OR BSD-3-Clause) - Licence compliance: Package's licence manually checked: ((Apache-2.0 OR BSD-3-Clause) AND PSF-2.0) + URL: None + Licence: Apache-2.0 OR BSD-3-Clause + Licence compliance: Licence is compliant. - docutils: [X] Compliant? [X] Dependency? - URL: https://docutils.sourceforge.io/ - Licence: Python-2.0 - Licence compliance: Licence is compliant. + URL: None + Licence: Unknown + Licence compliance: Package's licence manually checked: BSD-3-Clause - gitdb: [X] Compliant? @@ -110,7 +110,7 @@ [X] Compliant? [X] Dependency? URL: https://github.com/gitpython-developers/GitPython - Licence: 0BSD + Licence: BSD-3-Clause Licence compliance: Licence is compliant. - idna: @@ -120,26 +120,19 @@ Licence: Unknown Licence compliance: Package's licence manually checked: BSD-3-Clause -- importlib-metadata: +- importlib_metadata: [X] Compliant? [X] Dependency? - URL: https://github.com/python/importlib_metadata + URL: None Licence: Unknown - Licence compliance: Package's licence manually checked: Apache-2.0 or Python-2.0 + Licence compliance: Package's licence manually checked: Apache-2.0 - incremental: [X] Compliant? [X] Dependency? - URL: https://github.com/twisted/incremental - Licence: MIT - Licence compliance: Licence is compliant. - -- isodate: - [X] Compliant? - [X] Dependency? - URL: https://github.com/gweis/isodate/ - Licence: 0BSD - Licence compliance: Licence is compliant. + URL: None + Licence: Unknown + Licence compliance: Package's licence manually checked: MIT - jaraco.classes: [] Compliant? @@ -148,6 +141,20 @@ Licence: Unknown Licence compliance: Licence is not compliant according to project's configuration. +- jaraco.context: + [] Compliant? + [X] Dependency? + URL: None + Licence: Unknown + Licence compliance: Licence is not compliant according to project's configuration. + +- jaraco.functools: + [] Compliant? + [X] Dependency? + URL: None + Licence: Unknown + Licence compliance: Licence is not compliant according to project's configuration. + - jeepney: [X] Compliant? [X] Dependency? @@ -158,9 +165,9 @@ - jellyfish: [X] Compliant? [X] Dependency? - URL: http://github.com/jamesturk/jellyfish - Licence: Unknown - Licence compliance: Package's licence manually checked: BSD-2-Clause + URL: None + Licence: MIT + Licence compliance: Licence is compliant. - Jinja2: [X] Compliant? @@ -179,14 +186,14 @@ - keyring: [X] Compliant? [X] Dependency? - URL: https://github.com/jaraco/keyring + URL: None Licence: Unknown Licence compliance: Package's licence manually checked: MIT - license-expression: [X] Compliant? [X] Dependency? - URL: https://github.com/nexB/license-expression + URL: https://github.com/aboutcode-org/license-expression Licence: Apache-2.0 Licence compliance: Licence is compliant. @@ -207,8 +214,8 @@ - Markdown: [X] Compliant? [X] Dependency? - URL: https://Python-Markdown.github.io/ - Licence: 0BSD + URL: None + Licence: BSD-1-Clause Licence compliance: Licence is compliant. - markdown-it-py: @@ -239,6 +246,13 @@ Licence: Unknown Licence compliance: Package's licence manually checked: MIT +- nh3: + [X] Compliant? + [X] Dependency? + URL: None + Licence: MIT + Licence compliance: Licence is compliant. + - packaging: [X] Compliant? [X] Dependency? @@ -278,13 +292,13 @@ [X] Compliant? [X] Dependency? URL: https://github.com/eliben/pycparser - Licence: 0BSD + Licence: BSD-3-Clause Licence compliance: Licence is compliant. - Pygments: [X] Compliant? [X] Dependency? - URL: https://pygments.org/ + URL: None Licence: BSD-2-Clause Licence compliance: Licence is compliant. @@ -323,10 +337,10 @@ Licence: BSD-3-Clause Licence compliance: Licence is compliant. -- readme-renderer: +- readme_renderer: [X] Compliant? [X] Dependency? - URL: https://github.com/pypa/readme_renderer + URL: None Licence: Apache-2.0 Licence compliance: Licence is compliant. @@ -389,7 +403,7 @@ - setuptools: [X] Compliant? [X] Dependency? - URL: https://github.com/pypa/setuptools + URL: None Licence: Unknown Licence compliance: Package's licence manually checked: MIT @@ -404,7 +418,7 @@ [X] Compliant? [X] Dependency? URL: https://github.com/gitpython-developers/smmap - Licence: 0BSD + Licence: BSD-3-Clause Licence compliance: Licence is compliant. - spdx-tools: @@ -421,13 +435,6 @@ Licence: MIT Licence compliance: Licence is compliant. -- tomli: - [X] Compliant? - [X] Dependency? - URL: None - Licence: Unknown - Licence compliance: Package's licence manually checked: MIT - - towncrier: [X] Compliant? [X] Dependency? @@ -438,16 +445,16 @@ - twine: [X] Compliant? [X] Dependency? - URL: https://twine.readthedocs.io/ + URL: None Licence: Unknown Licence compliance: Package's licence manually checked: Apache-2.0 - urllib3: [X] Compliant? [X] Dependency? - URL: https://urllib3.readthedocs.io/ - Licence: MIT - Licence compliance: Licence is compliant. + URL: None + Licence: Unknown + Licence compliance: Package's licence manually checked: MIT - wcmatch: [X] Compliant? @@ -456,13 +463,6 @@ Licence: Unknown Licence compliance: Package's licence manually checked: MIT -- webencodings: - [X] Compliant? - [X] Dependency? - URL: https://github.com/SimonSapin/python-webencodings - Licence: 0BSD - Licence compliance: Licence is compliant. - - xmltodict: [X] Compliant? [X] Dependency? @@ -473,6 +473,6 @@ - zipp: [X] Compliant? [X] Dependency? - URL: https://github.com/jaraco/zipp + URL: None Licence: Unknown Licence compliance: Package's licence manually checked: MIT diff --git a/docs/utils/aws_helpers.html b/docs/utils/aws_helpers.html index b3126ed..eb7bdf8 100644 --- a/docs/utils/aws_helpers.html +++ b/docs/utils/aws_helpers.html @@ -33,7 +33,7 @@

Module continuous_delivery_scripts.utils.aws_helpersExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Helpers for interacting with AWS services such as S3.
diff --git a/docs/utils/configuration.html b/docs/utils/configuration.html
index fe3eb75..b32f939 100644
--- a/docs/utils/configuration.html
+++ b/docs/utils/configuration.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.utils.configurationExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Utilities in charge of fetching configuration values for the ci scripts."""
@@ -273,7 +273,7 @@ 

Module continuous_delivery_scripts.utils.configurationClasses

class ConfigurationVariable -(value, names=None, *, module=None, qualname=None, type=None, start=1) +(*args, **kwds)

Project's configuration variables.

@@ -733,7 +733,7 @@

Inherited members

class FileConfig -(file_path: str = None) +(file_path: Optional[str] = None)

Configuration set in toml file.

@@ -768,7 +768,7 @@

Args

PATH_TOKEN = {"DIR", "ROOT", "PATH"} CONFIG_FILE_NAME = "pyproject.toml" - def __init__(self, file_path: str = None) -> None: + def __init__(self, file_path: Optional[str] = None) -> None: """Constructor. Args: diff --git a/docs/utils/definitions.html b/docs/utils/definitions.html index ef13ab0..361e89b 100644 --- a/docs/utils/definitions.html +++ b/docs/utils/definitions.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.utils.definitionsExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Place to store generic project concepts for the ci scripts."""
@@ -85,7 +85,7 @@ 

Classes

class CommitType -(value, names=None, *, module=None, qualname=None, type=None, start=1) +(*args, **kwds)

Type of commits.

diff --git a/docs/utils/filesystem_helpers.html b/docs/utils/filesystem_helpers.html index 172ee84..d87b193 100644 --- a/docs/utils/filesystem_helpers.html +++ b/docs/utils/filesystem_helpers.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.utils.filesystem_help Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Helpers with regards to actions on the filesystem."""
diff --git a/docs/utils/git_helpers.html b/docs/utils/git_helpers.html
index a930ac7..da6c34b 100644
--- a/docs/utils/git_helpers.html
+++ b/docs/utils/git_helpers.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.utils.git_helpersExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Utility script to abstract git operations for our CI scripts."""
@@ -147,7 +147,7 @@ 

Module continuous_delivery_scripts.utils.git_helpersModule continuous_delivery_scripts.utils.git_helpersModule continuous_delivery_scripts.utils.git_helpersModule continuous_delivery_scripts.utils.git_helpersModule continuous_delivery_scripts.utils.git_helpersModule continuous_delivery_scripts.utils.git_helpersArgs

path_in_initial_repo: path to a file/directory in initial repository. Returns: - corresponding path. + corresponding path. """ if not path_in_initial_repo.is_absolute(): return Path(self.root).joinpath(path_in_initial_repo) @@ -972,7 +974,7 @@

Returns

path_in_initial_repo: path to a file/directory in initial repository. Returns: - corresponding path. + corresponding path. """ if not path_in_initial_repo.is_absolute(): return Path(self.root).joinpath(path_in_initial_repo) @@ -1211,7 +1213,7 @@

Args

""" self.repo.git.checkout(branch) - def _add_one_file_or_one_dir(self, path: str) -> None: + def _add_one_file_or_one_dir(self, path: Path) -> None: if not path: raise ValueError("Unspecified path.") self._add_one_path(Path(path)) @@ -1229,7 +1231,7 @@

Args

logger.info(f"Adding {unix_relative_path} to repository.") self.repo.git.add(unix_relative_path) - def add(self, path: Union[list, set, str]) -> None: + def add(self, path: Union[list, set, Path]) -> None: """Adds a file or a list of files. Args: @@ -1585,7 +1587,7 @@

Args

Repository is considered dirty when git status returns elements which are not committed. """ - return self.repo.is_dirty(untracked_files=True) + return bool(self.repo.is_dirty(untracked_files=True)) def clean(self) -> None: """Cleans the repository. @@ -1685,17 +1687,19 @@

Args

is_release = self.is_release_branch(current_branch) return not (is_master or is_beta or is_release) - def is_current_branch_of_type(self, pattern: str) -> (bool, Optional[List[Any]]): + def is_current_branch_of_type(self, pattern: str) -> Tuple[bool, Optional[List[Any]]]: """Returns boolean indicating whether the current branch follows the pattern and the list of groups if any.""" return self._is_branch_of_type(self.get_current_branch(), pattern) - def _is_branch_of_type(self, branch_name: Optional[str], pattern: Optional[str]) -> (bool, Optional[List[Any]]): + def _is_branch_of_type( + self, branch_name: Optional[str], pattern: Optional[str] + ) -> Tuple[bool, Optional[List[Any]]]: if not pattern: return False, None if not branch_name: return False, None match = re.search(pattern, str(branch_name)) - return True if match else False, match.groups() if match else None + return True if match else False, list(match.groups()) if match else None @property def uncommitted_changes(self) -> List[Path]: @@ -1740,7 +1744,7 @@

Args

"""Applies the uncommitted changes found in current repository to another. Args: - other_repo: repository to apply changes to + other_repo: repository to apply changes to """ dest_root = other_repo.root for f in self.uncommitted_changes: @@ -1845,7 +1849,7 @@

Returns

Methods

-def add(self, path: Union[list, set, str]) ‑> None +def add(self, path: Union[list, set, pathlib.Path]) ‑> None

Adds a file or a list of files.

@@ -1858,7 +1862,7 @@

Args

Expand source code -
def add(self, path: Union[list, set, str]) -> None:
+
def add(self, path: Union[list, set, Path]) -> None:
     """Adds a file or a list of files.
 
     Args:
@@ -1889,7 +1893,7 @@ 

Args

"""Applies the uncommitted changes found in current repository to another. Args: - other_repo: repository to apply changes to + other_repo: repository to apply changes to """ dest_root = other_repo.root for f in self.uncommitted_changes: @@ -2677,7 +2681,7 @@

Returns

-def is_current_branch_of_type(self, pattern: str) ‑> (, typing.Optional[typing.List[typing.Any]]) +def is_current_branch_of_type(self, pattern: str) ‑> Tuple[bool, Optional[List[Any]]]

Returns boolean indicating whether the current branch follows the pattern and the list of groups if any.

@@ -2685,7 +2689,7 @@

Returns

Expand source code -
def is_current_branch_of_type(self, pattern: str) -> (bool, Optional[List[Any]]):
+
def is_current_branch_of_type(self, pattern: str) -> Tuple[bool, Optional[List[Any]]]:
     """Returns boolean indicating whether the current branch follows the pattern and the list of groups if any."""
     return self._is_branch_of_type(self.get_current_branch(), pattern)
@@ -2705,7 +2709,7 @@

Returns

Repository is considered dirty when git status returns elements which are not committed. """ - return self.repo.is_dirty(untracked_files=True)
+ return bool(self.repo.is_dirty(untracked_files=True))

diff --git a/docs/utils/hash_helpers.html b/docs/utils/hash_helpers.html index 5748b1b..d2b42b6 100644 --- a/docs/utils/hash_helpers.html +++ b/docs/utils/hash_helpers.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.utils.hash_helpersExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Helpers for calculating hashes or UUID."""
diff --git a/docs/utils/index.html b/docs/utils/index.html
index 4b7f9fe..c3f5be0 100644
--- a/docs/utils/index.html
+++ b/docs/utils/index.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.utils

Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Utility scripts to abstract and assist with scripts run in the CI."""
diff --git a/docs/utils/language_specifics_base.html b/docs/utils/language_specifics_base.html index cac36d4..42e3fb6 100644 --- a/docs/utils/language_specifics_base.html +++ b/docs/utils/language_specifics_base.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.utils.language_specif Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Base class for all Language plugins."""
@@ -112,8 +112,8 @@ 

Module continuous_delivery_scripts.utils.language_specif """Tags release commit.""" logger.info(f"Tagging commit as release {version}") git.create_tag(self.get_version_tag(version), message=f"release {version}") - for shortcut, version in shortcuts.items(): - if version: + for shortcut, versions in shortcuts.items(): + if versions: git.create_tag(self.get_version_tag(shortcut), message=f"{shortcut} release") else: git.create_tag(shortcut, message=shortcut) @@ -231,8 +231,8 @@

Classes

"""Tags release commit.""" logger.info(f"Tagging commit as release {version}") git.create_tag(self.get_version_tag(version), message=f"release {version}") - for shortcut, version in shortcuts.items(): - if version: + for shortcut, versions in shortcuts.items(): + if versions: git.create_tag(self.get_version_tag(shortcut), message=f"{shortcut} release") else: git.create_tag(shortcut, message=shortcut) @@ -480,8 +480,8 @@

Methods

"""Tags release commit.""" logger.info(f"Tagging commit as release {version}") git.create_tag(self.get_version_tag(version), message=f"release {version}") - for shortcut, version in shortcuts.items(): - if version: + for shortcut, versions in shortcuts.items(): + if versions: git.create_tag(self.get_version_tag(shortcut), message=f"{shortcut} release") else: git.create_tag(shortcut, message=shortcut)

diff --git a/docs/utils/logging.html b/docs/utils/logging.html index c6594ca..40dfd8e 100644 --- a/docs/utils/logging.html +++ b/docs/utils/logging.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.utils.logging< Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Helpers for logging errors according to severity of the exception."""
diff --git a/docs/utils/news_file.html b/docs/utils/news_file.html
index a736b95..010762a 100644
--- a/docs/utils/news_file.html
+++ b/docs/utils/news_file.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.utils.news_fileExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Helpers with regards to news files."""
@@ -161,7 +161,7 @@ 

Classes

class NewsType -(value, names=None, *, module=None, qualname=None, type=None, start=1) +(*args, **kwds)

Describes the type of news we're writing.

diff --git a/docs/utils/noop/index.html b/docs/utils/noop/index.html index ff63f37..b99fc1d 100644 --- a/docs/utils/noop/index.html +++ b/docs/utils/noop/index.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.utils.noop

Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Utility scripts specific to noop."""
diff --git a/docs/utils/noop/package_helpers.html b/docs/utils/noop/package_helpers.html index 13991cf..c878557 100644 --- a/docs/utils/noop/package_helpers.html +++ b/docs/utils/noop/package_helpers.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.utils.noop.package_he Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Utilities for retrieving NoOp's package information."""
diff --git a/docs/utils/package_helpers.html b/docs/utils/package_helpers.html
index c7db914..607cdb6 100644
--- a/docs/utils/package_helpers.html
+++ b/docs/utils/package_helpers.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.utils.package_helpers Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Utilities for retrieving Python's package information."""
diff --git a/docs/utils/python/index.html b/docs/utils/python/index.html
index 3fc8f5f..e652957 100644
--- a/docs/utils/python/index.html
+++ b/docs/utils/python/index.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.utils.pythonExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Utility scripts specific to python."""
diff --git a/docs/utils/python/package_helpers.html b/docs/utils/python/package_helpers.html index ff09ccf..565d2bc 100644 --- a/docs/utils/python/package_helpers.html +++ b/docs/utils/python/package_helpers.html @@ -32,7 +32,7 @@

Module continuous_delivery_scripts.utils.python.package_ Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Utilities for retrieving Python's package information."""
diff --git a/docs/utils/python/python_helpers.html b/docs/utils/python/python_helpers.html
index fe5ff39..f705175 100644
--- a/docs/utils/python/python_helpers.html
+++ b/docs/utils/python/python_helpers.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.utils.python.python_h Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Utilities around python language."""
diff --git a/docs/utils/string_helpers.html b/docs/utils/string_helpers.html
index d5245bf..1033f15 100644
--- a/docs/utils/string_helpers.html
+++ b/docs/utils/string_helpers.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.utils.string_helpers< Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Utilities regarding string handling."""
diff --git a/docs/utils/third_party_licences.html b/docs/utils/third_party_licences.html
index d3df493..05f6ca7 100644
--- a/docs/utils/third_party_licences.html
+++ b/docs/utils/third_party_licences.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.utils.third_party_lic Expand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Third party licences."""
diff --git a/docs/utils/versioning.html b/docs/utils/versioning.html
index 2760ca4..31b641d 100644
--- a/docs/utils/versioning.html
+++ b/docs/utils/versioning.html
@@ -32,7 +32,7 @@ 

Module continuous_delivery_scripts.utils.versioningExpand source code
#
-# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
 # SPDX-License-Identifier: Apache-2.0
 #
 """Helpers with regards to versioning."""
@@ -106,11 +106,11 @@ 

Module continuous_delivery_scripts.utils.versioningModule continuous_delivery_scripts.utils.versioningReturns

commit_count = version_elements.get(auto_version_tool.Constants.COMMIT_COUNT_FIELD, None) if not commit_count: with LocalProjectRepository() as git: - commit_count = git.get_commit_count() + commit_count = str(git.get_commit_count()) commit_hash = version_elements.get(auto_version_tool.Constants.COMMIT_FIELD, None) if not commit_hash: with LocalProjectRepository() as git: - commit_hash = git.get_commit_hash() + commit_hash = str(git.get_commit_hash()) shortcuts[f"{auto_version_tool.config.BUILD_TOKEN}.{commit_count}+{commit_hash}"] = False return shortcuts
@@ -365,11 +365,11 @@

Args

commit_count = version_elements.get(auto_version_tool.Constants.COMMIT_COUNT_FIELD, None) if not commit_count: with LocalProjectRepository() as git: - commit_count = git.get_commit_count() + commit_count = str(git.get_commit_count()) commit_hash = version_elements.get(auto_version_tool.Constants.COMMIT_FIELD, None) if not commit_hash: with LocalProjectRepository() as git: - commit_hash = git.get_commit_hash() + commit_hash = str(git.get_commit_hash()) return "%s-%s.%s+%s" % ( new_version, auto_version_tool.config.BUILD_TOKEN, diff --git a/news/20230303162821.bugfix b/news/20230303162821.bugfix deleted file mode 100644 index b0aeb56..0000000 --- a/news/20230303162821.bugfix +++ /dev/null @@ -1 +0,0 @@ -Support python 3.11 diff --git a/news/20230307082327.bugfix b/news/20230307082327.bugfix deleted file mode 100644 index ad2d275..0000000 --- a/news/20230307082327.bugfix +++ /dev/null @@ -1 +0,0 @@ -Dependency upgrade: mypy-1.1.1 diff --git a/news/20230317082258.bugfix b/news/20230317082258.bugfix deleted file mode 100644 index 40820f7..0000000 --- a/news/20230317082258.bugfix +++ /dev/null @@ -1 +0,0 @@ -Dependency upgrade: coverage-7.2.2 diff --git a/news/20250109163919.bugfix b/news/20250109163919.bugfix deleted file mode 100644 index 6010285..0000000 --- a/news/20250109163919.bugfix +++ /dev/null @@ -1 +0,0 @@ -:bug: Fix the python error appearing from python > 3.11 diff --git a/news/20250109170328.misc b/news/20250109170328.misc deleted file mode 100644 index f5fc8d0..0000000 --- a/news/20250109170328.misc +++ /dev/null @@ -1 +0,0 @@ -:gear: License all the source files diff --git a/news/20250109185536.bugfix b/news/20250109185536.bugfix deleted file mode 100644 index 69a7c57..0000000 --- a/news/20250109185536.bugfix +++ /dev/null @@ -1 +0,0 @@ -Dependency upgrade: fetch-metadata-2.2.0 diff --git a/news/20250109185845.bugfix b/news/20250109185845.bugfix deleted file mode 100644 index b38c333..0000000 --- a/news/20250109185845.bugfix +++ /dev/null @@ -1 +0,0 @@ -Dependency upgrade: scorecard-action-2.4.0