Skip to content

Commit 3888479

Browse files
Merge pull request #382
2 parents e7e6d8a + 841ed5e commit 3888479

6 files changed

Lines changed: 886 additions & 854 deletions

File tree

‎.github/actions/setup/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Installs the given GardenLinux Python library
44
inputs:
55
version:
66
description: GardenLinux Python library version
7-
default: "1.0.0"
7+
default: "1.0.1"
88
python_version:
99
description: Python version to setup
1010
default: "3.14"

‎poetry.lock‎

Lines changed: 863 additions & 836 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "gardenlinux"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "Contains tools to work with the features directory of gardenlinux, for example deducting dependencies from feature sets or validating cnames"
55
authors = ["Garden Linux Maintainers <contact@gardenlinux.io>"]
66
license = "Apache-2.0"
@@ -10,31 +10,32 @@ packages = [{ include = "gardenlinux", from = "src" }]
1010
[tool.poetry.dependencies]
1111
python = ">=3.13,!=3.14.1"
1212
apt-repo = "^0.5"
13-
boto3 = "^1.43.108"
13+
boto3 = "^1.44.2"
1414
cryptography = "^49.0.0"
1515
jsonschema = "^4.26.0"
1616
networkx = "^3.7"
1717
oras = "^0.2.43"
1818
podman = "^5.8.0"
19-
pygit2 = "^1.20.1"
19+
pygit2 = "^1.21.0"
2020
pygments = "^2.21.0"
2121
PyGithub = "^2.10.0"
2222
PyYAML = "^6.0.3"
23-
semver = "^3.1.0"
23+
semver = "^3.1.1"
2424

2525
[tool.poetry.group.dev.dependencies]
2626
bandit = "^1.9.4"
27+
boto3-stubs = { extras = ["s3"], version = "^1.44.2" }
2728
isort = "^8.0.1"
28-
moto = "^5.2.1"
29-
pre-commit = "^4.6.2"
29+
moto = "^5.2.5"
30+
mypy = "2.1.0"
31+
pre-commit = "^4.7.0"
3032
python-dotenv = "^1.2.2"
31-
pytest = "^9.1.1"
33+
pytest = "^9.2.0"
3234
pytest-cov = "^7.1.0"
3335
requests-mock = "^1.12.1"
34-
mypy = "2.1.0"
35-
types-pyyaml = "^6.0.12.20260518"
36-
types-requests = "^2.33.0.20260518"
37-
boto3-stubs = { extras = ["s3"], version = "^1.42.41" }
36+
sphinx = "9.2.0"
37+
types-pyyaml = "^6.0.12.20261111"
38+
types-requests = "^2.33.0.20261030"
3839

3940
[tool.poetry.group.docs.dependencies]
4041
sphinx-rtd-theme = "^3.1.0"

‎src/gardenlinux/features/artifact_base_name.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(
5050
"""
5151

5252
re_object = re.compile(
53-
"([a-zA-Z0-9]+([\\_\\-][a-zA-Z0-9]+)*?)-([a-z0-9]+)-([a-z0-9.]+)-([a-z0-9]+)(\\.|$)"
53+
"([a-zA-Z0-9]+([\\_\\-][a-zA-Z0-9]+)*?)-([a-z0-9]+)-([a-z0-9.]+)-([a-z0-9]+)$"
5454
)
5555

5656
re_match = re_object.match(artifact)

‎src/gardenlinux/oci/repository.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def push_oci_archive(
577577
if not oci_image_ref_name:
578578
oci_image_ref_name = None
579579

580-
with TemporaryDirectory(delete=False) as tmpdir:
580+
with TemporaryDirectory() as tmpdir:
581581
tar_file = TarFile.taropen(oci_archive_file_name)
582582
tar_file.extractall(tmpdir)
583583

‎tests/features/test_main.py‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,22 @@ class MockGraph:
4646
def test_get_version_and_commit_from_file(tmp_path: Path) -> None:
4747
# Arrange
4848
commit_file = tmp_path / "COMMIT"
49-
commit_file.write_text("abcdef12\n")
49+
50+
commit_file.write_text(
51+
"2e8f62e0560b2c3913f4d9aaf3b3d9f1cdc8b79c1929d5026ca6f053969a4a24\n"
52+
)
53+
5054
version_file = tmp_path / "VERSION"
51-
version_file.write_text("1.2.3\n")
55+
version_file.write_text("42.0.0\n")
5256

5357
# Act
5458
version, commit = ArtifactBaseName.get_version_and_commit_id_from_files(
5559
str(tmp_path)
5660
)
5761

5862
# Arrange
59-
assert version == "1.2.3"
60-
assert commit == "abcdef12"
63+
assert version == "42.0.0"
64+
assert commit == "2e8f62e0"
6165

6266

6367
# -------------------------------

0 commit comments

Comments
 (0)