Check python version that was used to install pre-commit venvs (#43282) by potiuk · Pull Request #43310 · apache/airflow

@potiuk

…e#43282)

Since we moved to Python 3.9 and started usign 3.9+ only features
line functools.cache, having Python 3.8 as default python version
will result in virtualenvs created with outdated python.

This pre-commit checks what is the global version of python3 and it
will complain if it is lower than 3.9. This is done via explicit
call of "python3", because this is what pre-commit does. Also
global setting is needed because otherwise new virtualenvs
created by pre-commit might be created using lower python version.

(cherry picked from commit 076da92)

@potiuk potiuk deleted the check-python-version branch

October 23, 2024 14:44

jscheffl added a commit that referenced this pull request

Oct 23, 2024

utkarsharma2 pushed a commit that referenced this pull request

Oct 24, 2024
… (#43310)

Since we moved to Python 3.9 and started usign 3.9+ only features
line functools.cache, having Python 3.8 as default python version
will result in virtualenvs created with outdated python.

This pre-commit checks what is the global version of python3 and it
will complain if it is lower than 3.9. This is done via explicit
call of "python3", because this is what pre-commit does. Also
global setting is needed because otherwise new virtualenvs
created by pre-commit might be created using lower python version.

(cherry picked from commit 076da92)

jscheffl added a commit that referenced this pull request

Oct 24, 2024

This was referenced

Oct 28, 2024

jscheffl added a commit that referenced this pull request

Nov 14, 2024

kaxil pushed a commit that referenced this pull request

Dec 17, 2024
Add newsfragment

(cherry picked from commit f0c14e7)
(cherry picked from commit 1638974)

Integrated changes from PR #43310

migrate last 3 commits from original PR

Fix pytests of breeze

Fix constraints problem with cloudant in python 3.9

(cherry picked from commit 4375185)

Fix static checks for providers and core

Fix selective checks

(cherry picked from commit 1b55c8e)

Drop Python 3.8 support in provider packages

(cherry picked from commit 5de5ca7)
(cherry picked from commit 526948f)

jscheffl added a commit that referenced this pull request

Dec 18, 2024
Add newsfragment

(cherry picked from commit f0c14e7)
(cherry picked from commit 1638974)

Integrated changes from PR #43310

migrate last 3 commits from original PR

Fix pytests of breeze

Fix constraints problem with cloudant in python 3.9

(cherry picked from commit 4375185)

Fix static checks for providers and core

Fix selective checks

(cherry picked from commit 1b55c8e)

Drop Python 3.8 support in provider packages

(cherry picked from commit 5de5ca7)
(cherry picked from commit 526948f)

jscheffl added a commit that referenced this pull request

Dec 18, 2024
Add newsfragment

(cherry picked from commit f0c14e7)
(cherry picked from commit 1638974)

Integrated changes from PR #43310

migrate last 3 commits from original PR

Fix pytests of breeze

Fix constraints problem with cloudant in python 3.9

(cherry picked from commit 4375185)

Fix static checks for providers and core

Fix selective checks

(cherry picked from commit 1b55c8e)

Drop Python 3.8 support in provider packages

(cherry picked from commit 5de5ca7)
(cherry picked from commit 526948f)

jscheffl added a commit that referenced this pull request

Dec 18, 2024
Add newsfragment

(cherry picked from commit f0c14e7)
(cherry picked from commit 1638974)

Integrated changes from PR #43310

migrate last 3 commits from original PR

Fix pytests of breeze

Fix constraints problem with cloudant in python 3.9

(cherry picked from commit 4375185)

Fix static checks for providers and core

Fix selective checks

(cherry picked from commit 1b55c8e)

Drop Python 3.8 support in provider packages

(cherry picked from commit 5de5ca7)
(cherry picked from commit 526948f)

jscheffl added a commit that referenced this pull request

Dec 19, 2024
Add newsfragment

(cherry picked from commit f0c14e7)
(cherry picked from commit 1638974)

Integrated changes from PR #43310

migrate last 3 commits from original PR

Fix pytests of breeze

Fix constraints problem with cloudant in python 3.9

(cherry picked from commit 4375185)

Fix static checks for providers and core

Fix selective checks

(cherry picked from commit 1b55c8e)

Drop Python 3.8 support in provider packages

(cherry picked from commit 5de5ca7)
(cherry picked from commit 526948f)

jscheffl added a commit that referenced this pull request

Dec 26, 2024
Add newsfragment

(cherry picked from commit f0c14e7)
(cherry picked from commit 1638974)

Integrated changes from PR #43310

migrate last 3 commits from original PR

Fix pytests of breeze

Fix constraints problem with cloudant in python 3.9

(cherry picked from commit 4375185)

Fix static checks for providers and core

Fix selective checks

(cherry picked from commit 1b55c8e)

Drop Python 3.8 support in provider packages

(cherry picked from commit 5de5ca7)
(cherry picked from commit 526948f)

potiuk pushed a commit that referenced this pull request

Jan 11, 2025
Add newsfragment

(cherry picked from commit f0c14e7)
(cherry picked from commit 1638974)

Integrated changes from PR #43310

migrate last 3 commits from original PR

Fix pytests of breeze

Fix constraints problem with cloudant in python 3.9

(cherry picked from commit 4375185)

Fix static checks for providers and core

Fix selective checks

(cherry picked from commit 1b55c8e)

Drop Python 3.8 support in provider packages

(cherry picked from commit 5de5ca7)
(cherry picked from commit 526948f)

potiuk pushed a commit that referenced this pull request

Jan 12, 2025
Add newsfragment

(cherry picked from commit f0c14e7)
(cherry picked from commit 1638974)

Integrated changes from PR #43310

migrate last 3 commits from original PR

Fix pytests of breeze

Fix constraints problem with cloudant in python 3.9

(cherry picked from commit 4375185)

Fix static checks for providers and core

Fix selective checks

(cherry picked from commit 1b55c8e)

Drop Python 3.8 support in provider packages

(cherry picked from commit 5de5ca7)
(cherry picked from commit 526948f)

Found two more traces with Python 3.8 to be updated

Fix k8s requirements merge artifact