Skip to content

Commit c219fe3

Browse files
committed
🚀 releasing version 2.3.1 @ 2021-08-11 16:09
[skip ci]
1 parent 6979bef commit c219fe3

File tree

8 files changed

+27
-13
lines changed

8 files changed

+27
-13
lines changed

CHANGELOG.md

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

1818
[//]: # (begin_release_notes)
1919

20+
"2.3.1" (2021-08-11)
21+
====================
22+
23+
Bugfixes
24+
--------
25+
26+
- Made `cd-determine-version` idempotent (#202108111624)
27+
28+
2029
"2.3.0" (2021-08-11)
2130
====================
2231

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__ = "2.3.0"
14-
COMMIT = "be81639291b9d9f0763a32a6d2bdbd050a48a594"
13+
__version__ = "2.3.1"
14+
COMMIT = "6979bef81059a20eced2e9ffb599c315ad3ae534"
1515
MAJOR = 2
1616
MINOR = 3
17-
PATCH = 0
17+
PATCH = 1

docs/generate_news.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.generate_news</code><
6464
(is new version, the new version)
6565
&#34;&#34;&#34;
6666
use_news_files = commit_type in [CommitType.BETA, CommitType.RELEASE]
67-
is_new_version, new_version, version_elements = calculate_version(commit_type, use_news_files)
67+
is_new_version, new_version, version_elements = calculate_version(commit_type, use_news_files, True)
6868
_generate_changelog(new_version, use_news_files)
6969
return is_new_version, new_version, version_elements
7070

@@ -172,7 +172,7 @@ <h2 id="returns">Returns</h2>
172172
(is new version, the new version)
173173
&#34;&#34;&#34;
174174
use_news_files = commit_type in [CommitType.BETA, CommitType.RELEASE]
175-
is_new_version, new_version, version_elements = calculate_version(commit_type, use_news_files)
175+
is_new_version, new_version, version_elements = calculate_version(commit_type, use_news_files, True)
176176
_generate_changelog(new_version, use_news_files)
177177
return is_new_version, new_version, version_elements</code></pre>
178178
</details>

docs/get_version.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.get_version</code></h
5959
(is new version, the new version)
6060
&#34;&#34;&#34;
6161
use_news_files = commit_type in [CommitType.BETA, CommitType.RELEASE]
62-
_, new_version, version_elements = calculate_version(commit_type, use_news_files)
62+
_, new_version, version_elements = calculate_version(commit_type, use_news_files, False)
6363
version_string = determine_version_string(commit_type, new_version, version_elements)
6464
return version_string
6565

@@ -121,7 +121,7 @@ <h2 id="returns">Returns</h2>
121121
(is new version, the new version)
122122
&#34;&#34;&#34;
123123
use_news_files = commit_type in [CommitType.BETA, CommitType.RELEASE]
124-
_, new_version, version_elements = calculate_version(commit_type, use_news_files)
124+
_, new_version, version_elements = calculate_version(commit_type, use_news_files, False)
125125
version_string = determine_version_string(commit_type, new_version, version_elements)
126126
return version_string</code></pre>
127127
</details>

docs/third_party_IP_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</head>
6666
<body>
6767
<h1>Project's 3rd party IP report</h1>
68-
<p><i>2021-08-11 14:59:26.211234</i></p>
68+
<p><i>2021-08-11 16:09:29.908287</i></p>
6969
<h2>Summary</h2>
7070
<table>
7171
<thead>

docs/third_party_IP_report.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
3rd party IP report for continuous-delivery-scripts
22

3-
2021-08-11 14:59:26.211234
3+
2021-08-11 16:09:29.908287
44

55
# Summary:
66
Licence compliance: Compliant

docs/utils/versioning.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.versioning</cod
5050
logger = logging.getLogger(__name__)
5151

5252

53-
def calculate_version(commit_type: CommitType, use_news_files: bool) -&gt; Tuple[bool, Optional[str], Dict[str, str]]:
53+
def calculate_version(
54+
commit_type: CommitType, use_news_files: bool, record_state: bool
55+
) -&gt; Tuple[bool, Optional[str], Dict[str, str]]:
5456
&#34;&#34;&#34;Calculates the version for the release.
5557

5658
eg. &#34;0.1.2&#34;
@@ -77,6 +79,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.versioning</cod
7779
enable_file_triggers=enable_file_triggers,
7880
commit_count_as=bump,
7981
config_path=project_config_path,
82+
dry_run=not record_state,
8083
)
8184
# Autoversion second returned value is not actually the new version
8285
# There seem to be a bug in autoversion.
@@ -138,7 +141,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.versioning</cod
138141
<h2 class="section-title" id="header-functions">Functions</h2>
139142
<dl>
140143
<dt id="continuous_delivery_scripts.utils.versioning.calculate_version"><code class="name flex">
141-
<span>def <span class="ident">calculate_version</span></span>(<span>commit_type: <a title="continuous_delivery_scripts.utils.definitions.CommitType" href="definitions.html#continuous_delivery_scripts.utils.definitions.CommitType">CommitType</a>, use_news_files: bool) ‑> Tuple[bool, Optional[str], Dict[str, str]]</span>
144+
<span>def <span class="ident">calculate_version</span></span>(<span>commit_type: <a title="continuous_delivery_scripts.utils.definitions.CommitType" href="definitions.html#continuous_delivery_scripts.utils.definitions.CommitType">CommitType</a>, use_news_files: bool, record_state: bool) ‑> Tuple[bool, Optional[str], Dict[str, str]]</span>
142145
</code></dt>
143146
<dd>
144147
<div class="desc"><p>Calculates the version for the release.</p>
@@ -158,7 +161,9 @@ <h2 id="returns">Returns</h2>
158161
<summary>
159162
<span>Expand source code</span>
160163
</summary>
161-
<pre><code class="python">def calculate_version(commit_type: CommitType, use_news_files: bool) -&gt; Tuple[bool, Optional[str], Dict[str, str]]:
164+
<pre><code class="python">def calculate_version(
165+
commit_type: CommitType, use_news_files: bool, record_state: bool
166+
) -&gt; Tuple[bool, Optional[str], Dict[str, str]]:
162167
&#34;&#34;&#34;Calculates the version for the release.
163168

164169
eg. &#34;0.1.2&#34;
@@ -185,6 +190,7 @@ <h2 id="returns">Returns</h2>
185190
enable_file_triggers=enable_file_triggers,
186191
commit_count_as=bump,
187192
config_path=project_config_path,
193+
dry_run=not record_state,
188194
)
189195
# Autoversion second returned value is not actually the new version
190196
# There seem to be a bug in autoversion.

news/202108111624.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)