Skip to content

Commit d8e2976

Browse files
committed
Update to F42 and Python 3.13
A new Fedora is available which also brings a new python version. JIRA: ISV-6152 Signed-off-by: Ales Raszka <[email protected]>
1 parent cc39c38 commit d8e2976

File tree

12 files changed

+958
-832
lines changed

12 files changed

+958
-832
lines changed

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up PDM
2222
uses: pdm-project/setup-pdm@v4
2323
with:
24-
python-version: "3.12"
24+
python-version: "3.13"
2525

2626
- name: Install non-python dependencies
2727
run: |

docs/developer-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Choose the preparation process according to your Linux version.
315315
```bash
316316
sudo dnf -y install hadolint
317317
python3 -m pip install pdm
318-
pdm venv create 3.12
318+
pdm venv create 3.13
319319
pdm install
320320
source .venv/bin/activate
321321
python3 -m pip install ansible-lint
@@ -328,7 +328,7 @@ Before starting, make sure you have installed the [Brew][2] package manager.
328328
```bash
329329
brew install hadolint
330330
python3 -m pip install pdm
331-
pdm venv create 3.12
331+
pdm venv create 3.13
332332
pdm install
333333
source .venv/bin/activate
334334
python3 -m pip install ansible-lint
@@ -347,7 +347,7 @@ tox
347347
Setup python virtual environment using pdm.
348348

349349
```shell
350-
pdm venv create 3.12
350+
pdm venv create 3.13
351351
pdm install
352352
source .venv/bin/activate
353353
```

operator-pipeline-images/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/fedora/fedora:40
1+
FROM quay.io/fedora/fedora:42
22

33
LABEL description="Cli tools for operator certification pipeline"
44
LABEL summary="This image contains tools required for operator bundle certification pipeline."
@@ -70,7 +70,7 @@ COPY ./operator-pipeline-images ./operator-pipeline-images
7070
RUN pip3 install --no-cache-dir pdm
7171
# install dependencies in virtual environment
7272
COPY ./pdm.lock ./pyproject.toml ./README.md ./
73-
RUN pdm venv create 3.12 && \
73+
RUN pdm venv create 3.13 && \
7474
pdm install --frozen-lockfile --no-editable --production
7575

7676
ENV VIRTUAL_ENV=/home/user/.venv
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
2-
Community operators static test suite
2+
Community operators static test suite
33
4-
A test suite is a python package with two modules called "operator"
5-
and "bundle" each containing a collection of check functions for the
6-
respective type of resources.
4+
A test suite is a python package with two modules called "operator"
5+
and "bundle" each containing a collection of check functions for the
6+
respective type of resources.
77
88
"""

operator-pipeline-images/operatorcert/static_tests/community/bundle.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Bundle checks for the community operator static test suite
2+
Bundle checks for the community operator static test suite
33
4-
A bundle check is a function with a name starting with "check_"
5-
and taking a Bundle argument and yielding OperatorCheck objects
6-
(either Fail or Warn) to describe the issues found in the given Bundle.
4+
A bundle check is a function with a name starting with "check_"
5+
and taking a Bundle argument and yielding OperatorCheck objects
6+
(either Fail or Warn) to describe the issues found in the given Bundle.
77
"""
88

99
import json

operator-pipeline-images/operatorcert/static_tests/community/validations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Utility functions to support the check_required_fields bundle check
2+
Utility functions to support the check_required_fields bundle check
33
"""
44

55
import binascii

operator-pipeline-images/operatorcert/static_tests/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Static tests helper utilities. """
1+
"""Static tests helper utilities."""
22

33
import logging
44
from functools import wraps

operator-pipeline-images/tests/entrypoints/test_add_bundle_to_fbc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@pytest.fixture
1010
def basic_catalog_template() -> add_bundle_to_fbc.BasicTemplate:
1111
operator = MagicMock()
12+
operator.root = Path("./tmp")
1213
return add_bundle_to_fbc.BasicTemplate(
1314
operator=operator,
1415
template_type="fake-type",
@@ -20,6 +21,7 @@ def basic_catalog_template() -> add_bundle_to_fbc.BasicTemplate:
2021
@pytest.fixture
2122
def semver_template() -> add_bundle_to_fbc.SemverTemplate:
2223
operator = MagicMock()
24+
operator.root = Path("./tmp")
2325
return add_bundle_to_fbc.SemverTemplate(
2426
operator=operator,
2527
template_type="fake-type",

operator-pipeline-images/tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Miscellaneous non-fixture utility functions for tests
2+
Miscellaneous non-fixture utility functions for tests
33
"""
44

55
from pathlib import Path

pdm.lock

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

0 commit comments

Comments
 (0)