Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary compatibility code in S3 asset import #44714

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Dec 6, 2024

The S3 asset import had a conditional code to import assets but
it is unnecessary, because the compatibility code is added to
common.compat provider - but only in the upcoming version so we have
to make sure that common.compat is added to "chicken-egg" providers,
so that constaraints are properly generated for PyPI packages.

This is also the case where we can bump manually provider version
without waiting for release time - because we need to depend on the
new provider version in amazon provider.


^ 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 newsfragments.

The S3 asset import had a conditional code to import assets but
it is unnecessary, because the compatibility code is added to
common.compat provider - but only in the upcoming version so we have
to make sure that common.compat is added to "chicken-egg" providers,
so that constaraints are properly generated for PyPI packages.

This is also the case where we can bump manually provider version
without waiting for release time - because we need to depend on the
new provider version in amazon provider.
@potiuk potiuk force-pushed the fix-unnecessary-conditional-code branch from 148f0a9 to 00a6889 Compare December 6, 2024 06:45
@potiuk
Copy link
Member Author

potiuk commented Dec 6, 2024

Extracted from #44686 - I found this unnecessary compatibility code while looing and consistency of version checks across all providers.

@potiuk potiuk merged commit 450132b into apache:main Dec 6, 2024
138 checks passed
@potiuk potiuk deleted the fix-unnecessary-conditional-code branch December 6, 2024 09:53
Ohashiro pushed a commit to Ohashiro/airflow that referenced this pull request Dec 6, 2024
The S3 asset import had a conditional code to import assets but
it is unnecessary, because the compatibility code is added to
common.compat provider - but only in the upcoming version so we have
to make sure that common.compat is added to "chicken-egg" providers,
so that constaraints are properly generated for PyPI packages.

This is also the case where we can bump manually provider version
without waiting for release time - because we need to depend on the
new provider version in amazon provider.
LefterisXefteris pushed a commit to LefterisXefteris/airflow that referenced this pull request Jan 5, 2025
The S3 asset import had a conditional code to import assets but
it is unnecessary, because the compatibility code is added to
common.compat provider - but only in the upcoming version so we have
to make sure that common.compat is added to "chicken-egg" providers,
so that constaraints are properly generated for PyPI packages.

This is also the case where we can bump manually provider version
without waiting for release time - because we need to depend on the
new provider version in amazon provider.
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.

3 participants