gha-utils 4.17.7__tar.gz → 4.17.9__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.17.7 → gha_utils-4.17.9}/PKG-INFO +1 -1
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils/__init__.py +1 -1
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils/cli.py +1 -1
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils/metadata.py +34 -8
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils.egg-info/PKG-INFO +1 -1
- {gha_utils-4.17.7 → gha_utils-4.17.9}/pyproject.toml +2 -2
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils/__main__.py +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils/changelog.py +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils/mailmap.py +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils/matrix.py +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils/py.typed +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils/test_plan.py +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils.egg-info/SOURCES.txt +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils.egg-info/dependency_links.txt +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils.egg-info/entry_points.txt +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils.egg-info/requires.txt +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/gha_utils.egg-info/top_level.txt +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/readme.md +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/setup.cfg +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/tests/test_changelog.py +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/tests/test_mailmap.py +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/tests/test_matrix.py +0 -0
- {gha_utils-4.17.7 → gha_utils-4.17.9}/tests/test_metadata.py +0 -0
|
@@ -165,7 +165,7 @@ def metadata(ctx, unstable_targets, format, overwrite, output_path):
|
|
|
165
165
|
# Extract targets from the raw string provided by the user.
|
|
166
166
|
valid_targets = set()
|
|
167
167
|
if unstable_targets:
|
|
168
|
-
for target in re.split("[^a-z0-9\-]", unstable_targets.lower()):
|
|
168
|
+
for target in re.split(r"[^a-z0-9\-]", unstable_targets.lower()):
|
|
169
169
|
if target:
|
|
170
170
|
if target not in NUITKA_BUILD_TARGETS:
|
|
171
171
|
logging.fatal(
|
|
@@ -687,14 +687,40 @@ class Metadata:
|
|
|
687
687
|
|
|
688
688
|
@staticmethod
|
|
689
689
|
def glob_files(*patterns: str) -> Iterator[Path]:
|
|
690
|
-
"""
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
690
|
+
"""Return all file path matching the ``patterns``.
|
|
691
|
+
|
|
692
|
+
Patterns are glob patterns supporting ``**`` for recursive search, and ``!``
|
|
693
|
+
for negation.
|
|
694
|
+
|
|
695
|
+
All directories are traversed, whether they are hidden (i.e. starting with a
|
|
696
|
+
dot ``.``) or not, including symlinks.
|
|
697
|
+
|
|
698
|
+
Returns both hidden and non-hidden files, but no directories.
|
|
699
|
+
|
|
700
|
+
All files are normalized to their absolute path, so that duplicates produced by
|
|
701
|
+
symlinks are ignored.
|
|
702
|
+
|
|
703
|
+
Files that doesn't exist and broken symlinks are skipped.
|
|
704
|
+
"""
|
|
705
|
+
seen = set()
|
|
706
|
+
for file_path in iglob(
|
|
707
|
+
patterns,
|
|
708
|
+
flags=NODIR | GLOBSTAR | DOTGLOB | GLOBTILDE | BRACE | FOLLOW | NEGATE,
|
|
709
|
+
):
|
|
710
|
+
# Normalize the path to avoid duplicates.
|
|
711
|
+
try:
|
|
712
|
+
normalized_path = Path(file_path).resolve(strict=True)
|
|
713
|
+
# Skip files that do not exist or broken symlinks.
|
|
714
|
+
except OSError:
|
|
715
|
+
logging.warning(
|
|
716
|
+
f"Skipping non-existing file / broken symlink: {file_path}"
|
|
717
|
+
)
|
|
718
|
+
continue
|
|
719
|
+
if normalized_path in seen:
|
|
720
|
+
logging.debug(f"Skipping duplicate file: {normalized_path}")
|
|
721
|
+
continue
|
|
722
|
+
seen.add(normalized_path)
|
|
723
|
+
yield normalized_path
|
|
698
724
|
|
|
699
725
|
@cached_property
|
|
700
726
|
def gitignore_exists(self) -> bool:
|
|
@@ -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.17.
|
|
4
|
+
version = "4.17.9"
|
|
5
5
|
# Python versions and their status: https://devguide.python.org/versions/
|
|
6
6
|
requires-python = ">= 3.11"
|
|
7
7
|
description = "⚙️ CLI helpers for GitHub Actions + reuseable workflows"
|
|
@@ -137,7 +137,7 @@ addopts = [
|
|
|
137
137
|
xfail_strict = true
|
|
138
138
|
|
|
139
139
|
[tool.bumpversion]
|
|
140
|
-
current_version = "4.17.
|
|
140
|
+
current_version = "4.17.9"
|
|
141
141
|
allow_dirty = true
|
|
142
142
|
ignore_missing_files = true
|
|
143
143
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|