gha-utils 4.5.4__tar.gz → 4.6.0__tar.gz
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-4.5.4 → gha_utils-4.6.0}/PKG-INFO +2 -2
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils/__init__.py +1 -1
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils/cli.py +4 -6
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils/metadata.py +9 -13
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils.egg-info/PKG-INFO +2 -2
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils.egg-info/requires.txt +1 -1
- {gha_utils-4.5.4 → gha_utils-4.6.0}/pyproject.toml +22 -6
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils/__main__.py +0 -0
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils/changelog.py +0 -0
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils/mailmap.py +0 -0
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils/py.typed +0 -0
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils.egg-info/SOURCES.txt +0 -0
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils.egg-info/dependency_links.txt +0 -0
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils.egg-info/entry_points.txt +0 -0
- {gha_utils-4.5.4 → gha_utils-4.6.0}/gha_utils.egg-info/top_level.txt +0 -0
- {gha_utils-4.5.4 → gha_utils-4.6.0}/readme.md +0 -0
- {gha_utils-4.5.4 → gha_utils-4.6.0}/setup.cfg +0 -0
- {gha_utils-4.5.4 → gha_utils-4.6.0}/tests/test_changelog.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gha-utils
|
|
3
|
-
Version: 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
|
|
@@ -48,7 +48,7 @@ Description-Content-Type: text/markdown
|
|
|
48
48
|
Requires-Dist: backports.strenum~=1.3.1; python_version < "3.11"
|
|
49
49
|
Requires-Dist: boltons>=24.0.0
|
|
50
50
|
Requires-Dist: bump-my-version>=0.21.0
|
|
51
|
-
Requires-Dist: click-extra~=4.
|
|
51
|
+
Requires-Dist: click-extra~=4.10.0
|
|
52
52
|
Requires-Dist: packaging~=24.1
|
|
53
53
|
Requires-Dist: PyDriller~=2.6
|
|
54
54
|
Requires-Dist: pyproject-metadata~=0.8.0
|
|
@@ -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
|
-
|
|
84
|
-
|
|
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
|
|
@@ -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
|
-
|
|
404
|
-
|
|
405
|
-
|
|
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
|
-
|
|
420
|
-
|
|
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.
|
|
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
|
|
@@ -48,7 +48,7 @@ Description-Content-Type: text/markdown
|
|
|
48
48
|
Requires-Dist: backports.strenum~=1.3.1; python_version < "3.11"
|
|
49
49
|
Requires-Dist: boltons>=24.0.0
|
|
50
50
|
Requires-Dist: bump-my-version>=0.21.0
|
|
51
|
-
Requires-Dist: click-extra~=4.
|
|
51
|
+
Requires-Dist: click-extra~=4.10.0
|
|
52
52
|
Requires-Dist: packaging~=24.1
|
|
53
53
|
Requires-Dist: PyDriller~=2.6
|
|
54
54
|
Requires-Dist: pyproject-metadata~=0.8.0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
# Docs: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
|
|
3
3
|
name = "gha-utils"
|
|
4
|
-
version = "4.
|
|
4
|
+
version = "4.6.0"
|
|
5
5
|
# Python versions and their status: https://devguide.python.org/versions/
|
|
6
6
|
requires-python = ">= 3.9"
|
|
7
7
|
description = "⚙️ CLI helpers for GitHub Actions + reuseable workflows"
|
|
@@ -75,7 +75,7 @@ dependencies = [
|
|
|
75
75
|
# while releasing gha-utils itself.
|
|
76
76
|
# v0.21.0 is the first to rely on wcmatch library.
|
|
77
77
|
"bump-my-version >= 0.21.0",
|
|
78
|
-
"click-extra ~= 4.
|
|
78
|
+
"click-extra ~= 4.10.0",
|
|
79
79
|
"packaging ~= 24.1",
|
|
80
80
|
"PyDriller ~= 2.6",
|
|
81
81
|
"pyproject-metadata ~= 0.8.0",
|
|
@@ -108,9 +108,6 @@ gha-utils = "gha_utils.__main__:main"
|
|
|
108
108
|
[tool.uv]
|
|
109
109
|
package = true
|
|
110
110
|
|
|
111
|
-
[tool.setuptools.packages.find]
|
|
112
|
-
include = ["gha_utils"]
|
|
113
|
-
|
|
114
111
|
[tool.mypy]
|
|
115
112
|
warn_unused_configs = true
|
|
116
113
|
warn_redundant_casts = true
|
|
@@ -119,8 +116,27 @@ warn_return_any = true
|
|
|
119
116
|
warn_unreachable = true
|
|
120
117
|
pretty = true
|
|
121
118
|
|
|
119
|
+
[tool.pytest.ini_options]
|
|
120
|
+
# https://docs.pytest.org/en/latest/customize.html#pyproject-toml
|
|
121
|
+
addopts = [
|
|
122
|
+
"--durations=10",
|
|
123
|
+
"--cov=gha_utils",
|
|
124
|
+
"--cov-report=term",
|
|
125
|
+
"--cov-report=xml",
|
|
126
|
+
"--junitxml=junit.xml",
|
|
127
|
+
"--override-ini=junit_family=legacy",
|
|
128
|
+
]
|
|
129
|
+
# Make sure tests that are expected to fail do not resurect and start working all of a sudden.
|
|
130
|
+
xfail_strict = true
|
|
131
|
+
|
|
132
|
+
# https://coverage.readthedocs.io/en/latest/config.html
|
|
133
|
+
[tool.coverage.run]
|
|
134
|
+
branch = true
|
|
135
|
+
[tool.coverage.report]
|
|
136
|
+
precision = 2
|
|
137
|
+
|
|
122
138
|
[tool.bumpversion]
|
|
123
|
-
current_version = "4.
|
|
139
|
+
current_version = "4.6.0"
|
|
124
140
|
allow_dirty = true
|
|
125
141
|
ignore_missing_files = true
|
|
126
142
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|