Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/poetry/puzzle/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,12 @@ def use_environment(self, env: Env) -> Iterator[Provider]:
original_python_constraint = self._package_python_constraint

self._env = env
# We use the stable version here to improve support of environments of Python pre-release
# versions, e.g. Python 3.14rc2. Without using the stable version here, a dependency with
# a marker like `python_version >= "3.14"` would not be installed.
self._package_python_constraint = Version.parse(
env.marker_env["python_full_version"]
)
).stable

try:
yield self
Expand Down