Why is this package forbidden? #5365
-
Package toml Project toml: [tool.poetry]
name = "testing"
version = "0.1.0"
description = ""
authors = ["Jim Brännlund <jim.brannlund@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.9"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api" Project python is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The project python is not 3.9.10 it is "^3.9", which expands to 3.9,3.10,3.11,3.12...3.99 up until but not including 4.0. Try restricting the project python to just 3.9.* for example, that will be a subset of what pytest-metadata works with. |
Beta Was this translation helpful? Give feedback.
-
That makes zero sense to me. That means that the dependency then dictates what constraints I need to put in the project. My expectation would be that Poetry checks the current version that the project is using (3.9.10) which is within the requirements and allows it. Now, if the current version was 3.11.0 or higher (with the pyproject.toml still having |
Beta Was this translation helpful? Give feedback.
The project python is not 3.9.10 it is "^3.9", which expands to 3.9,3.10,3.11,3.12...3.99 up until but not including 4.0.
Try restricting the project python to just 3.9.* for example, that will be a subset of what pytest-metadata works with.