This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 0266cae0e24 Keep the custom-toolset example's version from changing
the PyPI path (#74939)
0266cae0e24 is described below
commit 0266cae0e242234c101fbf3c5ce991a8da96aa21
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Oct 18 00:50:53 2026 +0200
Keep the custom-toolset example's version from changing the PyPI path
(#74939)
* Keep the custom-toolset example's version from changing the PyPI path
The writing-a-toolset guide says the example's pattern constraints keep
a name or version from changing the URL the hook calls, but the version
pattern accepted "." and "..", which step the request onto another PyPI
path. It now has to start with a letter or digit, like the name pattern.
Generated-by: Claude Opus 5
* Point the 1.0.0 changelog entry at this PR instead of the closed #74935
The entry merged in #74937 cited #74935, which was closed in favour of
#74904 before this fix could land through it; the fix ships through #74939.
#74937 itself goes in the excluded block.
Generated-by: Claude Opus 5
---
providers/common/ai/docs/changelog.rst | 3 ++-
.../airflow/providers/common/ai/example_dags/example_custom_toolset.py | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/providers/common/ai/docs/changelog.rst
b/providers/common/ai/docs/changelog.rst
index 1f294b745e6..d5bca6671c0 100644
--- a/providers/common/ai/docs/changelog.rst
+++ b/providers/common/ai/docs/changelog.rst
@@ -218,7 +218,7 @@ Misc
Doc-only
~~~~~~~~
-* ``Keep the custom-toolset example's version from changing the PyPI path
(#74935)``
+* ``Keep the custom-toolset example's version from changing the PyPI path
(#74939)``
* ``Fix stale Common AI docs and add a guide to writing a toolset (#74904)``
* ``Document progressive tool disclosure for Common AI toolsets (#74736)``
* ``Walk through the reviewer's side of Common AI approval gates (#74737)``
@@ -254,6 +254,7 @@ Doc-only
.. Below changes are excluded from the changelog. Move them to
appropriate section above if needed. Do not delete the lines(!):
+ * ``Add the Common AI docs fixes to the 1.0.0 changelog (#74937)``
* ``Prepare ad-hoc providers release 2026-10-17 (#74933)``
* ``Prepare ad-hoc providers release 2026-10-14 (#74733)``
* ``Add sqlglot drift tripwires for common.ai read-only SQL validation
(#74487)``
diff --git
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_custom_toolset.py
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_custom_toolset.py
index daa8931f439..886e1c93438 100644
---
a/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_custom_toolset.py
+++
b/providers/common/ai/src/airflow/providers/common/ai/example_dags/example_custom_toolset.py
@@ -54,7 +54,7 @@ class ReleaseArgs(PackageArgs):
"""The arguments of get_release."""
version: Annotated[
- str, Field(description="An exact version, such as 3.1.0.",
pattern=r"^[A-Za-z0-9.!+_-]+$")
+ str, Field(description="An exact version, such as 3.1.0.",
pattern=r"^[A-Za-z0-9][A-Za-z0-9.!+_-]*$")
]