gha-utils 4.9.0__py3-none-any.whl → 4.10.1__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 +6 -0
- {gha_utils-4.9.0.dist-info → gha_utils-4.10.1.dist-info}/METADATA +46 -5
- gha_utils-4.10.1.dist-info/RECORD +12 -0
- {gha_utils-4.9.0.dist-info → gha_utils-4.10.1.dist-info}/WHEEL +1 -1
- gha_utils-4.9.0.dist-info/RECORD +0 -12
- {gha_utils-4.9.0.dist-info → gha_utils-4.10.1.dist-info}/entry_points.txt +0 -0
- {gha_utils-4.9.0.dist-info → gha_utils-4.10.1.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."""
|
|
@@ -1210,6 +1215,7 @@ class Metadata:
|
|
|
1210
1215
|
metadata: dict[str, Any] = {
|
|
1211
1216
|
"new_commits": self.new_commits_hash,
|
|
1212
1217
|
"release_commits": self.release_commits_hash,
|
|
1218
|
+
"gitignore_exists": self.gitignore_exists,
|
|
1213
1219
|
"python_files": self.python_files,
|
|
1214
1220
|
"doc_files": self.doc_files,
|
|
1215
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.1
|
|
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=Lfv2CKICRv76_t1oYN3aA6A_4kqDiM124VABJVdOONA,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.1.dist-info/METADATA,sha256=7_BeQuc3Gck0jlopXNpHjGy4RwW2Znh2m-j24BC_W38,20106
|
|
9
|
+
gha_utils-4.10.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
10
|
+
gha_utils-4.10.1.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
|
|
11
|
+
gha_utils-4.10.1.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
|
|
12
|
+
gha_utils-4.10.1.dist-info/RECORD,,
|
gha_utils-4.9.0.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
gha_utils/__init__.py,sha256=NSdYhEZe1lp7eIRIZuBZg3pxWQWbRARG51VjHRnVgY4,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=Id0Dk5Xu7UUYyPp6_Er5yXsvUeX5tp2sRUgYLAq9jEM,49299
|
|
7
|
-
gha_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
gha_utils-4.9.0.dist-info/METADATA,sha256=YV_98lgfxyfPMcsJioO6HoF-7e7DZA8SFwKOHsCIdpc,18466
|
|
9
|
-
gha_utils-4.9.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
10
|
-
gha_utils-4.9.0.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
|
|
11
|
-
gha_utils-4.9.0.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
|
|
12
|
-
gha_utils-4.9.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|