This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v2-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v2-2-test by this push:
     new 963373a  Switch default version of Python to 3.7 (#18922)
963373a is described below

commit 963373a21a22425d6e50007f4b793ece647b6532
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Oct 13 15:43:00 2021 +0200

    Switch default version of Python to 3.7 (#18922)
    
    (cherry picked from commit 23c8e541506968a338daf7e0ae0ad37583f48f33)
---
 BREEZE.rst                                  | 14 +++++++-------
 README.md                                   | 10 +++++-----
 breeze-complete                             |  2 +-
 dev/REFRESHING_CI_CACHE.md                  |  4 ++--
 scripts/ci/libraries/_initialization.sh     |  2 +-
 tests/bats/breeze/test_breeze_complete.bats |  8 ++++----
 6 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/BREEZE.rst b/BREEZE.rst
index e153aaf..8ab16cb 100644
--- a/BREEZE.rst
+++ b/BREEZE.rst
@@ -1266,7 +1266,7 @@ This is the current syntax for  `./breeze <./breeze>`_:
 
           One of:
 
-                 3.6 3.7 3.8 3.9
+                 3.7 3.8 3.9 3.6
 
   -a, --install-airflow-version INSTALL_AIRFLOW_VERSION
           Uses different version of Airflow when building PROD image.
@@ -1465,7 +1465,7 @@ This is the current syntax for  `./breeze <./breeze>`_:
 
           One of:
 
-                 3.6 3.7 3.8 3.9
+                 3.7 3.8 3.9 3.6
 
   -I, --production-image
           Use production image for entering the environment and builds (not 
for tests).
@@ -1532,7 +1532,7 @@ This is the current syntax for  `./breeze <./breeze>`_:
 
           One of:
 
-                 3.6 3.7 3.8 3.9
+                 3.7 3.8 3.9 3.6
 
   -v, --verbose
           Show verbose information about executed docker, kind, kubectl, helm 
commands. Useful for
@@ -1623,7 +1623,7 @@ This is the current syntax for  `./breeze <./breeze>`_:
 
           One of:
 
-                 3.6 3.7 3.8 3.9
+                 3.7 3.8 3.9 3.6
 
 
   
####################################################################################################
@@ -1818,7 +1818,7 @@ This is the current syntax for  `./breeze <./breeze>`_:
 
           One of:
 
-                 3.6 3.7 3.8 3.9
+                 3.7 3.8 3.9 3.6
 
   -b, --backend BACKEND
           Backend to use for tests - it determines which database is used.
@@ -1887,7 +1887,7 @@ This is the current syntax for  `./breeze <./breeze>`_:
 
           One of:
 
-                 3.6 3.7 3.8 3.9
+                 3.7 3.8 3.9 3.6
 
   -F, --force-build-images
           Forces building of the local docker images. The images are rebuilt
@@ -2291,7 +2291,7 @@ This is the current syntax for  `./breeze <./breeze>`_:
 
           One of:
 
-                 3.6 3.7 3.8 3.9
+                 3.7 3.8 3.9 3.6
 
   
****************************************************************************************************
    Choose backend to run for Airflow
diff --git a/README.md b/README.md
index a04ca99..cc25821 100644
--- a/README.md
+++ b/README.md
@@ -287,11 +287,11 @@ They are based on the official release schedule of Python 
and Kubernetes, nicely
    For example, for Python 3.6 it means that we drop support in main right 
after 23.12.2021, and the first
    MAJOR or MINOR version of Airflow released after will not have it.
 
-2. The "oldest" supported version of Python/Kubernetes is the default one. 
"Default" is only meaningful
-   in terms of "smoke tests" in CI PRs, which are run using this default 
version and the default reference
-   image available. Currently `apache/airflow:latest` and 
`apache/airflow:2.2.3` images
-   are both Python 3.6 images. However, the first MINOR/MAJOR release of 
Airflow release after 23.12.2021 will
-   become Python 3.7 images.
+2. The "oldest" supported version of Python/Kubernetes is the default one 
until we decide to switch to
+   later version. "Default" is only meaningful in terms of "smoke tests" in CI 
PRs, which are run using this
+   default version and the default reference image available. Currently 
`apache/airflow:latest`
+   and `apache/airflow:2.2.3` images are Python 3.7 images as we are preparing 
for 23.12.2021 when will
+   Python 3.6 reaches end of life.
 
 3. We support a new version of Python/Kubernetes in main after they are 
officially released, as soon as we
    make them work in our CI pipeline (which might not be immediate due to 
dependencies catching up with
diff --git a/breeze-complete b/breeze-complete
index 706d341..0b7e8ab 100644
--- a/breeze-complete
+++ b/breeze-complete
@@ -23,7 +23,7 @@
 # by the BATS tests automatically during pre-commit and CI
 # Those cannot be made read-only as the breeze-complete must be re-sourceable
 
-_breeze_allowed_python_major_minor_versions="3.6 3.7 3.8 3.9"
+_breeze_allowed_python_major_minor_versions="3.7 3.8 3.9 3.6"
 _breeze_allowed_backends="sqlite mysql postgres mssql"
 _breeze_allowed_integrations="cassandra kerberos mongo openldap pinot rabbitmq 
redis statsd trino all"
 _breeze_allowed_generate_constraints_modes="source-providers pypi-providers 
no-providers"
diff --git a/dev/REFRESHING_CI_CACHE.md b/dev/REFRESHING_CI_CACHE.md
index 0091bdf..b98d97c 100644
--- a/dev/REFRESHING_CI_CACHE.md
+++ b/dev/REFRESHING_CI_CACHE.md
@@ -48,7 +48,7 @@ manual refresh might be needed.
 # Manually generating constraint files
 
 ```bash
-export CURRENT_PYTHON_MAJOR_MINOR_VERSIONS_AS_STRING="3.6 3.7 3.8 3.9"
+export CURRENT_PYTHON_MAJOR_MINOR_VERSIONS_AS_STRING="3.7 3.8 3.9 3.6"
 for python_version in $(echo 
"${CURRENT_PYTHON_MAJOR_MINOR_VERSIONS_AS_STRING}")
 do
   ./breeze build-image --upgrade-to-newer-dependencies --python 
${python_version} --build-cache-local
@@ -90,5 +90,5 @@ If you have fast network and powerful computer, you can 
refresh the images in pa
 or with gnu parallel:
 
 ```bash
-parallel -j 4 --linebuffer --tagstring '{}' ./dev/refresh_images.sh ::: 3.6 
3.7 3.8 3.9
+parallel -j 4 --linebuffer --tagstring '{}' ./dev/refresh_images.sh ::: 3.7 
3.8 3.9 3.6
 ```
diff --git a/scripts/ci/libraries/_initialization.sh 
b/scripts/ci/libraries/_initialization.sh
index 0b4d356..8270165 100644
--- a/scripts/ci/libraries/_initialization.sh
+++ b/scripts/ci/libraries/_initialization.sh
@@ -111,7 +111,7 @@ function initialization::initialize_base_variables() {
     export ALL_PYTHON_MAJOR_MINOR_VERSIONS
 
     # Currently supported major/minor versions of python
-    CURRENT_PYTHON_MAJOR_MINOR_VERSIONS+=("3.6" "3.7" "3.8" "3.9")
+    CURRENT_PYTHON_MAJOR_MINOR_VERSIONS+=("3.7" "3.8" "3.9" "3.6")
     export CURRENT_PYTHON_MAJOR_MINOR_VERSIONS
 
     # Currently supported versions of Postgres
diff --git a/tests/bats/breeze/test_breeze_complete.bats 
b/tests/bats/breeze/test_breeze_complete.bats
index 787fc5b..69c7258 100644
--- a/tests/bats/breeze/test_breeze_complete.bats
+++ b/tests/bats/breeze/test_breeze_complete.bats
@@ -25,7 +25,7 @@
   source "${AIRFLOW_SOURCES}/breeze-complete"
 
   breeze_complete::get_known_values_breeze "-p"
-  assert_equal "${_breeze_known_values}" "3.6 3.7 3.8 3.9"
+  assert_equal "${_breeze_known_values}" "3.7 3.8 3.9 3.6"
 }
 
 @test "Test get_known_values long" {
@@ -34,7 +34,7 @@
   source "${AIRFLOW_SOURCES}/breeze-complete"
 
   breeze_complete::get_known_values_breeze "--python"
-  assert_equal "${_breeze_known_values}" "3.6 3.7 3.8 3.9"
+  assert_equal "${_breeze_known_values}" "3.7 3.8 3.9 3.6"
 }
 
 @test "Test wrong get_known_values" {
@@ -125,7 +125,7 @@
   COMP_WORDS=("--python" "")
   breeze_complete::_comp_breeze
 
-  assert_equal "${COMPREPLY[*]}" "3.6 3.7 3.8 3.9"
+  assert_equal "${COMPREPLY[*]}" "3.7 3.8 3.9 3.6"
 }
 
 @test "Test autocomplete --python with prefix" {
@@ -136,7 +136,7 @@
   COMP_WORDS=("--python" "3")
   breeze_complete::_comp_breeze
 
-  assert_equal "${COMPREPLY[*]}" "3.6 3.7 3.8 3.9"
+  assert_equal "${COMPREPLY[*]}" "3.7 3.8 3.9 3.6"
 }
 
 @test "Test autocomplete build-" {

Reply via email to