python-semantic-release 9.8.1__py3-none-any.whl → 9.8.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-semantic-release
3
- Version: 9.8.1
3
+ Version: 9.8.3
4
4
  Summary: Automatic Semantic Versioning for Python projects
5
5
  Author-email: Rolf Erik Lekang <me@rolflekang.com>
6
6
  License: MIT
@@ -37,7 +37,7 @@ Requires-Dist: build ~=1.2 ; extra == 'build'
37
37
  Provides-Extra: dev
38
38
  Requires-Dist: pre-commit ~=3.5 ; extra == 'dev'
39
39
  Requires-Dist: tox ~=4.11 ; extra == 'dev'
40
- Requires-Dist: ruff ==0.4.4 ; extra == 'dev'
40
+ Requires-Dist: ruff ==0.4.9 ; extra == 'dev'
41
41
  Provides-Extra: docs
42
42
  Requires-Dist: Sphinx ~=6.0 ; extra == 'docs'
43
43
  Requires-Dist: sphinxcontrib-apidoc ==0.5.0 ; extra == 'docs'
@@ -1,4 +1,4 @@
1
- semantic_release/__init__.py,sha256=lXpPMb5uIiSyQhUCbxSLX5FuhekMzxQT4tW-ESrktBI,870
1
+ semantic_release/__init__.py,sha256=uLmkFIh4Q9cOM3_CTkDX-83OfqCUiHwEpU0k8ZGmoWA,870
2
2
  semantic_release/__main__.py,sha256=vXOARLV7KHeVXgpOMU0Q-8wovpdsOrtTsycxulI5xIE,106
3
3
  semantic_release/const.py,sha256=Z1o2QNh60wSLeF-_1TemMBjU3ZXbV0XghnUFsbTVfOs,831
4
4
  semantic_release/enums.py,sha256=D5B_reQGGKQQT22HO5PUtvn2Bok3fkht6TfJtXkmAUg,1020
@@ -28,9 +28,9 @@ semantic_release/commit_parser/angular.py,sha256=ERWeTBTFNIBOaTIopY4Vff0KbeFwrSQ
28
28
  semantic_release/commit_parser/emoji.py,sha256=M6zgqsXqegLK5FxZGyfsOPM3vOsJkPKVAjnGATOhwa4,3452
29
29
  semantic_release/commit_parser/scipy.py,sha256=uRNLSXH4LApxm8xSyUil23WVO3C8VEFRCnwTIKZbyQk,5879
30
30
  semantic_release/commit_parser/tag.py,sha256=SAop9INQvKOwktNmVypKFngd6xHmY_XZrLUWChUjz84,3353
31
- semantic_release/commit_parser/token.py,sha256=UxYAwEylPvp4x39RqNA9ITcgkaSRDEH7A5XDDJ3tdiM,1505
31
+ semantic_release/commit_parser/token.py,sha256=BB4ZCyt753CCaBFF95cQ4sFm6Au96wpO0YyTAWdcOvE,1609
32
32
  semantic_release/commit_parser/util.py,sha256=vLcVDErZrExM55jMffos0hyMbNVQoJ-PeeVDG1Ej51I,730
33
- semantic_release/data/templates/CHANGELOG.md.j2,sha256=GB3YJwgVrhlcb-g5ESdEh_Gsysb_Texxv-Ip2LjulC0,1066
33
+ semantic_release/data/templates/CHANGELOG.md.j2,sha256=4SNA1uTM2_qLA_3QTbS8JHZi9tB-21gCzLjkj_U20JI,1069
34
34
  semantic_release/data/templates/release_notes.md.j2,sha256=27uIHgG6iYmqdMaoWFP5LJRZcrO-3paqFzHHHsGpXXE,465
35
35
  semantic_release/hvcs/__init__.py,sha256=JwoaLOF-12L-OBo_9-tOXXhdiHKeVungA9865to2oZk,494
36
36
  semantic_release/hvcs/_base.py,sha256=9-iTqTPSbiEevKbCBP9K2hq4c-2T4wPbeLWe-kAxBzo,2607
@@ -46,10 +46,10 @@ semantic_release/version/algorithm.py,sha256=-9ulTy1z4u-jUvbc-FrvEdFL7Omc3O3HhaP
46
46
  semantic_release/version/declaration.py,sha256=f6Ld7hIhrqvDrRBapJHr-KDimuyo-4IG8009Zu9BIgU,7357
47
47
  semantic_release/version/translator.py,sha256=P1noIsVBn8u6zNOFjG0xKYOWapxqf_PHSMvMeLJ9kXg,3050
