Skip to content

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Jul 7, 2025

Follow up after #52967 -> from later discussions it turned out that it's not really the ~= that is wrong and ambiguous, but that just upper-binding of Python version is generally considered as a bad idea - and it's not Astral's view but it's general consensus that upper-binding of "python-requires" is bad. Since ~= implies upper-binding, simply replacing it with >= is likely the best option we can choose.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops!

@potiuk potiuk merged commit e9eb481 into apache:main Jul 7, 2025
316 of 322 checks passed
@potiuk potiuk deleted the remove-upper-binding-for-python branch July 7, 2025 16:33
Copy link

github-actions bot commented Jul 7, 2025

Backport failed to create: v3-0-test. View the failure log Run details

Status Branch Result
v3-0-test Commit Link

You can attempt to backport this manually by running:

cherry_picker e9eb481 v3-0-test

This should apply the commit to the v3-0-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

potiuk added a commit to potiuk/airflow that referenced this pull request Jul 7, 2025
Follow up after apache#52967 -> from later discussions it turned out that
it's not really the ~= that is wrong and ambiguous, but that just
upper-binding of Python version is generally considered as a bad
idea - and it's not Astral's view but it's general consensus that
upper-binding of "python-requires" is bad. Since ~= implies
upper-binding, simply replacing it with >= is likely the best option
we can choose.

(cherry picked from commit e9eb481)
potiuk added a commit to potiuk/airflow that referenced this pull request Jul 7, 2025
Follow up after apache#52967 -> from later discussions it turned out that
it's not really the ~= that is wrong and ambiguous, but that just
upper-binding of Python version is generally considered as a bad
idea - and it's not Astral's view but it's general consensus that
upper-binding of "python-requires" is bad. Since ~= implies
upper-binding, simply replacing it with >= is likely the best option
we can choose.

(cherry picked from commit e9eb481)
potiuk added a commit that referenced this pull request Jul 7, 2025
Follow up after #52967 -> from later discussions it turned out that
it's not really the ~= that is wrong and ambiguous, but that just
upper-binding of Python version is generally considered as a bad
idea - and it's not Astral's view but it's general consensus that
upper-binding of "python-requires" is bad. Since ~= implies
upper-binding, simply replacing it with >= is likely the best option
we can choose.

(cherry picked from commit e9eb481)
potiuk added a commit to potiuk/airflow that referenced this pull request Jul 7, 2025
Follow up after apache#52980 - there are still few more places where
the ~= was used in requires-python.
potiuk added a commit that referenced this pull request Jul 7, 2025
Follow up after #52980 - there are still few more places where
the ~= was used in requires-python.
potiuk added a commit to potiuk/airflow that referenced this pull request Jul 7, 2025
)

Follow up after apache#52980 - there are still few more places where
the ~= was used in requires-python.
(cherry picked from commit 3f6f1db)

Co-authored-by: Jarek Potiuk <[email protected]>
potiuk added a commit that referenced this pull request Jul 7, 2025
…52987)

Follow up after #52980 - there are still few more places where
the ~= was used in requires-python.
(cherry picked from commit 3f6f1db)
kaxil pushed a commit that referenced this pull request Jul 9, 2025
Follow up after #52967 -> from later discussions it turned out that
it's not really the ~= that is wrong and ambiguous, but that just
upper-binding of Python version is generally considered as a bad
idea - and it's not Astral's view but it's general consensus that
upper-binding of "python-requires" is bad. Since ~= implies
upper-binding, simply replacing it with >= is likely the best option
we can choose.

(cherry picked from commit e9eb481)
kaxil pushed a commit that referenced this pull request Jul 9, 2025
…52987)

Follow up after #52980 - there are still few more places where
the ~= was used in requires-python.
(cherry picked from commit 3f6f1db)
HsiuChuanHsu pushed a commit to HsiuChuanHsu/airflow that referenced this pull request Jul 10, 2025
Follow up after apache#52967 -> from later discussions it turned out that
it's not really the ~= that is wrong and ambiguous, but that just
upper-binding of Python version is generally considered as a bad
idea - and it's not Astral's view but it's general consensus that
upper-binding of "python-requires" is bad. Since ~= implies
upper-binding, simply replacing it with >= is likely the best option
we can choose.
HsiuChuanHsu pushed a commit to HsiuChuanHsu/airflow that referenced this pull request Jul 10, 2025
Follow up after apache#52980 - there are still few more places where
the ~= was used in requires-python.
kaxil pushed a commit that referenced this pull request Jul 11, 2025
Follow up after #52967 -> from later discussions it turned out that
it's not really the ~= that is wrong and ambiguous, but that just
upper-binding of Python version is generally considered as a bad
idea - and it's not Astral's view but it's general consensus that
upper-binding of "python-requires" is bad. Since ~= implies
upper-binding, simply replacing it with >= is likely the best option
we can choose.

(cherry picked from commit e9eb481)
kaxil pushed a commit that referenced this pull request Jul 11, 2025
…52987)

Follow up after #52980 - there are still few more places where
the ~= was used in requires-python.
(cherry picked from commit 3f6f1db)
kaxil pushed a commit that referenced this pull request Jul 11, 2025
Follow up after #52967 -> from later discussions it turned out that
it's not really the ~= that is wrong and ambiguous, but that just
upper-binding of Python version is generally considered as a bad
idea - and it's not Astral's view but it's general consensus that
upper-binding of "python-requires" is bad. Since ~= implies
upper-binding, simply replacing it with >= is likely the best option
we can choose.

(cherry picked from commit e9eb481)
kaxil pushed a commit that referenced this pull request Jul 11, 2025
…52987)

Follow up after #52980 - there are still few more places where
the ~= was used in requires-python.
(cherry picked from commit 3f6f1db)
stephen-bracken pushed a commit to stephen-bracken/airflow that referenced this pull request Jul 15, 2025
Follow up after apache#52967 -> from later discussions it turned out that
it's not really the ~= that is wrong and ambiguous, but that just
upper-binding of Python version is generally considered as a bad
idea - and it's not Astral's view but it's general consensus that
upper-binding of "python-requires" is bad. Since ~= implies
upper-binding, simply replacing it with >= is likely the best option
we can choose.
stephen-bracken pushed a commit to stephen-bracken/airflow that referenced this pull request Jul 15, 2025
Follow up after apache#52980 - there are still few more places where
the ~= was used in requires-python.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants