诗歌更新不会更新图书馆,即使有可用的图书馆

问题描述 投票:0回答:1

在我的 pyproject.toml 中我有

pyogrio = "^0.7.2"

0.8.0版本一周前发布。运行

poetry search pyogrio
显示 0.8.0 可用。

但是运行

poetry update
不会更新它。这是pyogrio的问题吗?

注意,我在 pyproject.toml 中也有这些库和约束,它们在我运行时更新

poetry update

boto3 = "^1.34.58"
openai = "^1.23.6"

来自

poetry update

的输出
  - Updating boto3 (1.34.103 -> 1.34.106)
  - Updating openai (1.28.1 -> 1.30.1)

注意:手动更改为

pyogrio = "^0.8.0"
然后运行
poetry install
可以工作......但我肯定不必这样做吗?

python-poetry
1个回答
0
投票

^0.7.2
>=0.7.2,<0.8
的简写。 (https://python-poetry.org/docs/dependency-specation/#caret-requirements

poetry update
仅更新给定版本范围内的版本。 (https://python-poetry.org/docs/cli/#update

要将软件包升级到版本范围之外的最新版本,请运行

poetry add pyogrio@latest
。 (https://python-poetry.org/docs/cli/#add

© www.soinside.com 2019 - 2024. All rights reserved.