python-semantic-release 9.8.0__py3-none-any.whl → 9.8.2__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.8.0.dist-info → python_semantic_release-9.8.2.dist-info}/METADATA +1 -1
- {python_semantic_release-9.8.0.dist-info → python_semantic_release-9.8.2.dist-info}/RECORD +10 -10
- semantic_release/__init__.py +1 -1
- semantic_release/cli/commands/version.py +37 -0
- semantic_release/data/templates/CHANGELOG.md.j2 +3 -3
- {python_semantic_release-9.8.0.dist-info → python_semantic_release-9.8.2.dist-info}/AUTHORS.rst +0 -0
- {python_semantic_release-9.8.0.dist-info → python_semantic_release-9.8.2.dist-info}/LICENSE +0 -0
- {python_semantic_release-9.8.0.dist-info → python_semantic_release-9.8.2.dist-info}/WHEEL +0 -0
- {python_semantic_release-9.8.0.dist-info → python_semantic_release-9.8.2.dist-info}/entry_points.txt +0 -0
- {python_semantic_release-9.8.0.dist-info → python_semantic_release-9.8.2.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
semantic_release/__init__.py,sha256=
|
|
1
|
+
semantic_release/__init__.py,sha256=M8vrSTvJR4hExjF-4lHNf0vwCkPZQX2peSx3ko5AcBU,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=lJ_DiD17dTXZ0hB8l_lBsL960dxuUmawR9dmr1KJjvA,27279
|
|
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
|
|
@@ -30,7 +30,7 @@ semantic_release/commit_parser/scipy.py,sha256=uRNLSXH4LApxm8xSyUil23WVO3C8VEFRC
|
|
|
30
30
|
semantic_release/commit_parser/tag.py,sha256=SAop9INQvKOwktNmVypKFngd6xHmY_XZrLUWChUjz84,3353
|
|
31
31
|
semantic_release/commit_parser/token.py,sha256=UxYAwEylPvp4x39RqNA9ITcgkaSRDEH7A5XDDJ3tdiM,1505
|
|
32
32
|
semantic_release/commit_parser/util.py,sha256=vLcVDErZrExM55jMffos0hyMbNVQoJ-PeeVDG1Ej51I,730
|
|
33
|
-
semantic_release/data/templates/CHANGELOG.md.j2,sha256=
|
|
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.
|
|
50
|
-
python_semantic_release-9.8.
|
|
51
|
-
python_semantic_release-9.8.
|
|
52
|
-
python_semantic_release-9.8.
|
|
53
|
-
python_semantic_release-9.8.
|
|
54
|
-
python_semantic_release-9.8.
|
|
55
|
-
python_semantic_release-9.8.
|
|
49
|
+
python_semantic_release-9.8.2.dist-info/AUTHORS.rst,sha256=XOReVvpymEFUPsS2QPH97jlfJBVrxwS2eu8-jVAe4gk,230
|
|
50
|
+
python_semantic_release-9.8.2.dist-info/LICENSE,sha256=NE85nszX252sdQdu0xgS9qwfYES0k8qS6gW3uO4jRGE,1083
|
|
51
|
+
python_semantic_release-9.8.2.dist-info/METADATA,sha256=tbMHqvQoUPdsgRdqQOXV3TJjGaWWfLrqD9QoB-svaS0,5404
|
|
52
|
+
python_semantic_release-9.8.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
53
|
+
python_semantic_release-9.8.2.dist-info/entry_points.txt,sha256=qojUBx_Ywf4u7KgP6NWlDaBDymZVUGQ7m5wF2duC2F0,95
|
|
54
|
+
python_semantic_release-9.8.2.dist-info/top_level.txt,sha256=qYA24nyg3eP-ti5UW7Vuj2aXVmM0wqVHx4mREdRZNAA,17
|
|
55
|
+
python_semantic_release-9.8.2.dist-info/RECORD,,
|
semantic_release/__init__.py
CHANGED
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import logging
|
|
4
4
|
import os
|
|
5
5
|
import subprocess
|
|
6
|
+
import sys
|
|
6
7
|
from contextlib import nullcontext
|
|
7
8
|
from datetime import datetime
|
|
8
9
|
from typing import TYPE_CHECKING
|
|
@@ -156,6 +157,40 @@ def shell(
|
|
|
156
157
|
)
|
|
157
158
|
|
|
158
159
|
|
|
160
|
+
def is_windows() -> bool:
|
|
161
|
+
return sys.platform == "win32"
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
def get_windows_env() -> Mapping[str, str | None]:
|
|
165
|
+
return {
|
|
166
|
+
environment_variable: os.getenv(environment_variable, None)
|
|
167
|
+
for environment_variable in (
|
|
168
|
+
"ALLUSERSAPPDATA",
|
|
169
|
+
"ALLUSERSPROFILE",
|
|
170
|
+
"APPDATA",
|
|
171
|
+
"COMMONPROGRAMFILES",
|
|
172
|
+
"COMMONPROGRAMFILES(x86)",
|
|
173
|
+
"DEFAULTUSERPROFILE",
|
|
174
|
+
"HOMEPATH",
|
|
175
|
+
"PATHEXT",
|
|
176
|
+
"PROFILESFOLDER",
|
|
177
|
+
"PROGRAMFILES",
|
|
178
|
+
"PROGRAMFILES(x86)",
|
|
179
|
+
"SYSTEM",
|
|
180
|
+
"SYSTEM16",
|
|
181
|
+
"SYSTEM32",
|
|
182
|
+
"SYSTEMDRIVE",
|
|
183
|
+
"SYSTEMPROFILE",
|
|
184
|
+
"SYSTEMROOT",
|
|
185
|
+
"TEMP",
|
|
186
|
+
"TMP",
|
|
187
|
+
"USERPROFILE",
|
|
188
|
+
"USERSID",
|
|
189
|
+
"WINDIR",
|
|
190
|
+
)
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
159
194
|
@click.command(
|
|
160
195
|
short_help="Detect and apply a new version",
|
|
161
196
|
context_settings={
|
|
@@ -522,6 +557,8 @@ def version( # noqa: C901
|
|
|
522
557
|
"PATH": os.getenv("PATH", ""),
|
|
523
558
|
"HOME": os.getenv("HOME", None),
|
|
524
559
|
"VIRTUAL_ENV": os.getenv("VIRTUAL_ENV", None),
|
|
560
|
+
# Windows environment variables
|
|
561
|
+
**(get_windows_env() if is_windows() else {}),
|
|
525
562
|
# affects build decisions
|
|
526
563
|
"CI": os.getenv("CI", None),
|
|
527
564
|
# Identifies which CI environment
|
|
@@ -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 %}
|
{python_semantic_release-9.8.0.dist-info → python_semantic_release-9.8.2.dist-info}/AUTHORS.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_semantic_release-9.8.0.dist-info → python_semantic_release-9.8.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{python_semantic_release-9.8.0.dist-info → python_semantic_release-9.8.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|