python-semantic-release 9.6.0__py3-none-any.whl → 9.7.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-9.6.0.dist-info → python_semantic_release-9.7.1.dist-info}/METADATA +3 -3
- {python_semantic_release-9.6.0.dist-info → python_semantic_release-9.7.1.dist-info}/RECORD +9 -9
- semantic_release/__init__.py +1 -1
- semantic_release/cli/commands/version.py +34 -3
- {python_semantic_release-9.6.0.dist-info → python_semantic_release-9.7.1.dist-info}/AUTHORS.rst +0 -0
- {python_semantic_release-9.6.0.dist-info → python_semantic_release-9.7.1.dist-info}/LICENSE +0 -0
- {python_semantic_release-9.6.0.dist-info → python_semantic_release-9.7.1.dist-info}/WHEEL +0 -0
- {python_semantic_release-9.6.0.dist-info → python_semantic_release-9.7.1.dist-info}/entry_points.txt +0 -0
- {python_semantic_release-9.6.0.dist-info → python_semantic_release-9.7.1.dist-info}/top_level.txt +0 -0
{python_semantic_release-9.6.0.dist-info → python_semantic_release-9.7.1.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-semantic-release
|
|
3
|
-
Version: 9.
|
|
3
|
+
Version: 9.7.1
|
|
4
4
|
Summary: Automatic Semantic Versioning for Python projects
|
|
5
5
|
Author-email: Rolf Erik Lekang <me@rolflekang.com>
|
|
6
6
|
License: MIT
|
|
@@ -35,14 +35,14 @@ Requires-Dist: shellingham ~=1.5
|
|
|
35
35
|
Provides-Extra: dev
|
|
36
36
|
Requires-Dist: pre-commit ~=3.5 ; extra == 'dev'
|
|
37
37
|
Requires-Dist: tox ~=4.11 ; extra == 'dev'
|
|
38
|
-
Requires-Dist: ruff ==0.4.
|
|
38
|
+
Requires-Dist: ruff ==0.4.3 ; extra == 'dev'
|
|
39
39
|
Provides-Extra: docs
|
|
40
40
|
Requires-Dist: Sphinx ~=6.0 ; extra == 'docs'
|
|
41
41
|
Requires-Dist: sphinxcontrib-apidoc ==0.5.0 ; extra == 'docs'
|
|
42
42
|
Requires-Dist: sphinx-autobuild ==2024.2.4 ; extra == 'docs'
|
|
43
43
|
Requires-Dist: furo ~=2024.1 ; extra == 'docs'
|
|
44
44
|
Provides-Extra: mypy
|
|
45
|
-
Requires-Dist: mypy ==1.
|
|
45
|
+
Requires-Dist: mypy ==1.10.0 ; extra == 'mypy'
|
|
46
46
|
Requires-Dist: types-requests ~=2.31.0 ; extra == 'mypy'
|
|
47
47
|
Provides-Extra: test
|
|
48
48
|
Requires-Dist: coverage[toml] ~=7.0 ; extra == 'test'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
semantic_release/__init__.py,sha256=
|
|
1
|
+
semantic_release/__init__.py,sha256=krtzynBQMkAxcs4erZCWloYTtIacwM2k7V4_WgQUR6M,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
|
|
@@ -21,7 +21,7 @@ semantic_release/cli/commands/cli_context.py,sha256=fOLTUKb4UnZGQ6zVhftuvdfZ7fK7
|
|
|
21
21
|
semantic_release/cli/commands/generate_config.py,sha256=2xZOu3NpyhBp0pWr7d8ugKl_kjqQgpSsSMHq5wHTfrE,1699
|
|
22
22
|
semantic_release/cli/commands/main.py,sha256=LuL-O0LGonI5fQTZn0AUtYv2Ei_CYyNqYHMF_wN4InI,2900
|
|
23
23
|
semantic_release/cli/commands/publish.py,sha256=ZA7DuEGxZdIT9wUwP1S24qi1RdcKV-1FnYci-PvyXIg,1958
|
|
24
|
-
semantic_release/cli/commands/version.py,sha256=
|
|
24
|
+
semantic_release/cli/commands/version.py,sha256=liG9q4f_pH0ISGMODJ-qYbIv-OoLggfOx6RCOnA7ow8,25912
|
|
25
25
|
semantic_release/commit_parser/__init__.py,sha256=cv5HFBdw7OJd4Laj4Ex8ZZ5Tml8GwXgQcXW6Pasr2Ao,615
|
|
26
26
|
semantic_release/commit_parser/_base.py,sha256=D2dY8dALV3QPK0XOLZru9btMW5dlx9YSmDIe3v5T0QA,3004
|
|
27
27
|
semantic_release/commit_parser/angular.py,sha256=ERWeTBTFNIBOaTIopY4Vff0KbeFwrSQWbADe3smVW-8,4579
|
|
@@ -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.
|
|
50
|
-
python_semantic_release-9.
|
|
51
|
-
python_semantic_release-9.
|
|
52
|
-
python_semantic_release-9.
|
|
53
|
-
python_semantic_release-9.
|
|
54
|
-
python_semantic_release-9.
|
|
55
|
-
python_semantic_release-9.
|
|
49
|
+
python_semantic_release-9.7.1.dist-info/AUTHORS.rst,sha256=XOReVvpymEFUPsS2QPH97jlfJBVrxwS2eu8-jVAe4gk,230
|
|
50
|
+
python_semantic_release-9.7.1.dist-info/LICENSE,sha256=NE85nszX252sdQdu0xgS9qwfYES0k8qS6gW3uO4jRGE,1083
|
|
51
|
+
python_semantic_release-9.7.1.dist-info/METADATA,sha256=iOBlBV0FtzFENmtLg4TaQVCmUXHTtfeKXDlqUUK_SlM,5336
|
|
52
|
+
python_semantic_release-9.7.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
53
|
+
python_semantic_release-9.7.1.dist-info/entry_points.txt,sha256=qojUBx_Ywf4u7KgP6NWlDaBDymZVUGQ7m5wF2duC2F0,95
|
|
54
|
+
python_semantic_release-9.7.1.dist-info/top_level.txt,sha256=qYA24nyg3eP-ti5UW7Vuj2aXVmM0wqVHx4mREdRZNAA,17
|
|
55
|
+
python_semantic_release-9.7.1.dist-info/RECORD,,
|
semantic_release/__init__.py
CHANGED
|
@@ -31,7 +31,7 @@ from semantic_release.version import Version, next_version, tags_and_versions
|
|
|
31
31
|
log = logging.getLogger(__name__)
|
|
32
32
|
|
|
33
33
|
if TYPE_CHECKING: # pragma: no cover
|
|
34
|
-
from typing import ContextManager, Iterable
|
|
34
|
+
from typing import ContextManager, Iterable, Mapping
|
|
35
35
|
|
|
36
36
|
from git import Repo
|
|
37
37
|
from git.refs.tag import Tag
|
|
@@ -135,7 +135,9 @@ def apply_version_to_source_files(
|
|
|
135
135
|
return paths
|
|
136
136
|
|
|
137
137
|
|
|
138
|
-
def shell(
|
|
138
|
+
def shell(
|
|
139
|
+
cmd: str, *, env: Mapping[str, str] | None = None, check: bool = True
|
|
140
|
+
) -> subprocess.CompletedProcess:
|
|
139
141
|
shell: str | None
|
|
140
142
|
try:
|
|
141
143
|
shell, _ = shellingham.detect_shell()
|
|
@@ -149,6 +151,7 @@ def shell(cmd: str, *, check: bool = True) -> subprocess.CompletedProcess:
|
|
|
149
151
|
|
|
150
152
|
return subprocess.run(
|
|
151
153
|
[shell, "-c" if shell != "cmd" else "/c", cmd], # noqa: S603
|
|
154
|
+
env=(env or {}),
|
|
152
155
|
check=check,
|
|
153
156
|
)
|
|
154
157
|
|
|
@@ -507,7 +510,35 @@ def version( # noqa: C901
|
|
|
507
510
|
"[bold green]:hammer_and_wrench: Running build command: "
|
|
508
511
|
+ build_command
|
|
509
512
|
)
|
|
510
|
-
shell(
|
|
513
|
+
shell(
|
|
514
|
+
build_command,
|
|
515
|
+
check=True,
|
|
516
|
+
env=dict(
|
|
517
|
+
filter(
|
|
518
|
+
lambda k_v: k_v[1] is not None, # type: ignore
|
|
519
|
+
{
|
|
520
|
+
"NEW_VERSION": str(new_version),
|
|
521
|
+
"PATH": os.getenv("PATH", ""),
|
|
522
|
+
"HOME": os.getenv("HOME", None),
|
|
523
|
+
"VIRTUAL_ENV": os.getenv("VIRTUAL_ENV", None),
|
|
524
|
+
# affects build decisions
|
|
525
|
+
"CI": os.getenv("CI", None),
|
|
526
|
+
# Identifies which CI environment
|
|
527
|
+
"GITHUB_ACTIONS": os.getenv("GITHUB_ACTIONS", None),
|
|
528
|
+
"GITLAB_CI": os.getenv("GITLAB_CI", None),
|
|
529
|
+
"GITEA_ACTIONS": os.getenv("GITEA_ACTIONS", None),
|
|
530
|
+
"BITBUCKET_CI": (
|
|
531
|
+
str(True).lower()
|
|
532
|
+
if os.getenv("BITBUCKET_REPO_FULL_NAME", None)
|
|
533
|
+
else None
|
|
534
|
+
),
|
|
535
|
+
"PSR_DOCKER_GITHUB_ACTION": os.getenv(
|
|
536
|
+
"PSR_DOCKER_GITHUB_ACTION", None
|
|
537
|
+
),
|
|
538
|
+
}.items(),
|
|
539
|
+
)
|
|
540
|
+
),
|
|
541
|
+
)
|
|
511
542
|
except subprocess.CalledProcessError as exc:
|
|
512
543
|
ctx.fail(str(exc))
|
|
513
544
|
|
{python_semantic_release-9.6.0.dist-info → python_semantic_release-9.7.1.dist-info}/AUTHORS.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_semantic_release-9.6.0.dist-info → python_semantic_release-9.7.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{python_semantic_release-9.6.0.dist-info → python_semantic_release-9.7.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|