github-rest-api 0.38.0__tar.gz → 0.38.2__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.
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/PKG-INFO +1 -1
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/container/build_container_images.py +10 -2
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/pyproject.toml +1 -1
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/uv.lock +1 -1
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/.gemini/system.md +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/.github/workflows/create_pr_to_main.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/.github/workflows/lint.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/.github/workflows/release.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/.github/workflows/remove_branch.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/.github/workflows/test.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/.gitignore +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/.gitpod.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/GEMINI.md +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/README.md +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/__init__.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/__init__.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/cargo/__init__.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/cargo/benchmark.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/cargo/profiling.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/cargo/utils.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/container/__init__.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/container/config_container.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/container/update_version_containerfile.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/__init__.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/add_github_repo.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/create_pull_request.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/release_on_github.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/remove_branch.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/workflows/create_pr_dev_to_main.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/workflows/create_pr_to_dev.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/workflows/create_pr_to_main.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/workflows/python/lint.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/workflows/python/test.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/workflows/remove_branch.yml +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/utils.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/github.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/utils.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/memory/MEMORY.md +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/memory/feedback_test_runner.md +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/tests/__init__.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/tests/test_build_container_images.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/tests/test_github.py +0 -0
- {github_rest_api-0.38.0 → github_rest_api-0.38.2}/tests/test_utils.py +0 -0
|
@@ -132,6 +132,12 @@ def _build_image(
|
|
|
132
132
|
_push_image(f"{image}:{tag}", tool=tool)
|
|
133
133
|
|
|
134
134
|
|
|
135
|
+
def _validate_paths_exist(paths: Sequence[str], label: str) -> None:
|
|
136
|
+
missing = [p for p in paths if not Path(p).exists()]
|
|
137
|
+
if missing:
|
|
138
|
+
sys.exit(f"\nError: the following {label} do not exist:\n{'\n'.join(missing)}")
|
|
139
|
+
|
|
140
|
+
|
|
135
141
|
def build_images(
|
|
136
142
|
commit1: str,
|
|
137
143
|
commit2: str,
|
|
@@ -140,6 +146,8 @@ def build_images(
|
|
|
140
146
|
tool: str = "podman",
|
|
141
147
|
registry: str = "quay.io/legendu",
|
|
142
148
|
):
|
|
149
|
+
_validate_paths_exist(image_dirs, "image dirs")
|
|
150
|
+
_validate_paths_exist(paths_monitoring, "monitored paths")
|
|
143
151
|
if not has_relevant_changes(commit1, commit2, image_dirs, paths_monitoring):
|
|
144
152
|
print(
|
|
145
153
|
f"Skip building {tool} images as there are no relevant changes between {
|
|
@@ -209,11 +217,11 @@ def parse_args():
|
|
|
209
217
|
help="Explicit list of image directories to build.",
|
|
210
218
|
)
|
|
211
219
|
group.add_argument(
|
|
212
|
-
"-
|
|
220
|
+
"-y",
|
|
213
221
|
"--yaml-image-dirs",
|
|
214
222
|
dest="yaml_image_dirs",
|
|
215
223
|
default=None,
|
|
216
|
-
metavar="
|
|
224
|
+
metavar="YAML_FILE",
|
|
217
225
|
help="Path to a YAML file containing a list of image dirs to build.",
|
|
218
226
|
)
|
|
219
227
|
parser.add_argument(
|
|
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
|
{github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/cargo/benchmark.py
RENAMED
|
File without changes
|
{github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/cargo/profiling.py
RENAMED
|
File without changes
|
|
File without changes
|
{github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/container/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/__init__.py
RENAMED
|
File without changes
|
{github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/add_github_repo.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{github_rest_api-0.38.0 → github_rest_api-0.38.2}/github_rest_api/actions/github/remove_branch.py
RENAMED
|
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
|