gha-utils 4.6.0__py3-none-any.whl → 4.7.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 CHANGED
@@ -17,4 +17,4 @@
17
17
 
18
18
  from __future__ import annotations
19
19
 
20
- __version__ = "4.6.0"
20
+ __version__ = "4.7.1"
gha_utils/metadata.py CHANGED
@@ -25,7 +25,6 @@ release_commits=6f27db47612aaee06fdf08744b09a9f5f6c2
25
25
  python_files=".github/update_mailmap.py" ".github/metadata.py" "setup.py"
26
26
  doc_files="changelog.md" "readme.md" "docs/license.md"
27
27
  is_python_project=true
28
- uv_requirement_params=--requirement pyproject.toml
29
28
  package_name=click-extra
30
29
  blacken_docs_params=--target-version py37 --target-version py38
31
30
  ruff_py_version=py37
@@ -48,40 +47,76 @@ release_commits_matrix={'commit': ['6f27db47612aaee06fdf08744b09a9f5f6c2'],
48
47
  'short_sha': '6f27db4',
49
48
  'current_version': '2.0.0'}]}
50
49
  nuitka_matrix={'entry_point': ['mpm'],
51
- 'os': ['ubuntu-22.04', 'macos-13', 'windows-2022'],
52
- 'include': [{'entry_point': 'mpm',
53
- 'cli_id': 'mpm',
54
- 'module_id': 'meta_package_manager.__main__',
55
- 'callable_id': 'main',
56
- 'module_path': 'meta_package_manager/__main__.py'},
57
- {'os': 'ubuntu-22.04',
58
- 'platform_id': 'linux',
59
- 'extension': 'bin',
60
- 'extra_python_params': ''},
61
- {'os': 'macos-13',
62
- 'platform_id': 'macos',
63
- 'extension': 'bin',
64
- 'extra_python_params': ''},
65
- {'os': 'windows-2022',
66
- 'platform_id': 'windows',
67
- 'extension': 'exe',
68
- 'extra_python_params': '-X utf8'},
69
- {'entry_point': 'mpm',
70
- 'os': 'ubuntu-22.04',
71
- 'arch': 'x64',
72
- 'bin_name': 'mpm-linux-x64-build-6f27db4.bin'},
73
- {'entry_point': 'mpm',
74
- 'os': 'macos-14',
75
- 'arch': 'arm64',
76
- 'bin_name': 'mpm-macos-arm64-build-6f27db4.bin'},
77
- {'entry_point': 'mpm',
78
- 'os': 'macos-13',
79
- 'arch': 'x64',
80
- 'bin_name': 'mpm-macos-x64-build-6f27db4.bin'},
81
- {'entry_point': 'mpm',
82
- 'os': 'windows-2022',
83
- 'arch': 'x64',
84
- 'bin_name': 'mpm-windows-x64-build-6f27db4.exe'}]}
50
+ 'commit': ['346ce664f055fbd042a25ee0b7e96702e95',
51
+ '6f27db47612aaee06fdf08744b09a9f5f6c2'],
52
+ 'os': ['ubuntu-24.04', 'macos-15', 'macos-13', 'windows-2022'],
53
+ 'include': [{'entry_point': 'mpm',
54
+ 'cli_id': 'mpm',
55
+ 'module_id': 'meta_package_manager.__main__',
56
+ 'callable_id': 'main',
57
+ 'module_path': 'meta_package_manager/__main__.py'},
58
+ {'commit': '346ce664f055fbd042a25ee0b7e96702e95',
59
+ 'short_sha': '346ce66',
60
+ 'current_version': '2.0.0'},
61
+ {'commit': '6f27db47612aaee06fdf08744b09a9f5f6c2',
62
+ 'short_sha': '6f27db4',
63
+ 'current_version': '1.9.1'},
64
+ {'os': 'ubuntu-24.04',
65
+ 'platform_id': 'linux',
66
+ 'arch': 'x64',
67
+ 'extension': 'bin'},
68
+ {'os': 'macos-15',
69
+ 'platform_id': 'macos',
70
+ 'arch': 'arm64',
71
+ 'extension': 'bin'},
72
+ {'os': 'macos-13',
73
+ 'platform_id': 'macos',
74
+ 'arch': 'x64',
75
+ 'extension': 'bin'},
76
+ {'os': 'windows-2022',
77
+ 'platform_id': 'windows',
78
+ 'arch': 'x64',
79
+ 'extension': 'exe'},
80
+ {'entry_point': 'mpm',
81
+ 'commit': '346ce664f055fbd042a25ee0b7e96702e95',
82
+ 'os': 'ubuntu-24.04',
83
+ 'arch': 'x64',
84
+ 'bin_name': 'mpm-linux-x64-build-346ce66.bin'},
85
+ {'entry_point': 'mpm',
86
+ 'commit': '6f27db47612aaee06fdf08744b09a9f5f6c2',
87
+ 'os': 'ubuntu-24.04',
88
+ 'arch': 'x64',
89
+ 'bin_name': 'mpm-linux-x64-build-6f27db4.bin'},
90
+ {'entry_point': 'mpm',
91
+ 'commit': '346ce664f055fbd042a25ee0b7e96702e95',
92
+ 'os': 'macos-15',
93
+ 'arch': 'arm64',
94
+ 'bin_name': 'mpm-macos-arm64-build-346ce66.bin'},
95
+ {'entry_point': 'mpm',
96
+ 'commit': '6f27db47612aaee06fdf08744b09a9f5f6c2',
97
+ 'os': 'macos-15',
98
+ 'arch': 'arm64',
99
+ 'bin_name': 'mpm-macos-arm64-build-6f27db4.bin'},
100
+ {'entry_point': 'mpm',
101
+ 'commit': '346ce664f055fbd042a25ee0b7e96702e95',
102
+ 'os': 'macos-13',
103
+ 'arch': 'x64',
104
+ 'bin_name': 'mpm-macos-x64-build-346ce66.bin'},
105
+ {'entry_point': 'mpm',
106
+ 'commit': '6f27db47612aaee06fdf08744b09a9f5f6c2',
107
+ 'os': 'macos-13',
108
+ 'arch': 'x64',
109
+ 'bin_name': 'mpm-macos-x64-build-6f27db4.bin'},
110
+ {'entry_point': 'mpm',
111
+ 'commit': '346ce664f055fbd042a25ee0b7e96702e95',
112
+ 'os': 'windows-2022',
113
+ 'arch': 'x64',
114
+ 'bin_name': 'mpm-windows-x64-build-346ce66.exe'},
115
+ {'entry_point': 'mpm',
116
+ 'commit': '6f27db47612aaee06fdf08744b09a9f5f6c2',
117
+ 'os': 'windows-2022',
118
+ 'arch': 'x64',
119
+ 'bin_name': 'mpm-windows-x64-build-6f27db4.exe'}]}
85
120
  ```
86
121
 
87
122
  .. warning::
@@ -584,22 +619,11 @@ class Metadata:
584
619
  """Returns a list of python files."""
585
620
  yield from self.glob_files("**/*.py", "!.venv/**")
586
621
 
587
- @cached_property
588
- def requirement_files(self) -> Iterator[str]:
589
- """Returns a list of requirement files supported by uv."""
590
- yield from self.glob_files(
591
- "**/pyproject.toml", "*requirements.txt", "requirements/*.txt"
592
- )
593
-
594
622
  @cached_property
595
623
  def doc_files(self) -> Iterator[str]:
596
624
  """Returns a list of doc files."""
597
625
  yield from self.glob_files("**/*.{md,markdown,rst,tex}", "!.venv/**")
598
626
 
599
- @cached_property
600
- def uv_requirement_params(self) -> Iterator[str]:
601
- return (f"--requirement {req}" for req in self.requirement_files)
602
-
603
627
  @property
604
628
  def is_python_project(self):
605
629
  """Returns ``True`` if repository is a Python project.
@@ -723,6 +747,7 @@ class Metadata:
723
747
  - ``--target-version py310``
724
748
  - ``--target-version py311``
725
749
  - ``--target-version py312``
750
+ - ``--target-version py313``
726
751
 
727
752
  As mentioned in Black usage, you should `include all Python versions that you
