gha-utils 4.8.4__py3-none-any.whl → 4.10.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 +1 -1
- gha_utils/metadata.py +11 -3
- {gha_utils-4.8.4.dist-info → gha_utils-4.10.0.dist-info}/METADATA +46 -5
- gha_utils-4.10.0.dist-info/RECORD +12 -0
- {gha_utils-4.8.4.dist-info → gha_utils-4.10.0.dist-info}/WHEEL +1 -1
- gha_utils-4.8.4.dist-info/RECORD +0 -12
- {gha_utils-4.8.4.dist-info → gha_utils-4.10.0.dist-info}/entry_points.txt +0 -0
- {gha_utils-4.8.4.dist-info → gha_utils-4.10.0.dist-info}/top_level.txt +0 -0
gha_utils/__init__.py
CHANGED
gha_utils/metadata.py
CHANGED
|
@@ -22,6 +22,7 @@ The following variables are `printed to the environment file
|
|
|
22
22
|
```text
|
|
23
23
|
new_commits=346ce664f055fbd042a25ee0b7e96702e95 6f27db47612aaee06fdf08744b09a9f5f6c2
|
|
24
24
|
release_commits=6f27db47612aaee06fdf08744b09a9f5f6c2
|
|
25
|
+
gitignore_exists=true
|
|
25
26
|
python_files=".github/update_mailmap.py" ".github/metadata.py" "setup.py"
|
|
26
27
|
doc_files="changelog.md" "readme.md" "docs/license.md"
|
|
27
28
|
is_python_project=true
|
|
@@ -614,6 +615,10 @@ class Metadata:
|
|
|
614
615
|
flags=NODIR | GLOBSTAR | DOTGLOB | GLOBTILDE | BRACE | FOLLOW | NEGATE,
|
|
615
616
|
)
|
|
616
617
|
|
|
618
|
+
@cached_property
|
|
619
|
+
def gitignore_exists(self) -> bool:
|
|
620
|
+
return Path(".gitignore").is_file()
|
|
621
|
+
|
|
617
622
|
@cached_property
|
|
618
623
|
def python_files(self) -> Iterator[str]:
|
|
619
624
|
"""Returns a list of python files."""
|
|
@@ -996,14 +1001,16 @@ class Metadata:
|
|
|
996
1001
|
# https://snarky.ca/webassembly-and-its-platform-targets/
|
|
997
1002
|
matrix: dict[str, list[Any]] = {
|
|
998
1003
|
"entry_point": [],
|
|
999
|
-
# Run the compilation only the latest supported version of each OS.
|
|
1004
|
+
# Run the compilation only on the latest supported version of each OS.
|
|
1000
1005
|
# The exception is macOS, as macos-15 is arm64 and macos-13 is x64, so we
|
|
1001
1006
|
# need both to target the two architectures.
|
|
1007
|
+
# XXX In the future arm64 versions of Ubuntu and Windows might be supported:
|
|
1008
|
+
# https://github.com/actions/runner-images/issues/10820
|
|
1002
1009
|
"os": [
|
|
1003
|
-
"ubuntu-24.04",
|
|
1010
|
+
"ubuntu-24.04", # x64
|
|
1004
1011
|
"macos-15", # arm64
|
|
1005
1012
|
"macos-13", # x64
|
|
1006
|
-
"windows-2022",
|
|
1013
|
+
"windows-2022", # x64
|
|
1007
1014
|
],
|
|
1008
1015
|
# Extra parameters.
|
|
1009
1016
|
"include": [],
|
|
@@ -1208,6 +1215,7 @@ class Metadata:
|
|
|
1208
1215
|
metadata: dict[str, Any] = {
|
|
1209
1216
|
"new_commits": self.new_commits_hash,
|
|
1210
1217
|
"release_commits": self.release_commits_hash,
|
|
1218
|
+
"gitignore_exists": self.gitignore_exists,
|
|
1211
1219
|
"python_files": self.python_files,
|
|
1212
1220
|
"doc_files": self.doc_files,
|
|
1213
1221
|
"is_python_project": self.is_python_project,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: gha-utils
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.10.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
|
|
@@ -94,9 +94,48 @@ Nothing is done behind your back. A PR is created every time a change is propose
|
|
|
94
94
|
|
|
95
95
|
## `gha-utils` CLI
|
|
96
96
|
|
|
97
|
+
### Ad-hoc execution
|
|
98
|
+
|
|
99
|
+
Thanks to `uv`, you can install and run `gha-utils` in one command, without polluting your system:
|
|
100
|
+
|
|
101
|
+
```shell-session
|
|
102
|
+
$ uvx gha-utils
|
|
103
|
+
Installed 45 packages in 45ms
|
|
104
|
+
Usage: gha-utils [OPTIONS] COMMAND [ARGS]...
|
|
105
|
+
|
|
106
|
+
Options:
|
|
107
|
+
--time / --no-time Measure and print elapsed execution time. [default:
|
|
108
|
+
no-time]
|
|
109
|
+
--color, --ansi / --no-color, --no-ansi
|
|
110
|
+
Strip out all colors and all ANSI codes from output.
|
|
111
|
+
[default: color]
|
|
112
|
+
-C, --config CONFIG_PATH Location of the configuration file. Supports glob
|
|
113
|
+
pattern of local path and remote URL. [default:
|
|
114
|
+
~/Library/Application Support/gha-
|
|
115
|
+
utils/*.{toml,yaml,yml,json,ini,xml}]
|
|
116
|
+
--show-params Show all CLI parameters, their provenance, defaults
|
|
117
|
+
and value, then exit.
|
|
118
|
+
-v, --verbosity LEVEL Either CRITICAL, ERROR, WARNING, INFO, DEBUG.
|
|
119
|
+
[default: WARNING]
|
|
120
|
+
--version Show the version and exit.
|
|
121
|
+
-h, --help Show this message and exit.
|
|
122
|
+
|
|
123
|
+
Commands:
|
|
124
|
+
changelog Maintain a Markdown-formatted changelog
|
|
125
|
+
mailmap-sync Update Git's .mailmap file with missing contributors
|
|
126
|
+
metadata Output project metadata
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
```shell-session
|
|
130
|
+
$ uvx gha-utils --version
|
|
131
|
+
gha-utils, version 4.9.0
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
That's the best way to get started with `gha-utils`, and experiment with its features.
|
|
135
|
+
|
|
97
136
|
### Executables
|
|
98
137
|
|
|
99
|
-
|
|
138
|
+
To ease deployment, standalone executables of `gha-utils`'s latest version are available as direct downloads for several platforms and architectures:
|
|
100
139
|
|
|
101
140
|
| Platform | `x86_64` | `arm64` |
|
|
102
141
|
| ----------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -104,7 +143,9 @@ Standalone executables of `gha-utils`'s latest version are available as direct d
|
|
|
104
143
|
| **macOS** | [Download `gha-utils-macos-x64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-x64.bin) | [Download `gha-utils-macos-arm64.bin`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-macos-arm64.bin) |
|
|
105
144
|
| **Windows** | [Download `gha-utils-windows-x64.exe`](https://github.com/kdeldycke/workflows/releases/latest/download/gha-utils-windows-x64.exe) | |
|
|
106
145
|
|
|
107
|
-
###
|
|
146
|
+
### Development version
|
|
147
|
+
|
|
148
|
+
To play with the latest development version of `gha-utils`, you can install it directly from the repository:
|
|
108
149
|
|
|
109
150
|
```shell-session
|
|
110
151
|
$ git clone https://github.com/kdeldycke/workflows
|
|
@@ -112,7 +153,7 @@ $ cd workflows
|
|
|
112
153
|
$ python -m pip install uv
|
|
113
154
|
$ uv venv
|
|
114
155
|
$ source .venv/bin/activate
|
|
115
|
-
$ uv
|
|
156
|
+
$ uv sync
|
|
116
157
|
$ uv run -- gha-utils
|
|
117
158
|
```
|
|
118
159
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
gha_utils/__init__.py,sha256=5f8Ppp_vpQHlX_tlq24hUmeB4bCMtakF6DyPxS76sJQ,866
|
|
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=PGIv3Gy8I7RjbgOSn6ZPWsgrMRz8zf6cuPn6A4F6ebY,49482
|
|
7
|
+
gha_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
gha_utils-4.10.0.dist-info/METADATA,sha256=WoSGBLgL0W_ehx-08I8dKVeQW1I9074TqDD748DHEBE,20106
|
|
9
|
+
gha_utils-4.10.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
10
|
+
gha_utils-4.10.0.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
|
|
11
|
+
gha_utils-4.10.0.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
|
|
12
|
+
gha_utils-4.10.0.dist-info/RECORD,,
|
gha_utils-4.8.4.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
gha_utils/__init__.py,sha256=O1_dwlnipQhaW2LRp3Sq8NkIr7o6aS2JTaIr_xXDJTw,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=6N_YIARr18gKzDET8B57iFROSQxhzsbhJ9CwahsUM9E,49125
|
|
7
|
-
gha_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
gha_utils-4.8.4.dist-info/METADATA,sha256=d791zTndfI_ltmkEYyYtialH1tkaBWujgfVXFaFmIP0,18466
|
|
9
|
-
gha_utils-4.8.4.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
10
|
-
gha_utils-4.8.4.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
|
|
11
|
-
gha_utils-4.8.4.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
|
|
12
|
-
gha_utils-4.8.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|