Skip to content

Commit f6b1a4f

Browse files
committed
🚀 releasing version 2.10.0 @ 2022-12-20 20:30
[skip ci]
1 parent 81da182 commit f6b1a4f

15 files changed

+163
-41
lines changed

CHANGELOG.md

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

1818
[//]: # (begin_release_notes)
1919

20+
"2.10.0" (2022-12-20)
21+
=====================
22+
23+
Features
24+
--------
25+
26+
- Added a way to tag releases with version shortcuts such as 1.0 (#20221220194939)
27+
28+
29+
Bugfixes
30+
--------
31+
32+
- Dependency upgrade: scorecard-action-2.1.0 (#20221215071255)
33+
- Dependency upgrade: coverage-7.0.0 (#20221219070757)
34+
35+
2036
"2.9.1" (2022-12-06)
2137
====================
2238

continuous_delivery_scripts/_version.py

Lines changed: 4 additions & 4 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.9.1"
14-
COMMIT = "5a3170d9474353cd032cf2dd80bb0f49a75ad844"
13+
__version__ = "2.10.0"
14+
COMMIT = "81da18232dcce84409b0fd8202f2f2d099503153"
1515
MAJOR = 2
16-
MINOR = 9
17-
PATCH = 1
16+
MINOR = 10
17+
PATCH = 0

docs/get_version.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.get_version</code></h
6666

6767
def main() -&gt; None:
6868
&#34;&#34;&#34;Handle command line arguments to determine version string.&#34;&#34;&#34;
69-
parser = argparse.ArgumentParser(description=&#34;Determine project&#39;s version.&#34;)
69+
parser = argparse.ArgumentParser(description=&#34;Determine project&#39;s new version.&#34;)
7070
parser.add_argument(
7171
&#34;-t&#34;, &#34;--release-type&#34;, help=&#34;type of release to perform&#34;, required=True, type=str, choices=CommitType.choices()
7272
)
@@ -137,7 +137,7 @@ <h2 id="returns">Returns</h2>
137137
</summary>
138138
<pre><code class="python">def main() -&gt; None:
139139
&#34;&#34;&#34;Handle command line arguments to determine version string.&#34;&#34;&#34;
140-
parser = argparse.ArgumentParser(description=&#34;Determine project&#39;s version.&#34;)
140+
parser = argparse.ArgumentParser(description=&#34;Determine project&#39;s new version.&#34;)
141141
parser.add_argument(
142142
&#34;-t&#34;, &#34;--release-type&#34;, help=&#34;type of release to perform&#34;, required=True, type=str, choices=CommitType.choices()
143143
)

docs/plugins/ci.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.ci</code></h1
3838
&#34;&#34;&#34;Plugin for CI projects.&#34;&#34;&#34;
3939
import logging
4040
from pathlib import Path
41-
from typing import Optional
41+
from typing import Optional, List
4242

4343
from continuous_delivery_scripts.spdx_report.spdx_project import SpdxProject
4444
from continuous_delivery_scripts.utils.configuration import configuration, ConfigurationVariable
@@ -96,9 +96,9 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.ci</code></h1
9696
&#34;&#34;&#34;States whether the repository must be cleaned before packaging happens.&#34;&#34;&#34;
9797
return True
9898

99-
def tag_release(self, git: GitWrapper, version: str) -&gt; None:
99+
def tag_release(self, git: GitWrapper, version: str, shortcuts: List[str]) -&gt; None:
100100
&#34;&#34;&#34;Tags release commit.&#34;&#34;&#34;
101-
super().tag_release(git, version)</code></pre>
101+
super().tag_release(git, version, shortcuts)</code></pre>
102102
</details>
103103
</section>
104104
<section>
@@ -167,9 +167,9 @@ <h2 class="section-title" id="header-classes">Classes</h2>
167167
&#34;&#34;&#34;States whether the repository must be cleaned before packaging happens.&#34;&#34;&#34;
168168
return True
169169

170-
def tag_release(self, git: GitWrapper, version: str) -&gt; None:
170+
def tag_release(self, git: GitWrapper, version: str, shortcuts: List[str]) -&gt; None:
171171
&#34;&#34;&#34;Tags release commit.&#34;&#34;&#34;
172-
super().tag_release(git, version)</code></pre>
172+
super().tag_release(git, version, shortcuts)</code></pre>
173173
</details>
174174
<h3>Ancestors</h3>
175175
<ul class="hlist">

docs/plugins/golang.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ <h1 class="title">Module <code>continuous_delivery_scripts.plugins.golang</code>
194194
&#34;&#34;&#34;States whether the repository must be cleaned before packaging happens.&#34;&#34;&#34;
195195
return True
196196

197-
def tag_release(self, git: GitWrapper, version: str) -&gt; None:
197+
def tag_release(self, git: GitWrapper, version: str, shortcuts: List[str]) -&gt; None:
198198
&#34;&#34;&#34;Tags release commit.&#34;&#34;&#34;
199-
super().tag_release(git, version)
199+
super().tag_release(git, version, shortcuts)
200200
go_tag = _determine_go_module_tag(self.get_version_tag(version))
201201
if go_tag:
202202
git.create_tag(go_tag, message=f&#34;Golang module release: {go_tag}&#34;)
@@ -289,9 +289,9 @@ <h2 class="section-title" id="header-classes">Classes</h2>
289289
&#34;&#34;&#34;States whether the repository must be cleaned before packaging happens.&#34;&#34;&#34;
290290
return True
291291

292-
def tag_release(self, git: GitWrapper, version: str) -&gt; None:
292+
def tag_release(self, git: GitWrapper, version: str, shortcuts: List[str]) -&gt; None:
293293
&#34;&#34;&#34;Tags release commit.&#34;&#34;&#34;
294-
super().tag_release(git, version)
294+
super().tag_release(git, version, shortcuts)
295295
go_tag = _determine_go_module_tag(self.get_version_tag(version))
296296
if go_tag:
297297
git.create_tag(go_tag, message=f&#34;Golang module release: {go_tag}&#34;)

docs/tag_and_release.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.tag_and_release</code
4141
import logging
4242
import sys
4343
from pathlib import Path
44-
from typing import Optional, Tuple
44+
from typing import Optional, Tuple, Dict
4545

4646
from continuous_delivery_scripts.generate_docs import generate_documentation
4747
from continuous_delivery_scripts.generate_news import version_project
@@ -52,6 +52,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.tag_and_release</code
5252
from continuous_delivery_scripts.utils.definitions import CommitType
5353
from continuous_delivery_scripts.utils.git_helpers import ProjectTempClone, LocalProjectRepository, GitWrapper
5454
from continuous_delivery_scripts.utils.logging import log_exception, set_log_level
55+
from continuous_delivery_scripts.utils.versioning import determine_version_shortcuts
5556

5657
SPDX_REPORTS_DIRECTORY = &#34;licensing&#34;
5758

@@ -70,7 +71,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.tag_and_release</code
7071

7172
&#34;&#34;&#34;
7273
get_language_specifics().check_credentials()
73-
is_new_version, version, _ = version_project(mode)
74+
is_new_version, version, version_elements = version_project(mode)
7475
logger.info(f&#34;Current version: {version}&#34;)
7576
if not version:
7677
raise ValueError(&#34;Undefined version.&#34;)
@@ -81,7 +82,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.tag_and_release</code
8182
# Adding the licensing summaries in /docs after folder has been cleared and regenerated.
8283
spdx_project = _update_licensing_summary()
8384
insert_licence_header(0)
84-
_update_repository(mode, is_new_version, version, current_branch)
85+
_update_repository(mode, is_new_version, version, current_branch, version_elements)
8586
if is_new_version:
8687
if get_language_specifics().should_clean_before_packaging():
8788
_clean_repository()
@@ -116,7 +117,13 @@ <h1 class="title">Module <code>continuous_delivery_scripts.tag_and_release</code
116117
return project
117118

118119

119-
def _update_repository(mode: CommitType, is_new_version: bool, version: str, current_branch: Optional[str]) -&gt; None:
120+
def _update_repository(
121+
mode: CommitType,
122+
is_new_version: bool,
123+
version: str,
124+
current_branch: Optional[str],
125+
version_elements: Dict[str, str],
126+
) -&gt; None:
120127
&#34;&#34;&#34;Update repository with changes that happened.&#34;&#34;&#34;
121128
with ProjectTempClone(desired_branch_name=current_branch) as git:
122129
git.configure_for_github()
@@ -125,7 +132,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.tag_and_release</code
125132
if mode == CommitType.RELEASE:
126133
_commit_release_changes(git, version, commit_message)
127134
if is_new_version:
128-
get_language_specifics().tag_release(git, version)
135+
get_language_specifics().tag_release(git, version, determine_version_shortcuts(mode, version_elements))
129136
git.force_push_tag()
130137

131138

@@ -261,7 +268,7 @@ <h2 id="args">Args</h2>
261268

262269
&#34;&#34;&#34;
263270
get_language_specifics().check_credentials()
264-
is_new_version, version, _ = version_project(mode)
271+
is_new_version, version, version_elements = version_project(mode)
265272
logger.info(f&#34;Current version: {version}&#34;)
266273
if not version:
267274
raise ValueError(&#34;Undefined version.&#34;)
@@ -272,7 +279,7 @@ <h2 id="args">Args</h2>
272279
# Adding the licensing summaries in /docs after folder has been cleared and regenerated.
273280
spdx_project = _update_licensing_summary()
274281
insert_licence_header(0)
275-
_update_repository(mode, is_new_version, version, current_branch)
282+
_update_repository(mode, is_new_version, version, current_branch, version_elements)
276283
if is_new_version:
277284
if get_language_specifics().should_clean_before_packaging():
278285
_clean_repository()

docs/third_party_IP_report.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ True,Mako,True,https://www.makotemplates.org/,MIT,Licence is compliant.
3131
True,Markdown,True,https://Python-Markdown.github.io/,0BSD,Licence is compliant.
3232
True,MarkupSafe,True,https://palletsprojects.com/p/markupsafe/,BSD-3-Clause,Licence is compliant.
3333
True,more-itertools,True,None,Unknown,Package's licence manually checked: MIT
34-
True,packaging,True,https://github.com/pypa/packaging,Apache-2.0 OR BSD-2-Clause,Licence is compliant.
34+
True,packaging,True,None,Unknown,Package's licence manually checked: either Apache-2.0 or BSD-2-Clause
3535
True,pdoc3,True,https://pdoc3.github.io/pdoc/,AGPL-3.0,Package's licence manually checked: Accepted for this project since not distributed
3636
True,pkginfo,True,https://code.launchpad.net/~tseaver/pkginfo/trunk,MIT,Licence is compliant.
3737
True,ply,True,http://www.dabeaz.com/ply/,0BSD,Licence is compliant.

docs/third_party_IP_report.html

Lines changed: 4 additions & 4 deletions
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>2022-12-06 07:55:33.832677</i></p>
68+
<p><i>2022-12-20 20:30:52.617239</i></p>
6969
<h2>Summary</h2>
7070
<table>
7171
<thead>
@@ -642,14 +642,14 @@ <h2>Package licences</h2>
642642
</td>
643643
<td style="text-align:center">Y</td>
644644
<td style="text-align:center">
645-
https://github.com/pypa/packaging
645+
None
646646
</td>
647647
<td style="text-align:center">
648-
<span style="color: ;">Apache-2.0 OR BSD-2-Clause</span>
648+
<span style="color: #ffdf28;">Unknown</span>
649649

650650
</td>
651651
<td style="text-align:center">
652-
Licence is compliant.
652+
Package's licence manually checked: either Apache-2.0 or BSD-2-Clause
653653
</td>
654654
</tr>
655655
<tr>

docs/third_party_IP_report.txt

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

3-
2022-12-06 07:55:33.832677
3+
2022-12-20 20:30:52.617239
44

55
# Summary:
66
Licence compliance: Not compliant
@@ -235,9 +235,9 @@
235235
- packaging:
236236
[X] Compliant?
237237
[X] Dependency?
238-
URL: https://github.com/pypa/packaging
239-
Licence: Apache-2.0 OR BSD-2-Clause
240-
Licence compliance: Licence is compliant.
238+
URL: None
239+
Licence: Unknown
240+
Licence compliance: Package's licence manually checked: either Apache-2.0 or BSD-2-Clause
241241

242242
- pdoc3:
243243
[X] Compliant?

docs/utils/configuration.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.configuration</
121121
&#34;&#34;&#34;News file type for dependency update.&#34;&#34;&#34;
122122
TAG_LATEST = 35
123123
&#34;&#34;&#34;States whether the release should be tagged with `latest`&#34;&#34;&#34;
124+
TAG_VERSION_SHORTCUTS = 36
125+
&#34;&#34;&#34;States whether the release should be tagged with shortcuts i.e. major, major+minor&#34;&#34;&#34;
124126

125127
@staticmethod
126128
def choices() -&gt; List[str]:
@@ -225,6 +227,7 @@ <h1 class="title">Module <code>continuous_delivery_scripts.utils.configuration</
225227
AWS_BUCKET = &#34;Unknown&#34;
226228
AUTOGENERATE_NEWS_FILE_ON_DEPENDENCY_UPDATE = True
227229
TAG_LATEST = False
230+
TAG_VERSION_SHORTCUTS = False
228231
DEPENDENCY_UPDATE_NEWS_MESSAGE = &#34;Dependency upgrade: {message}&#34;
229232
DEPENDENCY_UPDATE_NEWS_TYPE = NewsType.bugfix
230233
DEPENDENCY_UPDATE_BRANCH_PATTERN = r&#34;^\s*[Dd]ependabot\/.+\/(?P&lt;DEPENDENCY&gt;.+)&#34;
@@ -455,6 +458,8 @@ <h2 class="section-title" id="header-classes">Classes</h2>
455458
&#34;&#34;&#34;News file type for dependency update.&#34;&#34;&#34;
456459
TAG_LATEST = 35
457460
&#34;&#34;&#34;States whether the release should be tagged with `latest`&#34;&#34;&#34;
461+
TAG_VERSION_SHORTCUTS = 36
462+
&#34;&#34;&#34;States whether the release should be tagged with shortcuts i.e. major, major+minor&#34;&#34;&#34;
458463

459464
@staticmethod
460465
def choices() -&gt; List[str]:
@@ -618,6 +623,10 @@ <h3>Class variables</h3>
618623
<dd>
619624
<div class="desc"><p>States whether the release should be tagged with <code>latest</code></p></div>
620625
</dd>
626+
<dt id="continuous_delivery_scripts.utils.configuration.ConfigurationVariable.TAG_VERSION_SHORTCUTS"><code class="name">var <span class="ident">TAG_VERSION_SHORTCUTS</span></code></dt>
627+
<dd>
628+
<div class="desc"><p>States whether the release should be tagged with shortcuts i.e. major, major+minor</p></div>
629+
</dd>
621630
<dt id="continuous_delivery_scripts.utils.configuration.ConfigurationVariable.VERSION_FILE_PATH"><code class="name">var <span class="ident">VERSION_FILE_PATH</span></code></dt>
622631
<dd>
623632
<div class="desc"><p>Relative path to the file comprising project's version.</p></div>
@@ -1115,6 +1124,7 @@ <h3>Inherited members</h3>
11151124
AWS_BUCKET = &#34;Unknown&#34;
11161125
AUTOGENERATE_NEWS_FILE_ON_DEPENDENCY_UPDATE = True
11171126
TAG_LATEST = False
1127+
TAG_VERSION_SHORTCUTS = False
11181128
DEPENDENCY_UPDATE_NEWS_MESSAGE = &#34;Dependency upgrade: {message}&#34;
11191129
DEPENDENCY_UPDATE_NEWS_TYPE = NewsType.bugfix
11201130
DEPENDENCY_UPDATE_BRANCH_PATTERN = r&#34;^\s*[Dd]ependabot\/.+\/(?P&lt;DEPENDENCY&gt;.+)&#34;
@@ -1214,6 +1224,10 @@ <h3>Class variables</h3>
12141224
<dd>
12151225
<div class="desc"></div>
12161226
</dd>
1227+
<dt id="continuous_delivery_scripts.utils.configuration.StaticConfig.TAG_VERSION_SHORTCUTS"><code class="name">var <span class="ident">TAG_VERSION_SHORTCUTS</span></code></dt>
1228+
<dd>
1229+
<div class="desc"></div>
1230+
</dd>
12171231
</dl>
12181232
<h3>Inherited members</h3>
12191233
<ul class="hlist">
@@ -1298,6 +1312,7 @@ <h4><code><a title="continuous_delivery_scripts.utils.configuration.Configuratio
12981312
<li><code><a title="continuous_delivery_scripts.utils.configuration.ConfigurationVariable.REMOTE_ALIAS" href="#continuous_delivery_scripts.utils.configuration.ConfigurationVariable.REMOTE_ALIAS">REMOTE_ALIAS</a></code></li>
12991313
<li><code><a title="continuous_delivery_scripts.utils.configuration.ConfigurationVariable.SOURCE_DIR" href="#continuous_delivery_scripts.utils.configuration.ConfigurationVariable.SOURCE_DIR">SOURCE_DIR</a></code></li>
13001314
<li><code><a title="continuous_delivery_scripts.utils.configuration.ConfigurationVariable.TAG_LATEST" href="#continuous_delivery_scripts.utils.configuration.ConfigurationVariable.TAG_LATEST">TAG_LATEST</a></code></li>
1315+
<li><code><a title="continuous_delivery_scripts.utils.configuration.ConfigurationVariable.TAG_VERSION_SHORTCUTS" href="#continuous_delivery_scripts.utils.configuration.ConfigurationVariable.TAG_VERSION_SHORTCUTS">TAG_VERSION_SHORTCUTS</a></code></li>
13011316
<li><code><a title="continuous_delivery_scripts.utils.configuration.ConfigurationVariable.VERSION_FILE_PATH" href="#continuous_delivery_scripts.utils.configuration.ConfigurationVariable.VERSION_FILE_PATH">VERSION_FILE_PATH</a></code></li>
13021317
<li><code><a title="continuous_delivery_scripts.utils.configuration.ConfigurationVariable.choices" href="#continuous_delivery_scripts.utils.configuration.ConfigurationVariable.choices">choices</a></code></li>
13031318
<li><code><a title="continuous_delivery_scripts.utils.configuration.ConfigurationVariable.parse" href="#continuous_delivery_scripts.utils.configuration.ConfigurationVariable.parse">parse</a></code></li>
@@ -1348,6 +1363,7 @@ <h4><code><a title="continuous_delivery_scripts.utils.configuration.StaticConfig
13481363
<li><code><a title="continuous_delivery_scripts.utils.configuration.StaticConfig.RELEASE_BRANCH_PATTERN" href="#continuous_delivery_scripts.utils.configuration.StaticConfig.RELEASE_BRANCH_PATTERN">RELEASE_BRANCH_PATTERN</a></code></li>
13491364
<li><code><a title="continuous_delivery_scripts.utils.configuration.StaticConfig.REMOTE_ALIAS" href="#continuous_delivery_scripts.utils.configuration.StaticConfig.REMOTE_ALIAS">REMOTE_ALIAS</a></code></li>
13501365
<li><code><a title="continuous_delivery_scripts.utils.configuration.StaticConfig.TAG_LATEST" href="#continuous_delivery_scripts.utils.configuration.StaticConfig.TAG_LATEST">TAG_LATEST</a></code></li>
1366+
<li><code><a title="continuous_delivery_scripts.utils.configuration.StaticConfig.TAG_VERSION_SHORTCUTS" href="#continuous_delivery_scripts.utils.configuration.StaticConfig.TAG_VERSION_SHORTCUTS">TAG_VERSION_SHORTCUTS</a></code></li>
13511367
</ul>
13521368
</li>
13531369
<li>

0 commit comments

Comments
 (0)