未验证 提交 2cf76016 编写于 作者: F Frost Ming

constrain pip-shims version

上级 2bc6e5c4
......@@ -43,7 +43,7 @@ summary = "Cross-platform colored terminal text."
name = "coverage"
sections = ["dev"]
version = "4.4.2"
marker = "python_version < \"4.0\" and python_version >= \"2.7\" and python_version not in \"3.0, 3.1, 3.2, 3.3, 3.4\""
marker = "python_version >= \"2.7\" and python_version not in \"3.0, 3.1, 3.2, 3.3\""
summary = "Code coverage measurement for Python"
[[package]]
......@@ -86,7 +86,7 @@ six = ">=1.12.0"
name = "importlib-metadata"
sections = ["dev"]
version = "1.4.0"
marker = "python_version >= \"3.5\" and python_version < \"3.8\""
marker = "python_version < \"3.8\" and python_version >= \"3.5\""
summary = "Read metadata from Python packages"
[package.dependencies]
......@@ -276,7 +276,7 @@ summary = "Miscellaneous utilities for dealing with filesystems, paths, projects
colorama = "!=0.4.2,>=0.3.4"
six = "*"
yaspin = "*"
vistir = ">=0.4"
vistir = {marker = "python_version >= \"2.7\" and python_version not in \"3.0, 3.1, 3.2, 3.3\"", version = "==0.5.0"}
[[package]]
name = "wcwidth"
......
......@@ -233,7 +233,12 @@ def do_update(
for name in packages:
key = safe_name(name).lower()
matched_name = next(
filter(lambda k: strip_extras(name)[0] == key, dependencies.keys()), None,
filter(
lambda k: safe_name(strip_extras(name)[0]).lower()
== safe_name(key).lower(),
dependencies.keys(),
),
None,
)
if not matched_name:
raise PdmUsageError(f"{name} is not found in {section} dependencies")
......
......@@ -18,11 +18,12 @@ classifiers = [
]
[tool.pdm.dependencies]
# TODO: update pip and pip_shims version
appdirs = "*"
click = "*"
distlib = "*"
pip = "<20.0.0,>=19.3.1"
pip_shims = "*"
pip_shims = "~=0.4.0"
pythonfinder = "*"
tomlkit = "*"
halo = "<1.0.0,>=0.0.28"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册