gha-utils 4.15.0__py3-none-any.whl → 4.15.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.
Potentially problematic release.
This version of gha-utils might be problematic. Click here for more details.
- gha_utils/__init__.py +1 -1
- gha_utils/cli.py +0 -2
- gha_utils/metadata.py +8 -1
- gha_utils/test_plan.py +10 -5
- {gha_utils-4.15.0.dist-info → gha_utils-4.15.2.dist-info}/METADATA +1 -1
- gha_utils-4.15.2.dist-info/RECORD +14 -0
- {gha_utils-4.15.0.dist-info → gha_utils-4.15.2.dist-info}/WHEEL +1 -1
- gha_utils-4.15.0.dist-info/RECORD +0 -14
- {gha_utils-4.15.0.dist-info → gha_utils-4.15.2.dist-info}/entry_points.txt +0 -0
- {gha_utils-4.15.0.dist-info → gha_utils-4.15.2.dist-info}/top_level.txt +0 -0
gha_utils/__init__.py
CHANGED
gha_utils/cli.py
CHANGED
|
@@ -286,8 +286,6 @@ def mailmap_sync(ctx, source, create_if_missing, destination_mailmap):
|
|
|
286
286
|
@option(
|
|
287
287
|
"-F",
|
|
288
288
|
"--plan-file",
|
|
289
|
-
# TODO: remove deprecated --plan option to avoid confusion.
|
|
290
|
-
"--plan",
|
|
291
289
|
type=file_path(exists=True, readable=True, resolve_path=True),
|
|
292
290
|
multiple=True,
|
|
293
291
|
metavar="FILE_PATH",
|
gha_utils/metadata.py
CHANGED
|
@@ -796,13 +796,20 @@ class Metadata:
|
|
|
796
796
|
def current_version(self) -> str | None:
|
|
797
797
|
"""Returns the current version.
|
|
798
798
|
|
|
799
|
-
|
|
799
|
+
Current version is fetched from the ``bump-my-version`` configuration file.
|
|
800
|
+
|
|
801
|
+
During a release we get two commits bundled into a single event. The first one
|
|
802
|
+
is the release commit itself freezing the version to the release number. The
|
|
803
|
+
second one is the commit that bumps the version to the next one. In this situation,
|
|
804
|
+
the current version returned is the one from the most recent commit.
|
|
800
805
|
"""
|
|
801
806
|
version = None
|
|
802
807
|
if self.new_commits_matrix:
|
|
803
808
|
details = self.new_commits_matrix.get("include")
|
|
804
809
|
if details:
|
|
805
810
|
version = details[0].get("current_version")
|
|
811
|
+
else:
|
|
812
|
+
version = self.get_current_version()
|
|
806
813
|
return version
|
|
807
814
|
|
|
808
815
|
@cached_property
|
gha_utils/test_plan.py
CHANGED
|
@@ -96,11 +96,16 @@ class CLITestCase:
|
|
|
96
96
|
if isinstance(field_data, str) or not isinstance(
|
|
97
97
|
field_data, Sequence
|
|
98
98
|
):
|
|
99
|
-
# CLI parameters needs to be split
|
|
100
|
-
#
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
# CLI parameters provided as a long string needs to be split so
|
|
100
|
+
# that each argument is a separate item in the final tuple.
|
|
101
|
+
if field_id == "cli_parameters":
|
|
102
|
+
# XXX Maybe we should rely on a library to parse them:
|
|
103
|
+
# https://github.com/maxpat78/w32lex
|
|
104
|
+
if sys.platform == "win32":
|
|
105
|
+
field_data = field_data.split()
|
|
106
|
+
# For Unix platforms, we have the dedicated shlex module.
|
|
107
|
+
else:
|
|
108
|
+
field_data = shlex.split(field_data)
|
|
104
109
|
else:
|
|
105
110
|
field_data = (field_data,)
|
|
106
111
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
gha_utils/__init__.py,sha256=yW4QChPrrhi_lSm1NQ0sz_C-Pvhe2Sd81eac3s0eSFs,866
|
|
2
|
+
gha_utils/__main__.py,sha256=Dck9BjpLXmIRS83k0mghAMcYVYiMiFLltQdfRuMSP_Q,1703
|
|
3
|
+
gha_utils/changelog.py,sha256=JR7iQrWjLoIOpVNe6iXQSyEii82_hM_zrYpR7QO_Uxo,5777
|
|
4
|
+
gha_utils/cli.py,sha256=rE9sjDj4iFqzyj8PwwSt8JkDSgULltm9qvUgXOqGtT4,12858
|
|
5
|
+
gha_utils/mailmap.py,sha256=naUqJYJnE3fLTjju1nd6WMm7ODiSaI2SHuJxRtmaFWs,6269
|
|
6
|
+
gha_utils/matrix.py,sha256=_afJD0K-xZLNxwykVnUhD0Gj9cdO0Z43g3VHa-q_tkI,11941
|
|
7
|
+
gha_utils/metadata.py,sha256=6E1LZGrqFg2gEYC_8hGlGCbrUj4VKph3KpNdvigmRQ0,48719
|
|
8
|
+
gha_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
gha_utils/test_plan.py,sha256=57qwIaYfOLbyVKA5X4wldAKePxfvclK7lut--If2fSA,13149
|
|
10
|
+
gha_utils-4.15.2.dist-info/METADATA,sha256=IdwDDZPFOeJdR3ZdOpykMNHF5pJWr6qRHaDzdM5SECQ,20372
|
|
11
|
+
gha_utils-4.15.2.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
12
|
+
gha_utils-4.15.2.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
|
|
13
|
+
gha_utils-4.15.2.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
|
|
14
|
+
gha_utils-4.15.2.dist-info/RECORD,,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
gha_utils/__init__.py,sha256=H4VVQ1RRW-KQELnav8RAL_mjRUNRgbZq3kGBdL-8-b8,866
|
|
2
|
-
gha_utils/__main__.py,sha256=Dck9BjpLXmIRS83k0mghAMcYVYiMiFLltQdfRuMSP_Q,1703
|
|
3
|
-
gha_utils/changelog.py,sha256=JR7iQrWjLoIOpVNe6iXQSyEii82_hM_zrYpR7QO_Uxo,5777
|
|
4
|
-
gha_utils/cli.py,sha256=58uww5uCnKN6JGDZJ0Gm_ZG-VCuzHopKTXIxAcp7w9M,12936
|
|
5
|
-
gha_utils/mailmap.py,sha256=naUqJYJnE3fLTjju1nd6WMm7ODiSaI2SHuJxRtmaFWs,6269
|
|
6
|
-
gha_utils/matrix.py,sha256=_afJD0K-xZLNxwykVnUhD0Gj9cdO0Z43g3VHa-q_tkI,11941
|
|
7
|
-
gha_utils/metadata.py,sha256=AbiEdWjcJfUaVwlhV31J-HXJldZgFB0OKS2fHJ60FXU,48282
|
|
8
|
-
gha_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
gha_utils/test_plan.py,sha256=iuSfsJ9XoqsIUbqR0HrkooUvK17TFBtlx8HyCAtMVWM,12841
|
|
10
|
-
gha_utils-4.15.0.dist-info/METADATA,sha256=K8Fjiy-evM6R223OvGk5E9jh9X8rBdarb_g-WJadJXo,20372
|
|
11
|
-
gha_utils-4.15.0.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
12
|
-
gha_utils-4.15.0.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
|
|
13
|
-
gha_utils-4.15.0.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
|
|
14
|
-
gha_utils-4.15.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|