728
753
  want your code to run under
@@ -822,8 +847,7 @@ class Metadata:
822
847
  # Look for list of active Sphinx extensions.
823
848
  for node in ast.parse(self.sphinx_conf_path.read_bytes()).body:
824
849
  if isinstance(node, ast.Assign) and isinstance(
825
- node.value,
826
- ast.List | ast.Tuple, # type: ignore[operator]
850
+ node.value, ast.List | ast.Tuple
827
851
  ):
828
852
  extension_found = "extensions" in (
829
853
  t.id # type: ignore[attr-defined]
@@ -860,8 +884,7 @@ class Metadata:
860
884
  "346ce664f055fbd042a25ee0b7e96702e95",
861
885
  "6f27db47612aaee06fdf08744b09a9f5f6c2",
862
886
  ],
863
- "os": ["ubuntu-22.04", "macos-13", "windows-2022"],
864
- "arch": ["x64"],
887
+ "os": ["ubuntu-24.04", "macos-15", "macos-13", "windows-2022"],
865
888
  "include": [
866
889
  {
867
890
  "entry_point": "mpm",
@@ -873,56 +896,71 @@ class Metadata:
873
896
  {
874
897
  "commit": "346ce664f055fbd042a25ee0b7e96702e95",
875
898
  "short_sha": "346ce66",
899
+ "current_version": "2.0.0",
876
900
  },
877
901
  {
878
902
  "commit": "6f27db47612aaee06fdf08744b09a9f5f6c2",
879
903
  "short_sha": "6f27db4",
904
+ "current_version": "1.9.1",
880
905
  },
881
906
  {
882
- "os": "ubuntu-22.04",
907
+ "os": "ubuntu-24.04",
883
908
  "platform_id": "linux",
909
+ "arch": "x64",
910
+ "extension": "bin",
911
+ },
912
+ {
913
+ "os": "macos-15",
914
+ "platform_id": "macos",
915
+ "arch": "arm64",
884
916
  "extension": "bin",
885
- "extra_python_params": "",
886
917
  },
887
918
  {
888
919
  "os": "macos-13",
889
920
  "platform_id": "macos",
921
+ "arch": "x64",
890
922
  "extension": "bin",
891
- "extra_python_params": "",
892
923
  },
893
924
  {
894
925
  "os": "windows-2022",
895
926
  "platform_id": "windows",
927
+ "arch": "x64",
896
928
  "extension": "exe",
897
- "extra_python_params": "-X utf8",
898
929
  },
899
930
  {
900
931
  "entry_point": "mpm",
901
932
  "commit": "346ce664f055fbd042a25ee0b7e96702e95",
902
- "os": "ubuntu-22.04",
933
+ "os": "ubuntu-24.04",
903
934
  "arch": "x64",
904
935
  "bin_name": "mpm-linux-x64-build-346ce66.bin",
905
936
  },
906
937
  {
907
938
  "entry_point": "mpm",
908
- "commit": "346ce664f055fbd042a25ee0b7e96702e95",
909
- "os": "macos-13",
939
+ "commit": "6f27db47612aaee06fdf08744b09a9f5f6c2",
940
+ "os": "ubuntu-24.04",
910
941
  "arch": "x64",
911
- "bin_name": "mpm-macos-x64-build-346ce66.bin",
942
+ "bin_name": "mpm-linux-x64-build-6f27db4.bin",
912
943
  },
913
944
  {
914
945
  "entry_point": "mpm",
915
946
  "commit": "346ce664f055fbd042a25ee0b7e96702e95",
916
- "os": "windows-2022",
917
- "arch": "x64",
918
- "bin_name": "mpm-windows-x64-build-346ce66.exe",
947
+ "os": "macos-15",
948
+ "arch": "arm64",
949
+ "bin_name": "mpm-macos-arm64-build-346ce66.bin",
919
950
  },
920
951
  {
921
952
  "entry_point": "mpm",
922
953
  "commit": "6f27db47612aaee06fdf08744b09a9f5f6c2",
923
- "os": "ubuntu-22.04",
954
+ "os": "macos-15",
955
+ "arch": "arm64",
956
+ "bin_name": "mpm-macos-arm64-build-6f27db4.bin",
957
+ },
958
+ {
959
+ "entry_point": "mpm",
960
+ "commit": "346ce664f055fbd042a25ee0b7e96702e95",
961
+ "os": "macos-13",
924
962
  "arch": "x64",
925
- "bin_name": "mpm-linux-x64-build-6f27db4.bin",
963
+ "bin_name": "mpm-macos-x64-build-346ce66.bin",
926
964
  },
927
965
  {
928
966
  "entry_point": "mpm",
@@ -931,6 +969,13 @@ class Metadata:
931
969
  "arch": "x64",
932
970
  "bin_name": "mpm-macos-x64-build-6f27db4.bin",
933
971
  },
972
+ {
973
+ "entry_point": "mpm",
974
+ "commit": "346ce664f055fbd042a25ee0b7e96702e95",
975
+ "os": "windows-2022",
976
+ "arch": "x64",
977
+ "bin_name": "mpm-windows-x64-build-346ce66.exe",
978
+ },
934
979
  {
935
980
  "entry_point": "mpm",
936
981
  "commit": "6f27db47612aaee06fdf08744b09a9f5f6c2",
@@ -952,12 +997,12 @@ class Metadata:
952
997
  matrix: dict[str, list[Any]] = {
953
998
  "entry_point": [],
954
999
  # Run the compilation only the latest supported version of each OS.
955
- # The exception is macOS, as macos-14 is arm64 and macos-13 is x64, so we
1000
+ # The exception is macOS, as macos-15 is arm64 and macos-13 is x64, so we
956
1001
  # need both to target the two architectures.
957
1002
  "os": [
958
- "ubuntu-22.04",
959
- "macos-14",
960
- "macos-13",
1003
+ "ubuntu-24.04",
1004
+ "macos-15", # arm64
1005
+ "macos-13", # x64
961
1006
  "windows-2022",
962
1007
  ],
963
1008
  # Extra parameters.
@@ -1005,38 +1050,28 @@ class Metadata:
1005
1050
  # between different OS.
1006
1051
  extra_os_params = [
1007
1052
  {
1008
- "os": "ubuntu-22.04",
1053
+ "os": "ubuntu-24.04",
1009
1054
  "platform_id": "linux",
1010
1055
  "arch": "x64",
1011
1056
  "extension": "bin",
1012
- "extra_python_params": "",
1013
1057
  },
1014
1058
  {
1015
- "os": "macos-14",
1059
+ "os": "macos-15",
1016
1060
  "platform_id": "macos",
1017
1061
  "arch": "arm64",
1018
1062
  "extension": "bin",
1019
- "extra_python_params": "",
1020
1063
  },
1021
1064
  {
1022
1065
  "os": "macos-13",
1023
1066
  "platform_id": "macos",
1024
1067
  "arch": "x64",
1025
1068
  "extension": "bin",
1026
- "extra_python_params": "",
1027
1069
  },
1028
1070
  {
1029
1071
  "os": "windows-2022",
1030
1072
  "platform_id": "windows",
1031
1073
  "arch": "x64",
1032
1074
  "extension": "exe",
1033
- # XXX "-X utf8" parameter is a workaround for Windows runners
1034
- # redirecting the output of commands to files. See:
1035
- # https://github.com/databrickslabs/dbx/issues/455#issuecomment-1312770919
1036
- # https://github.com/pallets/click/issues/2121#issuecomment-1312773882
1037
- # https://gist.github.com/NodeJSmith/e7e37f2d3f162456869f015f842bcf15
1038
- # https://github.com/Nuitka/Nuitka/blob/ca1ec9e/nuitka/utils/ReExecute.py#L73-L74
1039
- "extra_python_params": "-X utf8",
1040
1075
  },
1041
1076
  ]
1042
1077
  matrix["include"].extend(extra_os_params)
@@ -1176,7 +1211,6 @@ class Metadata:
1176
1211
  "python_files": self.python_files,
1177
1212
  "doc_files": self.doc_files,
1178
1213
  "is_python_project": self.is_python_project,
1179
- "uv_requirement_params": self.uv_requirement_params,
1180
1214
  "package_name": self.package_name,
1181
1215
  "blacken_docs_params": self.blacken_docs_params,
1182
1216
  "ruff_py_version": self.ruff_py_version,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gha-utils
3
- Version: 4.6.0
3
+ Version: 4.7.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
@@ -19,10 +19,10 @@ Classifier: Operating System :: MacOS :: MacOS X
19
19
  Classifier: Operating System :: Microsoft :: Windows
20
20
  Classifier: Operating System :: POSIX :: Linux
21
21
  Classifier: Programming Language :: Python :: 3
22
- Classifier: Programming Language :: Python :: 3.9
23
22
  Classifier: Programming Language :: Python :: 3.10
24
23
  Classifier: Programming Language :: Python :: 3.11
25
24
  Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
27
  Classifier: Programming Language :: Unix Shell
28
28
  Classifier: Topic :: Documentation :: Sphinx
@@ -43,14 +43,14 @@ Classifier: Topic :: Text Processing :: Markup :: HTML
43
43
  Classifier: Topic :: Text Processing :: Markup :: Markdown
44
44
  Classifier: Topic :: Utilities
45
45
  Classifier: Typing :: Typed
46
- Requires-Python: >=3.9
46
+ Requires-Python: >=3.10
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.10.0
50
+ Requires-Dist: click-extra ~=4.11.0
51
51
  Requires-Dist: packaging ~=24.1
52
52
  Requires-Dist: PyDriller ~=2.6
53
- Requires-Dist: pyproject-metadata ~=0.8.0
53
+ Requires-Dist: pyproject-metadata ~=0.9.0
54
54
  Requires-Dist: wcmatch >=8.5
55
55
  Requires-Dist: backports.strenum ~=1.3.1 ; python_version < "3.11"
56
56
  Requires-Dist: tomli ~=2.0.1 ; python_version < "3.11"
@@ -58,9 +58,9 @@ Provides-Extra: test
58
58
  Requires-Dist: coverage[toml] ~=7.6.0 ; extra == 'test'
59
59
  Requires-Dist: pytest ~=8.3.1 ; extra == 'test'
60
60
  Requires-Dist: pytest-cases ~=3.8.3 ; extra == 'test'
61
- Requires-Dist: pytest-cov ~=5.0.0 ; extra == 'test'
61
+ Requires-Dist: pytest-cov ~=6.0.0 ; extra == 'test'
62
62
  Requires-Dist: pytest-github-actions-annotate-failures ~=0.2.0 ; extra == 'test'
63
- Requires-Dist: pytest-randomly ~=3.15.0 ; extra == 'test'
63
+ Requires-Dist: pytest-randomly ~=3.16.0 ; extra == 'test'
64
64
 
65
65
  # `gha-utils` CLI + reusable workflows
66
66
 
@@ -90,7 +90,7 @@ It takes care of:
90
90
  - Sphinx documentation building & deployment, and `autodoc` updates
91
91
  - Label management, with file-based and content-based rules
92
92
 
93
- Nothing is done behind your back. A PR is created everytime a change is proposed, so you can inspect it, ala dependabot.
93
+ Nothing is done behind your back. A PR is created every time a change is proposed, so you can inspect it, ala dependabot.
94
94
 
95
95
  ## `gha-utils` CLI
96
96
 
@@ -0,0 +1,12 @@
1
+ gha_utils/__init__.py,sha256=7MIAHmdjpE78Pm4aTf8rkOzHnJ1mGqIjgidh-_X8sxw,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.7.1.dist-info/METADATA,sha256=bIIsgAekS-rhsUaQSxpkgOfz84zQkWNK7zNPIZO3JoA,18489
9
+ gha_utils-4.7.1.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
10
+ gha_utils-4.7.1.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
11
+ gha_utils-4.7.1.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
12
+ gha_utils-4.7.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.3.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=_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,,