pypa/pipx

pipx upgrade with a specificier

Closed

#356 创建于 2020年2月6日

在 GitHub 查看
 (11 评论) (19 反应) (0 负责人)Python (363 fork)batch import
enhancementhelp wanted

仓库指标

Star
 (7,844 star)
PR 合并指标
 (平均合并 4天 12小时) (30 天内合并 22 个 PR)

描述

How would this feature be useful?

Since 0.15 pipx got rid of the --spec argument, but now I can’t upgrade a package to a difference spec. Previously I could

pipx install virtualenv

# Some time later…
pipx upgrade virtualenv --spec "virtualenv>=30.0b2"
pipx upgrade virtualenv --spec "git+https://github.com/pypa/virtualenv.git"

Describe the solution you'd like

Either add back the --spec argument for upgrade, or allow e.g.

# Current fails with "Package cannot be a url"
pipx upgrade "git+https://github.com/pypa/virtualenv.git"

# Current fails with "FileNotFoundError"
pipx upgrade "virtualenv>=30.0b2"

贡献者指南