Leondon9 opened a new pull request, #67064:
URL: https://github.com/apache/airflow/pull/67064
Make provider discovery parse package metadata `Project-URL` entries by
splitting only on the first comma and trimming surrounding URL whitespace.
How this is fixed:
- Use `split(",", 1)` when reading provider metadata `Project-URL` entries.
- Strip surrounding whitespace from the discovered documentation URL.
- Add a focused regression test for a documentation URL that contains a
comma in the URL portion.
Benefit:
- Valid provider package metadata with commas in documentation URLs no
longer breaks provider discovery.
- Third-party and future provider packages get a more robust metadata parser
without changing provider schemas or adding broader behavior.
closes: #67061
Tests:
- `breeze run pytest
shared/providers_discovery/tests/providers_discovery/test_providers_discovery.py
-xvs`
- `prek run ruff-format --files
shared/providers_discovery/src/airflow_shared/providers_discovery/providers_discovery.py
shared/providers_discovery/tests/providers_discovery/test_providers_discovery.py`
- `prek run ruff --files
shared/providers_discovery/src/airflow_shared/providers_discovery/providers_discovery.py
shared/providers_discovery/tests/providers_discovery/test_providers_discovery.py`
- `git diff --check`
Note: `prek --from-ref upstream/main` could not complete locally because the
hook bootstrap selected Python 3.9 for `blacken-docs`, while that hook
dependency requires Python >=3.10. The changed-file ruff hooks above passed.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — OpenAI Codex GPT-5
Generated-by: OpenAI Codex GPT-5 following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]