48
48
  semantic_release/version/version.py,sha256=6PCtSbLP88U1daoxnCwHc--YguZo4waGNLqJ5JfeczE,14175
49
- python_semantic_release-9.8.1.dist-info/AUTHORS.rst,sha256=XOReVvpymEFUPsS2QPH97jlfJBVrxwS2eu8-jVAe4gk,230
50
- python_semantic_release-9.8.1.dist-info/LICENSE,sha256=NE85nszX252sdQdu0xgS9qwfYES0k8qS6gW3uO4jRGE,1083
51
- python_semantic_release-9.8.1.dist-info/METADATA,sha256=umroH8O83cP7YCxNjNYcTkzyx2I2ASj3l36gqSZMkVY,5404
52
- python_semantic_release-9.8.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
53
- python_semantic_release-9.8.1.dist-info/entry_points.txt,sha256=qojUBx_Ywf4u7KgP6NWlDaBDymZVUGQ7m5wF2duC2F0,95
54
- python_semantic_release-9.8.1.dist-info/top_level.txt,sha256=qYA24nyg3eP-ti5UW7Vuj2aXVmM0wqVHx4mREdRZNAA,17
55
- python_semantic_release-9.8.1.dist-info/RECORD,,
49
+ python_semantic_release-9.8.3.dist-info/AUTHORS.rst,sha256=XOReVvpymEFUPsS2QPH97jlfJBVrxwS2eu8-jVAe4gk,230
50
+ python_semantic_release-9.8.3.dist-info/LICENSE,sha256=NE85nszX252sdQdu0xgS9qwfYES0k8qS6gW3uO4jRGE,1083
51
+ python_semantic_release-9.8.3.dist-info/METADATA,sha256=NfEykbj0ZB8WpYwC5CNepm16izRbP_O_8UfuXTqRRhs,5404
52
+ python_semantic_release-9.8.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
53
+ python_semantic_release-9.8.3.dist-info/entry_points.txt,sha256=qojUBx_Ywf4u7KgP6NWlDaBDymZVUGQ7m5wF2duC2F0,95
54
+ python_semantic_release-9.8.3.dist-info/top_level.txt,sha256=qYA24nyg3eP-ti5UW7Vuj2aXVmM0wqVHx4mREdRZNAA,17
55
+ python_semantic_release-9.8.3.dist-info/RECORD,,
@@ -24,7 +24,7 @@ from semantic_release.version import (
24
24
  tags_and_versions,
25
25
  )
26
26
 
27
- __version__ = "9.8.1"
27
+ __version__ = "9.8.3"
28
28
 
29
29
 
30
30
  def setup_hook(argv: list[str]) -> None:
@@ -21,7 +21,8 @@ class ParsedCommit(NamedTuple):
21
21
  @property
22
22
  def message(self) -> str:
23
23
  m = self.commit.message
24
- return m.decode("utf-8") if isinstance(m, bytes) else m
24
+ message_str = m.decode("utf-8") if isinstance(m, bytes) else m
25
+ return message_str.replace("\r", "")
25
26
 
26
27
  @property
27
28
  def hexsha(self) -> str:
@@ -39,7 +40,8 @@ class ParseError(NamedTuple):
39
40
  @property
40
41
  def message(self) -> str:
41
42
  m = self.commit.message
42
- return m.decode("utf-8") if isinstance(m, bytes) else m
43
+ message_str = m.decode("utf-8") if isinstance(m, bytes) else m
44
+ return message_str.replace("\r", "")
43
45
 
44
46
  @property
45
47
  def hexsha(self) -> str:
@@ -1,5 +1,5 @@
1
1
  # CHANGELOG
2
- {% if context.history.unreleased | length > 0 %}
2
+ {% if context.history.unreleased | length > 0 -%}
3
3
  {# UNRELEASED #}
4
4
  ## Unreleased
5
5
  {% for type_, commits in context.history.unreleased | dictsort %}
@@ -8,8 +8,8 @@
8
8
  * {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
9
9
  {% else %}
10
10
  * {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
11
- {% endif %}{% endfor %}{% endfor %}{% endif %}
12
- {% for version, release in context.history.released.items() %}
11
+ {% endif %}{% endfor %}{% endfor %}{% endif -%}
12
+ {% for version, release in context.history.released.items() -%}
13
13
  {# RELEASED #}
14
14
  ## {{ version.as_semver_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }})
15
15
  {% for type_, commits in release["elements"] | dictsort %}