Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
build:
os: "ubuntu-22.04"
tools:
python: "3.10"
python: "3.11"

python:
install:
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Changelog
Unreleased
----------

* Updated Python version to ``3.11``.

2.45.0 (2025-02-19)
-------------------

Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build container
FROM python:3.10-slim AS build
FROM python:3.11-slim AS build

RUN mkdir -pv /src

Expand All @@ -14,12 +14,12 @@ RUN python -m pip install -U setuptools==70.3.0 && \


# Run container
FROM python:3.10-slim
FROM python:3.11-slim

LABEL license="Apache License 2.0" \
maintainer="Crate.IO GmbH <office@crate.io>" \
name="CrateDB Kubernetes Operator" \
repository="crate/crate-operator"
maintainer="Crate.IO GmbH <office@crate.io>" \
name="CrateDB Kubernetes Operator" \
repository="crate/crate-operator"

WORKDIR /etc/cloud
RUN useradd -U -M crate-operator
Expand Down
2 changes: 1 addition & 1 deletion crate/operator/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def env(self, name: str, *, default=UNDEFINED) -> str:
if default is UNDEFINED:
# raise from None - so that the traceback of the original
# exception (KeyError) is not printed
# https://docs.python.org/3.10/reference/simple_stmts.html#the-raise-statement
# https://docs.python.org/3.11/reference/simple_stmts.html#the-raise-statement
raise ConfigurationError(
f"Required environment variable '{full_name}' is not set."
) from None
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@
"bitmath": ("https://bitmath.readthedocs.io/en/stable/", None),
"cratedb": ("https://crate.io/docs/crate/reference/en/stable/", None),
"kopf": ("https://kopf.readthedocs.io/en/stable/", None),
"python": ("https://docs.python.org/3.10/", None),
"python": ("https://docs.python.org/3.11/", None),
}
always_document_param_types = True
6 changes: 3 additions & 3 deletions docs/source/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Working on the operator
Local installation
------------------

The ``crate-operator`` package requires **Python 3.10**.
The ``crate-operator`` package requires **Python 3.11**.

It is recommended to use a virtual environment to the operator and its
dependencies for local development.
Expand All @@ -17,7 +17,7 @@ dependencies for local development.

.. code-block:: console

$ python3.10 -m venv env
$ python3.11 -m venv env
$ source env/bin/activate
(env)$ python -m pip install -e .

Expand Down Expand Up @@ -57,7 +57,7 @@ test dependencies. This is typically done inside a Python virtual environment:

.. code-block:: console

$ python3.10 -m venv env
$ python3.11 -m venv env
$ source env/bin/activate
(env)$ python -m pip install -e '.[testing]'
Successfully installed ... crate-operator ...
Expand Down