gha-utils 4.5.4__py3-none-any.whl → 4.6.0__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 CHANGED
@@ -17,4 +17,4 @@
17
17
 
18
18
  from __future__ import annotations
19
19
 
20
- __version__ = "4.5.4"
20
+ __version__ = "4.6.0"
gha_utils/cli.py CHANGED
@@ -78,12 +78,10 @@ def remove_header(content: str) -> str:
78
78
  if still_in_header:
79
79
  # We are still in the header as long as we have blank lines or we have
80
80
  # comment lines matching the format produced by the method above.
81
- if not line.strip() or line.startswith(
82
- (
83
- "# Generated by ",
84
- "# Timestamp: ",
85
- )
86
- ):
81
+ if not line.strip() or line.startswith((
82
+ "# Generated by ",
83
+ "# Timestamp: ",
84
+ )):
87
85
  continue
88
86
  else:
89
87
  still_in_header = False
gha_utils/metadata.py CHANGED
@@ -398,13 +398,11 @@ class Metadata:
398
398
  current_version = Metadata.get_current_version()
399
399
 
400
400
  sha_list.append(commit.hash)
401
- include_list.append(
402
- {
403
- "commit": commit.hash,
404
- "short_sha": commit.hash[:SHORT_SHA_LENGTH],
405
- "current_version": current_version,
406
- }
407
- )
401
+ include_list.append({
402
+ "commit": commit.hash,
403
+ "short_sha": commit.hash[:SHORT_SHA_LENGTH],
404
+ "current_version": current_version,
405
+ })
408
406
 
409
407
  # Restore the repository to its initial state.
410
408
  if past_commit_lookup:
@@ -414,12 +412,10 @@ class Metadata:
414
412
  logging.debug("Unstash local changes that were previously saved.")
415
413
  git.repo.git.stash("pop")
416
414
 
417
- return Matrix(
418
- {
419
- "commit": sha_list,
420
- "include": include_list,
421
- }
422
- )
415
+ return Matrix({
416
+ "commit": sha_list,
417
+ "include": include_list,
418
+ })
423
419
 
424
420
  @cached_property
425
421
  def event_type(self) -> WorkflowEvent | None: # type: ignore[valid-type]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gha-utils
3
- Version: 4.5.4
3
+ Version: 4.6.0
4
4
  Summary: ⚙️ CLI helpers for GitHub Actions + reuseable workflows
5
5
  Author-email: Kevin Deldycke <kevin@deldycke.com>
6
6
  Project-URL: Homepage, https://github.com/kdeldycke/workflows
@@ -47,7 +47,7 @@ Requires-Python: >=3.9
47
47
  Description-Content-Type: text/markdown
48
48
  Requires-Dist: boltons >=24.0.0
49
49
  Requires-Dist: bump-my-version >=0.21.0
50
- Requires-Dist: click-extra ~=4.9.0
50
+ Requires-Dist: click-extra ~=4.10.0
51
51
  Requires-Dist: packaging ~=24.1
52
52
  Requires-Dist: PyDriller ~=2.6
53
53
  Requires-Dist: pyproject-metadata ~=0.8.0
@@ -0,0 +1,12 @@
1
+ gha_utils/__init__.py,sha256=_iyuwp3FQzUI1EpCWl3BAsRHvGrHNaK9UmwQ1H9vr8M,865
2
+ gha_utils/__main__.py,sha256=Dck9BjpLXmIRS83k0mghAMcYVYiMiFLltQdfRuMSP_Q,1703
3
+ gha_utils/changelog.py,sha256=oahY88A9FRV14f1JSFKIiYrN_TS7Jo3QlljXqJbeuaE,5892
4
+ gha_utils/cli.py,sha256=1sgNwDQS9vL5eTUjFXWQVYxtV6LTLRyo4kMnl4Joqg4,9175
5
+ gha_utils/mailmap.py,sha256=snSQBn1BDZ21783l4yCkQc3RLIxh5X6QCunFRkDj-24,6301
6
+ gha_utils/metadata.py,sha256=qdhAH-NHPusWIicoN9Js-7idvkcnJa9wzF4mVi7giPY,47203
7
+ gha_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ gha_utils-4.6.0.dist-info/METADATA,sha256=1R7Rx59uPDLnl4b_6osl29SY9JS_f97uztrq6x8LOKA,18486
9
+ gha_utils-4.6.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
10
+ gha_utils-4.6.0.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
11
+ gha_utils-4.6.0.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
12
+ gha_utils-4.6.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.1)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,12 +0,0 @@
1
- gha_utils/__init__.py,sha256=eNPHo5bW62vKKqHULhTcIBKUQVspjo4IwavzCM4cKMw,865
2
- gha_utils/__main__.py,sha256=Dck9BjpLXmIRS83k0mghAMcYVYiMiFLltQdfRuMSP_Q,1703
3
- gha_utils/changelog.py,sha256=oahY88A9FRV14f1JSFKIiYrN_TS7Jo3QlljXqJbeuaE,5892
4
- gha_utils/cli.py,sha256=f1NRPffvgl5waBau8-5twXO7n3By_797npWBR_22XoM,9217
5
- gha_utils/mailmap.py,sha256=snSQBn1BDZ21783l4yCkQc3RLIxh5X6QCunFRkDj-24,6301
6
- gha_utils/metadata.py,sha256=MhFzNlx5nE2Z9DI89yPsloik-JL40_yBzO-K1Ly5Vn8,47283
7
- gha_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- gha_utils-4.5.4.dist-info/METADATA,sha256=UKM387Iv1eAeg2QiDfiAEgY5-MlUnJB-rDXq2DtBHiA,18485
9
- gha_utils-4.5.4.dist-info/WHEEL,sha256=uCRv0ZEik_232NlR4YDw4Pv3Ajt5bKvMH13NUU7hFuI,91
10
- gha_utils-4.5.4.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
11
- gha_utils-4.5.4.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
12
- gha_utils-4.5.4.dist-info/RECORD,,