python-poetry / python-poetry/install.python-poetry.org

Support more ways of specifying the installation version

未关闭
#97 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Python
星标
255
派生
65
平均合并
2 小时 48 分钟
30 天内合并 PR
1

描述

Currently, the way script handles versioning is simply by passing the version over to pip as poetry=={version}. This is fine, however it would be nice if we could set the version to something like ^1.3.0, or similar.

This probably shouldn't be too hard to handle, as there's already a regex checking for semver compatibility, and these are just some set of additional characters that could optionally be there. If this specifier isn't there, the script can just use the current approach of ==.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

阅读安装程序脚本现有的 semver 验证正则表达式,以及将版本传递给 pip 的代码。检查当前的 poetry=={version} 参数是如何组装的,然后验证支持的限定符(例如 ^1.3.0)是否保留其预期形式,同时普通版本保持当前行为。接受的版本形式均已由测试覆盖时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
tooling
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。