Skip to content

ansible lint 25.9.1 breaks uv sync, lock and add unless --prerelease=allow is added #4800

@dh-seanmurphy

Description

@dh-seanmurphy
Summary

ansible-lint 25.9.1 depends on an ansible-core version which depends on python 3.14. Python 3.14 is not released yet.

Almost certainly related to #4795

Issue Type
  • Bug Report
OS / ENVIRONMENT

Not possible to run ansible-lint due to dependency problems.

Running in a container based on python 3.13.7.

  • ansible installation method: uv
  • ansible-lint installation method: uv
STEPS TO REPRODUCE

pyproject.toml

[project]
name = "ansible-lint-test"
version = "0.0.0"
dependencies = [
  "ansible-lint==25.9.1",
]

[tool.uv]
# Use the system interpreter provided in the docker image.
python-downloads = "never"
$ uv sync --locked
Using CPython 3.13.3 interpreter at: /usr/bin/python3
Removed virtual environment at: .venv
Creating virtual environment at: .venv
warning: No `requires-python` value found in the workspace. Defaulting to `>=3.13`.
  × No solution found when resolving dependencies for split (markers: python_full_version >= '3.14' and platform_python_implementation != 'PyPy'):
  ╰─▶ Because only ansible-core{python_full_version >= '3.14'}<2.20.0b1 is available and ansible-lint==25.9.1 depends on ansible-core{python_full_version
      >= '3.14'}>=2.20.0b1, we can conclude that ansible-lint==25.9.1 cannot be used.
      And because your project depends on ansible-lint==25.9.1, we can conclude that your project's requirements are unsatisfiable.

      hint: `ansible-core` was requested with a pre-release marker (e.g., ansible-core>=2.20.0b1), but pre-releases weren't enabled (try:
      `--prerelease=allow`)

      hint: While the active Python version is 3.13, the resolution failed for other Python versions supported by your project. Consider limiting your
      project's supported Python versions using `requires-python`

Desired Behavior

ansible-lint should be installed with dependencies which do not require the as yet unreleased python 3.14

Actual Behavior

ansible-lint installation fails.

Metadata

Metadata

Assignees

Labels

bugfeedback-neededDivergent oppinions, additional feedback is desired in order to unblock it.newTriage required

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions