Skip to content

Commit ee344e2

Browse files
committed
Drop support for Python 3.8 in more files
Few were missed in #49980
1 parent e6bd2d4 commit ee344e2

File tree

19 files changed

+21
-22
lines changed

19 files changed

+21
-22
lines changed

Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ chmod 1777 /tmp
702702

703703
AIRFLOW_SOURCES=$(cd "${IN_CONTAINER_DIR}/../.." || exit 1; pwd)
704704

705-
PYTHON_MAJOR_MINOR_VERSION=${PYTHON_MAJOR_MINOR_VERSION:=3.8}
705+
PYTHON_MAJOR_MINOR_VERSION=${PYTHON_MAJOR_MINOR_VERSION:=3.9}
706706

707707
export AIRFLOW_HOME=${AIRFLOW_HOME:=${HOME}}
708708

clients/python/test_python_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#
1818
# PEP 723 compliant inline script metadata (not yet widely supported)
1919
# /// script
20-
# requires-python = ">=3.8"
20+
# requires-python = ">=3.9"
2121
# dependencies = [
2222
# "apache-airflow-client",
2323
# "rich",

dev/README_RELEASE_AIRFLOW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ Optionally it can be followed with constraints
675675
676676
```shell script
677677
pip install apache-airflow==<VERSION>rc<X> \
678-
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-<VERSION>/constraints-3.8.txt"`
678+
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-<VERSION>/constraints-3.9.txt"`
679679
```
680680
681681
Note that the constraints contain python version that you are installing it with.

dev/breeze/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,6 @@ PLEASE DO NOT MODIFY THE HASH BELOW! IT IS AUTOMATICALLY UPDATED BY PRE-COMMIT.
128128

129129
---------------------------------------------------------------------------------------------------------
130130

131-
Package config hash: 8ffea3f340132c8cbe5c5ee29e95563ba0bcb91aabf5ae792e6ac99326108abeb1e0d2c281c444a136c73557f4d1bbb00a6b41f1bf406f6cb2f23f48ffda7424
131+
Package config hash: b3fa7a0a91cc5be74352789e326e72ef2bbe1c63f2b49b59d763a9c4eb8a218e39526a45fbd0d36c9ef9f18a1d3e166305273f32742f3f432342ae7ec506f94a
132132

133133
---------------------------------------------------------------------------------------------------------

dev/breeze/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ classifiers = [
3636
"Intended Audience :: Developers",
3737
"Framework :: Apache Airflow",
3838
"License :: OSI Approved :: Apache Software License",
39-
"Programming Language :: Python :: 3.8",
4039
"Programming Language :: Python :: 3.9",
4140
"Programming Language :: Python :: 3.10",
4241
"Programming Language :: Python :: 3.11",

dev/breeze/tests/test_run_test_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_primary_test_arg_is_excluded_by_extra_pytest_arg(mock_run_command):
7171
test_type=f"Providers[{test_provider},{test_provider_not_skipped}]",
7272
),
7373
extra_pytest_args=(f"--ignore=tests/providers/{test_provider}",),
74-
python_version="3.8",
74+
python_version="3.9",
7575
output=None,
7676
test_timeout=60,
7777
skip_docker_compose_down=True,

dev/check_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"""
3434

3535
AIRFLOW_DOCKER = """\
36-
FROM python:3.8
36+
FROM python:3.9
3737
3838
# Upgrade
3939
RUN pip install "apache-airflow=={}"

docker_tests/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121

2222
SOURCE_ROOT = Path(__file__).resolve().parents[1]
2323

24-
DEFAULT_PYTHON_MAJOR_MINOR_VERSION = "3.8"
24+
DEFAULT_PYTHON_MAJOR_MINOR_VERSION = "3.9"
2525
DEFAULT_DOCKER_IMAGE = f"ghcr.io/apache/airflow/main/prod/python{DEFAULT_PYTHON_MAJOR_MINOR_VERSION}:latest"
2626
DOCKER_IMAGE = os.environ.get("DOCKER_IMAGE") or DEFAULT_DOCKER_IMAGE

kubernetes_tests/test_kubernetes_pod_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ def __getattr__(self, name):
13461346
task = KubernetesPodOperator(
13471347
task_id="dry_run_demo",
13481348
name="hello-dry-run",
1349-
image="python:3.8-slim-buster",
1349+
image="python:3.9-slim-buster",
13501350
cmds=["printenv"],
13511351
env_vars=[
13521352
V1EnvVar(name="password", value="{{ password }}"),

scripts/ci/docker-compose/devcontainer.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
HOME=
18-
AIRFLOW_CI_IMAGE="ghcr.io/apache/airflow/main/ci/python3.8:latest"
18+
AIRFLOW_CI_IMAGE="ghcr.io/apache/airflow/main/ci/python3.9:latest"
1919
ANSWER=
2020
AIRFLOW_ENV="development"
21-
PYTHON_MAJOR_MINOR_VERSION="3.8"
21+
PYTHON_MAJOR_MINOR_VERSION="3.9"
2222
AIRFLOW_EXTRAS=
2323
BASE_BRANCH="main"
2424
BREEZE="true"

0 commit comments

Comments
 (0)