python-semantic-release 10.3.0__py3-none-any.whl → 10.3.1__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.
- {python_semantic_release-10.3.0.dist-info → python_semantic_release-10.3.1.dist-info}/METADATA +1 -1
- {python_semantic_release-10.3.0.dist-info → python_semantic_release-10.3.1.dist-info}/RECORD +8 -8
- semantic_release/cli/commands/version.py +14 -4
- semantic_release/cli/github_actions_output.py +13 -4
- {python_semantic_release-10.3.0.dist-info → python_semantic_release-10.3.1.dist-info}/WHEEL +0 -0
- {python_semantic_release-10.3.0.dist-info → python_semantic_release-10.3.1.dist-info}/entry_points.txt +0 -0
- {python_semantic_release-10.3.0.dist-info → python_semantic_release-10.3.1.dist-info}/licenses/LICENSE +0 -0
- {python_semantic_release-10.3.0.dist-info → python_semantic_release-10.3.1.dist-info}/top_level.txt +0 -0
{python_semantic_release-10.3.0.dist-info → python_semantic_release-10.3.1.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
python_semantic_release-10.3.
|
|
1
|
+
python_semantic_release-10.3.1.dist-info/licenses/LICENSE,sha256=NE85nszX252sdQdu0xgS9qwfYES0k8qS6gW3uO4jRGE,1083
|
|
2
2
|
semantic_release/__init__.py,sha256=tRJWhrn_dUt0QycXD2DoJSfEP5uwmxngH7jvbG2i-hA,1317
|
|
3
3
|
semantic_release/__main__.py,sha256=pksxr6g1vkKq98Q1lShsxG8tk55IMiSMHzAHKyFU5x0,1704
|
|
4
4
|
semantic_release/const.py,sha256=wInJR7vcOgT1ysm5VuJQ6lD_ZGYnCwRVKz7Uz3htQc4,861
|
|
@@ -17,7 +17,7 @@ semantic_release/cli/changelog_writer.py,sha256=2jP5b0LK61Y2tb22GQSFFmwHwXd2Wjbo
|
|
|
17
17
|
semantic_release/cli/cli_context.py,sha256=Nop71LdVCJOeSUHgTXunMyK3xAu_QKQC2cRp1QBVkX0,4134
|
|
18
18
|
semantic_release/cli/config.py,sha256=4UCx4-jzKpggb7dZM3fnZoi8rPiUGWtEmLiCfWlro7I,33458
|
|
19
19
|
semantic_release/cli/const.py,sha256=h7XE2D0D__TAZSrUUtVszwvzpkHTMOiQCf97XQNbEvA,163
|
|
20
|
-
semantic_release/cli/github_actions_output.py,sha256=
|
|
20
|
+
semantic_release/cli/github_actions_output.py,sha256=uiIZKVq3Rr2Q_Xt8UlpCszrc-HBB-2f9HGxB7KoF2qE,5209
|
|
21
21
|
semantic_release/cli/masking_filter.py,sha256=GsTyaoZbUVJLXVMqeXhCttXK84UnBQ8cNDSHxd52sOc,3218
|
|
22
22
|
semantic_release/cli/util.py,sha256=4rf4xDHb7l-XpdcFNtslFz1xHslnBu6cTgWHXVnQXQs,3746
|
|
23
23
|
semantic_release/cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -25,7 +25,7 @@ semantic_release/cli/commands/changelog.py,sha256=wJfd4VVfrGnu2jnIpG25cdVcbXIX-E
|
|
|
25
25
|
semantic_release/cli/commands/generate_config.py,sha256=2xZOu3NpyhBp0pWr7d8ugKl_kjqQgpSsSMHq5wHTfrE,1699
|
|
26
26
|
semantic_release/cli/commands/main.py,sha256=u1zhkkvKCZ2TtUqjzvdFTe5UZsvfws_pjqqo6CY0bBo,4351
|
|
27
27
|
semantic_release/cli/commands/publish.py,sha256=CE_LJTxFnc337MfpsfdJopi7QCwwE13GqGNQ-dNgWis,2871
|
|
28
|
-
semantic_release/cli/commands/version.py,sha256=
|
|
28
|
+
semantic_release/cli/commands/version.py,sha256=Mf0lulFWKp4VIGAq-sTBnLGO60xpe6skmUbVdhUUKqg,26681
|
|
29
29
|
semantic_release/commit_parser/__init__.py,sha256=6euiDgj9bwOx1rP96vUjq090usviXkbo7OVOnRBGfcw,742
|
|
30
30
|
semantic_release/commit_parser/_base.py,sha256=DLsHnbXG-39JkUbcnsBCSV2GmV35w1rasyoMhK8G0UE,3058
|
|
31
31
|
semantic_release/commit_parser/angular.py,sha256=MY_fo9F4EZ-ac8wYzBR0uD94O5Li2D-8zEMR01wss4c,18534
|
|
@@ -73,8 +73,8 @@ semantic_release/version/declarations/enum.py,sha256=3n5Py9DoFkmItIdsmtQrJgmAhep
|
|
|
73
73
|
semantic_release/version/declarations/i_version_replacer.py,sha256=oP6BxJuxwI44roI6448tomShv1sMoy9ry8TlhhIQtfc,2416
|
|
74
74
|
semantic_release/version/declarations/pattern.py,sha256=MpUmsHYGAVAuFSKSb29FLcWeUCEHG_TRyhMO-2DWAAs,8308
|
|
75
75
|
semantic_release/version/declarations/toml.py,sha256=2K4DtX5Qq1iHT8cG8mISPTMmp50w6Av0KmLAKZPYqq8,4931
|
|
76
|
-
python_semantic_release-10.3.
|
|
77
|
-
python_semantic_release-10.3.
|
|
78
|
-
python_semantic_release-10.3.
|
|
79
|
-
python_semantic_release-10.3.
|
|
80
|
-
python_semantic_release-10.3.
|
|
76
|
+
python_semantic_release-10.3.1.dist-info/METADATA,sha256=ALVaRulT0o1-464ffA0WQMrjKorzp-2GJCIg0z9B-8Q,3927
|
|
77
|
+
python_semantic_release-10.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
78
|
+
python_semantic_release-10.3.1.dist-info/entry_points.txt,sha256=kzkCyDJsMOwgpFwEWKE9wxN1tXaUP6g6GIO4xtc0QuE,162
|
|
79
|
+
python_semantic_release-10.3.1.dist-info/top_level.txt,sha256=qYA24nyg3eP-ti5UW7Vuj2aXVmM0wqVHx4mREdRZNAA,17
|
|
80
|
+
python_semantic_release-10.3.1.dist-info/RECORD,,
|
|
@@ -18,7 +18,10 @@ from semantic_release.cli.changelog_writer import (
|
|
|
18
18
|
generate_release_notes,
|
|
19
19
|
write_changelog_files,
|
|
20
20
|
)
|
|
21
|
-
from semantic_release.cli.github_actions_output import
|
|
21
|
+
from semantic_release.cli.github_actions_output import (
|
|
22
|
+
PersistenceMode,
|
|
23
|
+
VersionGitHubActionsOutput,
|
|
24
|
+
)
|
|
22
25
|
from semantic_release.cli.util import noop_report, rprint
|
|
23
26
|
from semantic_release.const import DEFAULT_SHELL, DEFAULT_VERSION
|
|
24
27
|
from semantic_release.enums import LevelBump
|
|
@@ -468,9 +471,16 @@ def version( # noqa: C901
|
|
|
468
471
|
no_verify = runtime.no_git_verify
|
|
469
472
|
opts = runtime.global_cli_options
|
|
470
473
|
gha_output = VersionGitHubActionsOutput(
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
+
gh_client=(
|
|
475
|
+
hvcs_client
|
|
476
|
+
if isinstance(hvcs_client, Github)
|
|
477
|
+
else Github(hvcs_client.remote_url(use_token=False))
|
|
478
|
+
),
|
|
479
|
+
mode=(
|
|
480
|
+
PersistenceMode.TEMPORARY
|
|
481
|
+
if opts.noop or (not commit_changes and not create_tag)
|
|
482
|
+
else PersistenceMode.PERMANENT
|
|
483
|
+
),
|
|
474
484
|
released=False,
|
|
475
485
|
)
|
|
476
486
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import os
|
|
4
|
+
from enum import Enum
|
|
4
5
|
from re import compile as regexp
|
|
5
6
|
from typing import TYPE_CHECKING
|
|
6
7
|
|
|
@@ -13,12 +14,18 @@ if TYPE_CHECKING:
|
|
|
13
14
|
from semantic_release.hvcs.github import Github
|
|
14
15
|
|
|
15
16
|
|
|
17
|
+
class PersistenceMode(Enum):
|
|
18
|
+
TEMPORARY = "temporary"
|
|
19
|
+
PERMANENT = "permanent"
|
|
20
|
+
|
|
21
|
+
|
|
16
22
|
class VersionGitHubActionsOutput:
|
|
17
23
|
OUTPUT_ENV_VAR = "GITHUB_OUTPUT"
|
|
18
24
|
|
|
19
25
|
def __init__(
|
|
20
26
|
self,
|
|
21
27
|
gh_client: Github,
|
|
28
|
+
mode: PersistenceMode = PersistenceMode.PERMANENT,
|
|
22
29
|
released: bool | None = None,
|
|
23
30
|
version: Version | None = None,
|
|
24
31
|
commit_sha: str | None = None,
|
|
@@ -26,6 +33,7 @@ class VersionGitHubActionsOutput:
|
|
|
26
33
|
prev_version: Version | None = None,
|
|
27
34
|
) -> None:
|
|
28
35
|
self._gh_client = gh_client
|
|
36
|
+
self._mode = mode
|
|
29
37
|
self._released = released
|
|
30
38
|
self._version = version
|
|
31
39
|
self._commit_sha = commit_sha
|
|
@@ -104,10 +112,11 @@ class VersionGitHubActionsOutput:
|
|
|
104
112
|
missing.add("version")
|
|
105
113
|
if self.released is None:
|
|
106
114
|
missing.add("released")
|
|
107
|
-
if self.released
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
115
|
+
if self.released:
|
|
116
|
+
if self.release_notes is None:
|
|
117
|
+
missing.add("release_notes")
|
|
118
|
+
if self._mode is PersistenceMode.PERMANENT and self.commit_sha is None:
|
|
119
|
+
missing.add("commit_sha")
|
|
111
120
|
|
|
112
121
|
if missing:
|
|
113
122
|
raise ValueError(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_semantic_release-10.3.0.dist-info → python_semantic_release-10.3.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|