Skip to content

Commit d26c0cb

Browse files
committed
🚀 releasing version 3.2.1 @ 2025-01-09 21:14
[skip ci]
1 parent 516e08d commit d26c0cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+363
-329
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,26 @@ This project was forked from version 1.7.4 of [mbed-tools-ci-scripts](https://gi
1717

1818
[//]: # (begin_release_notes)
1919

20+
"3.2.1" (2025-01-09)
21+
====================
22+
23+
Bugfixes
24+
--------
25+
26+
- Support python 3.11 (#20230303162821)
27+
- Dependency upgrade: mypy-1.1.1 (#20230307082327)
28+
- Dependency upgrade: coverage-7.2.2 (#20230317082258)
29+
- :bug: Fix the python error appearing from python > 3.11 (#20250109163919)
30+
- Dependency upgrade: fetch-metadata-2.2.0 (#20250109185536)
31+
- Dependency upgrade: scorecard-action-2.4.0 (#20250109185845)
32+
33+
34+
Misc
35+
----
36+
37+
- #20250109170328
38+
39+
2040
"3.2.0" (2023-03-01)
2141
====================
2242

continuous_delivery_scripts/_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
1111
This file is autogenerated, do not modify by hand.
1212
"""
13-
__version__ = "3.2.0"
14-
COMMIT = "b8e85ab7e9d654882a35647095d8e51e4e7773fb"
13+
__version__ = "3.2.1"
14+
COMMIT = "516e08deffc6bba1a9fd975f52587189e19ef5aa"
1515
MAJOR = 3
1616
MINOR = 2
17-
PATCH = 0
17+
PATCH = 1

docs/assert_news.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.assert_news</code></h
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
35+
# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Checks if valid news files are created for changes in the project.&#34;&#34;&#34;
@@ -41,7 +41,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.assert_news</code></h
4141
import pathlib
4242
import re
4343
import sys
44-
from typing import List, Union
44+
from typing import Union, Optional, Iterable, Any, List
4545

4646
from continuous_delivery_scripts.utils.configuration import configuration, ConfigurationVariable
4747
from continuous_delivery_scripts.utils.git_helpers import ProjectTempClone, LocalProjectRepository, GitWrapper
@@ -131,6 +131,12 @@ <h1 class="title">Module <code>continuous_delivery_scripts.assert_news</code></h
131131
validate_news_file(absolute_file_path)
132132

133133

134+
def _convert_to_string_iter(list: Optional[List[Any]]) -&gt; Iterable[str]:
135+
if list is None:
136+
return []
137+
return [str(item) for item in list]
138+
139+
134140
def generate_news_file(git: GitWrapper, news_dir: pathlib.Path) -&gt; pathlib.Path:
135141
&#34;&#34;&#34;Adds a news file if the branch corresponds to an dependency update.
136142

@@ -147,8 +153,9 @@ <h1 class="title">Module <code>continuous_delivery_scripts.assert_news</code></h
147153
if not configuration.get_value(ConfigurationVariable.AUTOGENERATE_NEWS_FILE_ON_DEPENDENCY_UPDATE):
148154
raise EnvironmentError(f&#34;Branch {current_branch} must contain a news file.&#34;)
149155

156+
list_groups = _convert_to_string_iter(groups)
150157
message = str(configuration.get_value(ConfigurationVariable.DEPENDENCY_UPDATE_NEWS_MESSAGE)).format(
151-
message=&#34;, &#34;.join(groups)
158+
message=&#34;, &#34;.join(list_groups)
152159
)
153160
logger.info(f&#34;Generating a news file with content: {message}...&#34;)
154161
return create_news_file(
@@ -163,7 +170,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.assert_news</code></h
163170
logger.info(f&#34;Committing news file {str(news_file)}...&#34;)
164171
if not local:
165172
git.configure_for_github()
166-
git.add(str(news_file))
173+
git.add(news_file)
167174
git.commit(&#34;📰 Automatic changes ⚙ Adding news file&#34;)
168175
if not local:
169176
git.push()
@@ -289,8 +296,9 @@ <h2 id="args">Args</h2>
289296
if not configuration.get_value(ConfigurationVariable.AUTOGENERATE_NEWS_FILE_ON_DEPENDENCY_UPDATE):
290297
raise EnvironmentError(f&#34;Branch {current_branch} must contain a news file.&#34;)
291298

299+
list_groups = _convert_to_string_iter(groups)
292300
message = str(configuration.get_value(ConfigurationVariable.DEPENDENCY_UPDATE_NEWS_MESSAGE)).format(
293-
message=&#34;, &#34;.join(groups)
301+
message=&#34;, &#34;.join(list_groups)
294302
)
295303
logger.info(f&#34;Generating a news file with content: {message}...&#34;)
296304
return create_news_file(

docs/create_news_file.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2 id="usage">Usage</h2>
3434
<span>Expand source code</span>
3535
</summary>
3636
<pre><code class="python">#
37-
# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
37+
# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
3838
# SPDX-License-Identifier: Apache-2.0
3939
#
4040
&#34;&#34;&#34;Easy news files generation.

docs/generate_docs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.generate_docs</code><
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
35+
# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Generates documentation.&#34;&#34;&#34;

docs/generate_news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.generate_news</code><
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
35+
# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Handles usage of towncrier for automated changelog generation and pyautoversion for versioning.&#34;&#34;&#34;

docs/get_config.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.get_config</code></h1
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
35+
# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Retrieves configuration values.&#34;&#34;&#34;

docs/get_version.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ <h1 class="title">Module <code>continuous_delivery_scripts.get_version</code></h
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
35+
# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Determine the project new version.&#34;&#34;&#34;
3939
import sys
4040

41+
from typing import Optional
4142
import argparse
4243
import logging
4344
from continuous_delivery_scripts.utils.versioning import calculate_version, determine_version_string
@@ -48,7 +49,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.get_version</code></h
4849
logger = logging.getLogger(__name__)
4950

5051

51-
def get_project_version_string(commit_type: CommitType) -&gt; str:
52+
def get_project_version_string(commit_type: CommitType) -&gt; Optional[str]:
5253
&#34;&#34;&#34;Determine the project version string.
5354

5455
Args:
@@ -95,7 +96,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.get_version</code></h
9596
<h2 class="section-title" id="header-functions">Functions</h2>
9697
<dl>
9798
<dt id="continuous_delivery_scripts.get_version.get_project_version_string"><code class="name flex">
98-
<span>def <span class="ident">get_project_version_string</span></span>(<span>commit_type: <a title="continuous_delivery_scripts.utils.definitions.CommitType" href="utils/definitions.html#continuous_delivery_scripts.utils.definitions.CommitType">CommitType</a>) ‑> str</span>
99+
<span>def <span class="ident">get_project_version_string</span></span>(<span>commit_type: <a title="continuous_delivery_scripts.utils.definitions.CommitType" href="utils/definitions.html#continuous_delivery_scripts.utils.definitions.CommitType">CommitType</a>) ‑> Optional[str]</span>
99100
</code></dt>
100101
<dd>
101102
<div class="desc"><p>Determine the project version string.</p>
@@ -110,7 +111,7 @@ <h2 id="returns">Returns</h2>
110111
<summary>
111112
<span>Expand source code</span>
112113
</summary>
113-
<pre><code class="python">def get_project_version_string(commit_type: CommitType) -&gt; str:
114+
<pre><code class="python">def get_project_version_string(commit_type: CommitType) -&gt; Optional[str]:
114115
&#34;&#34;&#34;Determine the project version string.
115116

116117
Args:

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Package <code>continuous_delivery_scripts</code></h1>
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
35+
# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Scripts and utilities used by the CI pipeline.&#34;&#34;&#34;

docs/language_specifics.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.language_specifics</c
3232
<span>Expand source code</span>
3333
</summary>
3434
<pre><code class="python">#
35-
# Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
35+
# Copyright (C) 2020-2025 Arm Limited or its affiliates and Contributors. All rights reserved.
3636
# SPDX-License-Identifier: Apache-2.0
3737
#
3838
&#34;&#34;&#34;Language plugins Loader.&#34;&#34;&#34;
@@ -49,8 +49,8 @@ <h1 class="title">Module <code>continuous_delivery_scripts.language_specifics</c
4949
logger = logging.getLogger(__name__)
5050

5151

52-
def _retrieve_all_subclasses(subclass: Type[BaseLanguage]) -&gt; Set[Type[BaseLanguage]]:
53-
subclasses = set()
52+
def _retrieve_all_subclasses(subclass: Type) -&gt; Set[Type]:
53+
subclasses: set = set()
5454
if not subclass:
5555
return subclasses
5656
if subclass != BaseLanguage:
@@ -64,10 +64,10 @@ <h1 class="title">Module <code>continuous_delivery_scripts.language_specifics</c
6464
&#34;&#34;&#34;Fetches all language plugins which inherit from BaseLanguage.
6565

6666
Returns:
67-
A list of classes containing language plugins
67+
A list of classes containing language plugins
6868
&#34;&#34;&#34;
6969
all_plugins = _retrieve_all_subclasses(BaseLanguage)
70-
return {la.get_related_language().lower().strip(): la for la in [lang() for lang in all_plugins]} # type: ignore
70+
return {la.get_related_language().lower().strip(): la for la in [lang() for lang in all_plugins]}
7171

7272

7373
def fetch_project_language_plugin(all_plugins: Dict[str, BaseLanguage], language: str) -&gt; BaseLanguage:
@@ -78,7 +78,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.language_specifics</c
7878
language: the language to select
7979

8080
Returns:
81-
A language plugin corresponding to the language requested
81+
A language plugin corresponding to the language requested
8282
&#34;&#34;&#34;
8383
return cast(BaseLanguage, all_plugins.get(_sanitise_program_language(language)))
8484

@@ -136,10 +136,10 @@ <h2 id="returns">Returns</h2>
136136
&#34;&#34;&#34;Fetches all language plugins which inherit from BaseLanguage.
137137

138138
Returns:
139-
A list of classes containing language plugins
139+
A list of classes containing language plugins
140140
&#34;&#34;&#34;
141141
all_plugins = _retrieve_all_subclasses(BaseLanguage)
142-
return {la.get_related_language().lower().strip(): la for la in [lang() for lang in all_plugins]} # type: ignore</code></pre>
142+
return {la.get_related_language().lower().strip(): la for la in [lang() for lang in all_plugins]}</code></pre>
143143
</details>
144144
</dd>
145145
<dt id="continuous_delivery_scripts.language_specifics.fetch_project_language_plugin"><code class="name flex">
@@ -164,7 +164,7 @@ <h2 id="returns">Returns</h2>
164164
language: the language to select
165165

166166
Returns:
167-
A language plugin corresponding to the language requested
167+
A language plugin corresponding to the language requested
168168
&#34;&#34;&#34;
169169
return cast(BaseLanguage, all_plugins.get(_sanitise_program_language(language)))</code></pre>
170170
</details>

0 commit comments

Comments
 (0)