Skip to content

Commit 03c640f

Browse files
authored
Mark doc dependency group as Python>=3.12 for uv (#16027)
Qiskit does not mandate the use of `uv` to manage the project, but we have enough downstream devs that like it, and `uv` is now established enough that it's not so onerous to mark the extra Python dependency on the group. Hopefully this concept will standardise for the whole Python ecosystem, rather than remaining `uv`-specific.
1 parent 859c425 commit 03c640f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,3 +503,10 @@ exclude_also = [
503503
"if TYPE_CHECKING:", # Code that only runs during type checks
504504
"@abstractmethod", # Abstract methods are not testable
505505
]
506+
507+
# Qiskit doesn't mandate use of `uv`, but we can include this as a convenience for the multitude of
508+
# devs who do like it. Without setting the per-group Python versions, `uv sync` (and any other
509+
# command that attempts to build the lockfile) will fail on some groups, even if you don't attempt
510+
# to use the group with a bad version of Python.
511+
[tool.uv.dependency-groups]
512+
doc = { requires-python = ">=3.12" }

0 commit comments

Comments
 (0)