1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 21:29:19 +00:00

uv_python module: improve error messages

This commit is contained in:
Mariam Ahhttouche 2026-02-24 09:17:36 +01:00
parent 43f0eab99d
commit fb55d4c686

View file

@ -5,7 +5,7 @@
DOCUMENTATION = r'''
---
module: uv.python
module: uv_python
short_description: Manage Python versions and installations using uv Python package manager.
description:
- Install, uninstall or upgrade Python versions managed by C(uv).
@ -118,7 +118,7 @@ class UV:
self.python_version_str = self.python_version.__str__()
except InvalidVersion:
self.module.fail_json(
msg="Unsupported version format. Only canonical Python versions (e.g. 3, 3.12, 3.12.3) are supported in this release."
msg="Unsupported version format. Only canonical Python versions (e.g. 3, 3.12, 3.12.3, 3.15.0a5) are supported in this release."
)
def _ensure_min_uv_version(self):