gha-utils 4.4.2__tar.gz → 4.4.4__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gha-utils
3
- Version: 4.4.2
3
+ Version: 4.4.4
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
@@ -46,14 +46,14 @@ Classifier: Typing :: Typed
46
46
  Requires-Python: >=3.9
47
47
  Description-Content-Type: text/markdown
48
48
  Requires-Dist: backports.strenum~=1.3.1; python_version < "3.11"
49
- Requires-Dist: boltons~=24.0.0
50
- Requires-Dist: bump-my-version~=0.24.0
49
+ Requires-Dist: boltons>=24.0.0
50
+ Requires-Dist: bump-my-version>=0.21.0
51
51
  Requires-Dist: click-extra~=4.9.0
52
52
  Requires-Dist: packaging~=24.1
53
53
  Requires-Dist: PyDriller~=2.6
54
54
  Requires-Dist: pyproject-metadata~=0.8.0
55
55
  Requires-Dist: tomli~=2.0.1; python_version < "3.11"
56
- Requires-Dist: wcmatch~=8.5.2
56
+ Requires-Dist: wcmatch>=8.5
57
57
 
58
58
  # `gha-utils` CLI + reusable workflows
59
59
 
@@ -17,4 +17,4 @@
17
17
 
18
18
  from __future__ import annotations
19
19
 
20
- __version__ = "4.4.2"
20
+ __version__ = "4.4.4"
@@ -108,18 +108,19 @@ class Changelog:
108
108
 
109
109
  assert current_version in self.content
110
110
 
111
- # Analyse the current changelog.
111
+ # Extract parts of the changelog or set default values.
112
112
  SECTION_START = "##"
113
- changelog_header, last_entry, past_entries = self.content.split(
114
- SECTION_START, 2
115
- )
113
+ sections = self.content.split(SECTION_START, 2)
114
+ changelog_header = sections[0] if len(sections) > 0 else "# Changelog\n\n"
115
+ recent_entry = sections[1] if len(sections) > 1 else ""
116
+ past_entries = sections[2] if len(sections) > 2 else ""
116
117
 
117
118
  # Derive the release template from the last entry.
118
119
  DATE_REGEX = r"\d{4}\-\d{2}\-\d{2}"
119
120
  VERSION_REGEX = r"\d+\.\d+\.\d+"
120
121
 
121
122
  # Replace the release date with the unreleased tag.
122
- new_entry = re.sub(DATE_REGEX, "unreleased", last_entry, count=1)
123
+ new_entry = re.sub(DATE_REGEX, "unreleased", recent_entry, count=1)
123
124
 
124
125
  # Update GitHub's comparison URL to target the main branch.
125
126
  new_entry = re.sub(
@@ -135,7 +136,7 @@ class Changelog:
135
136
  new_entry = re.sub(
136
137
  r"\n\n.*",
137
138
  "\n\n"
138
- "> \[!IMPORTANT\]\n"
139
+ "> \\[!IMPORTANT\\]\n"
139
140
  "> This version is not released yet and is under active development.\n\n",
140
141
  new_entry,
141
142
  flags=re.MULTILINE | re.DOTALL,
@@ -143,7 +144,7 @@ class Changelog:
143
144
 
144
145
  # Prefix entries with section marker.
145
146
  new_entry = f"{SECTION_START}{new_entry}"
146
- history = f"{SECTION_START}{last_entry}{SECTION_START}{past_entries}"
147
+ history = f"{SECTION_START}{recent_entry}{SECTION_START}{past_entries}"
147
148
 
148
149
  logging.info("New generated section:\n" + indent(new_entry, " " * 2))
149
150
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gha-utils
3
- Version: 4.4.2
3
+ Version: 4.4.4
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
@@ -46,14 +46,14 @@ Classifier: Typing :: Typed
46
46
  Requires-Python: >=3.9
47
47
  Description-Content-Type: text/markdown
48
48
  Requires-Dist: backports.strenum~=1.3.1; python_version < "3.11"
49
- Requires-Dist: boltons~=24.0.0
50
- Requires-Dist: bump-my-version~=0.24.0
49
+ Requires-Dist: boltons>=24.0.0
50
+ Requires-Dist: bump-my-version>=0.21.0
51
51
  Requires-Dist: click-extra~=4.9.0
52
52
  Requires-Dist: packaging~=24.1
53
53
  Requires-Dist: PyDriller~=2.6
54
54
  Requires-Dist: pyproject-metadata~=0.8.0
55
55
  Requires-Dist: tomli~=2.0.1; python_version < "3.11"
56
- Requires-Dist: wcmatch~=8.5.2
56
+ Requires-Dist: wcmatch>=8.5
57
57
 
58
58
  # `gha-utils` CLI + reusable workflows
59
59
 
@@ -1,10 +1,10 @@
1
- boltons~=24.0.0
2
- bump-my-version~=0.24.0
1
+ boltons>=24.0.0
2
+ bump-my-version>=0.21.0
3
3
  click-extra~=4.9.0
4
4
  packaging~=24.1
5
5
  PyDriller~=2.6
6
6
  pyproject-metadata~=0.8.0
7
- wcmatch~=8.5.2
7
+ wcmatch>=8.5
8
8
 
9
9
  [:python_version < "3.11"]
10
10
  backports.strenum~=1.3.1
@@ -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.2"
4
+ version = "4.4.4"
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"
@@ -69,14 +69,19 @@ classifiers = [
69
69
  ]
70
70
  dependencies = [
71
71
  "backports.strenum ~= 1.3.1 ; python_version < '3.11'",
72
- "boltons ~= 24.0.0",
73
- "bump-my-version ~= 0.24.0",
72
+ # Loose version to let click-extra set its own stricter dependency.
73
+ "boltons >= 24.0.0",
74
+ # Dependency version is more relaxed on bump-my-version to prevent chicken and egg
75
+ # while releasing gha-utils itself.
76
+ # v0.21.0 is the first to rely on wcmatch library.
77
+ "bump-my-version >= 0.21.0",
74
78
  "click-extra ~= 4.9.0",
75
79
  "packaging ~= 24.1",
76
80
  "PyDriller ~= 2.6",
77
81
  "pyproject-metadata ~= 0.8.0",
78
82
  "tomli ~= 2.0.1 ; python_version < '3.11'",
79
- "wcmatch ~= 8.5.2",
83
+ # Loose version to let click-extra set its own stricter dependency.
84
+ "wcmatch >= 8.5",
80
85
  ]
81
86
 
82
87
  [project.urls]
@@ -101,7 +106,7 @@ warn_unreachable = true
101
106
  pretty = true
102
107
 
103
108
  [tool.bumpversion]
104
- current_version = "4.4.2"
109
+ current_version = "4.4.4"
105
110
  allow_dirty = true
106
111
  ignore_missing_files = true
107
112
 
File without changes
File without changes
File without changes
File without changes