跳转到主要内容

用于移除Python上限约束的诗歌插件

项目描述

诗歌插件移除Python上限约束

使用此插件,您可以设置类似于以下Python约束

[tool.poetry.dependencies]
python = ">=3.9,<3.12"

然后在导出的wheel文件中,我们只有 python=">=3.9"

目标是有一个上限约束来进行锁定,但不要在导出的wheel中包含它,以便能够使用较新的Python版本。

配置

[build-system]
requires = ["poetry-core>=1.0.0", "poetry-plugin-drop-python-upper-constraint>=0.1.0"]
build-backend = "poetry.core.masonry.api"

贡献

安装pre-commit钩子

pip install pre-commit
pre-commit install --allow-missing-config

支持者