Skip to content

[v3-1-test] Improve pyproject.toml synchronization hook with fallback logic (#61597)#61599

Merged
jscheffl merged 1 commit into
v3-1-testfrom
backport-e7ecdbd-v3-1-test
Feb 7, 2026
Merged

[v3-1-test] Improve pyproject.toml synchronization hook with fallback logic (#61597)#61599
jscheffl merged 1 commit into
v3-1-testfrom
backport-e7ecdbd-v3-1-test

Conversation

@github-actions

@github-actions github-actions Bot commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

Add fallback mechanism for provider minimum version detection when
metadata is unavailable. The hook now attempts to read local provider
pyproject.toml files as a fallback before giving up.

Changes:

  • Add get_local_provider_version() to read from local pyproject.toml
  • Extract fallback logic into _fallback_provider_version() helper
  • Add extra_information parameter to insert_documentation() for clearer
    update messages showing what was synchronized

This ensures the hook works correctly even for providers without
published metadata, improving reliability during development.
(cherry picked from commit e7ecdbd)

Co-authored-by: Jarek Potiuk jarek@potiuk.com

… logic (#61597)

Add fallback mechanism for provider minimum version detection when
metadata is unavailable. The hook now attempts to read local provider
pyproject.toml files as a fallback before giving up.

Changes:
- Add get_local_provider_version() to read from local pyproject.toml
- Extract fallback logic into _fallback_provider_version() helper
- Add extra_information parameter to insert_documentation() for clearer
  update messages showing what was synchronized

This ensures the hook works correctly even for providers without
published metadata, improving reliability during development.
(cherry picked from commit e7ecdbd)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@potiuk potiuk marked this pull request as ready for review February 7, 2026 16:26
@jscheffl jscheffl merged commit 43e8bbb into v3-1-test Feb 7, 2026
49 checks passed
@jscheffl jscheffl deleted the backport-e7ecdbd-v3-1-test branch February 7, 2026 16:46
@vatsrahul1001 vatsrahul1001 added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Mar 3, 2026
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.1.8 milestone Mar 3, 2026
vatsrahul1001 pushed a commit that referenced this pull request Mar 4, 2026
… logic (#61597) (#61599)

Add fallback mechanism for provider minimum version detection when
metadata is unavailable. The hook now attempts to read local provider
pyproject.toml files as a fallback before giving up.

Changes:
- Add get_local_provider_version() to read from local pyproject.toml
- Extract fallback logic into _fallback_provider_version() helper
- Add extra_information parameter to insert_documentation() for clearer
  update messages showing what was synchronized

This ensures the hook works correctly even for providers without
published metadata, improving reliability during development.
(cherry picked from commit e7ecdbd)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants