Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
Pdm
提交
2bc6e5c4
P
Pdm
项目概览
后端镜像
/
Pdm
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Pdm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2bc6e5c4
编写于
2月 04, 2020
作者:
F
Frost Ming
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix PEP 517 build errors
Display dist in two columns for pdm list
上级
92dad69a
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
13 addition
and
11 deletion
+13
-11
pdm/__init__.py
pdm/__init__.py
+1
-1
pdm/builders/api.py
pdm/builders/api.py
+2
-2
pdm/builders/wheel.py
pdm/builders/wheel.py
+1
-0
pdm/cli/actions.py
pdm/cli/actions.py
+7
-2
pdm/installers.py
pdm/installers.py
+2
-6
未找到文件。
pdm/__init__.py
浏览文件 @
2bc6e5c4
__version__
=
"0.0.
5
"
__version__
=
"0.0.
6
"
pdm/builders/api.py
浏览文件 @
2bc6e5c4
...
...
@@ -49,7 +49,7 @@ def build_wheel(wheel_directory, config_settings=None, metadata_directory=None):
ireq
=
parse_requirement
(
"."
).
as_ireq
()
ireq
.
source_dir
=
"."
with
WheelBuilder
(
ireq
)
as
builder
:
return
builder
.
build
(
wheel_directory
)
return
Path
(
builder
.
build
(
wheel_directory
)).
name
def
build_sdist
(
sdist_directory
,
config_settings
=
None
):
...
...
@@ -57,4 +57,4 @@ def build_sdist(sdist_directory, config_settings=None):
ireq
=
parse_requirement
(
"."
).
as_ireq
()
ireq
.
source_dir
=
"."
with
SdistBuilder
(
ireq
)
as
builder
:
return
builder
.
build
(
sdist_directory
)
return
Path
(
builder
.
build
(
sdist_directory
)).
name
pdm/builders/wheel.py
浏览文件 @
2bc6e5c4
...
...
@@ -82,6 +82,7 @@ class WheelBuilder(Builder):
shutil
.
move
(
temp_path
,
target
)
context
.
io
.
echo
(
"- Built {}"
.
format
(
context
.
io
.
cyan
(
os
.
path
.
basename
(
target
))))
return
target
@
property
def
wheel_filename
(
self
)
->
str
:
...
...
pdm/cli/actions.py
浏览文件 @
2bc6e5c4
...
...
@@ -2,6 +2,7 @@ import itertools
import
shutil
from
typing
import
Dict
,
Iterable
,
Optional
,
Sequence
import
click
import
halo
import
tomlkit
from
pkg_resources
import
safe_name
...
...
@@ -288,8 +289,12 @@ def do_remove(
def
do_list
(
project
:
Project
)
->
None
:
working_set
=
project
.
environment
.
get_working_set
()
for
key
,
dist
in
working_set
.
items
():
context
.
io
.
echo
(
format_dist
(
dist
))
formatter
=
click
.
HelpFormatter
()
rows
=
[
(
context
.
io
.
green
(
k
,
bold
=
True
),
format_dist
(
v
))
for
k
,
v
in
working_set
.
items
()
]
formatter
.
write_dl
(
rows
)
context
.
io
.
echo
(
formatter
.
getvalue
().
rstrip
(
"
\n
"
))
def
do_build
(
...
...
pdm/installers.py
浏览文件 @
2bc6e5c4
...
...
@@ -28,15 +28,11 @@ def _is_dist_editable(dist: Distribution) -> bool:
def
format_dist
(
dist
:
Distribution
)
->
str
:
formatter
=
"{
name} {
version}{path}"
formatter
=
"{version}{path}"
path
=
""
if
_is_dist_editable
(
dist
):
path
=
f
" (-e
{
dist
.
location
}
)"
return
formatter
.
format
(
name
=
context
.
io
.
green
(
dist
.
project_name
,
bold
=
True
),
version
=
context
.
io
.
yellow
(
dist
.
version
),
path
=
path
,
)
return
formatter
.
format
(
version
=
context
.
io
.
yellow
(
dist
.
version
),
path
=
path
)
def
_print_list_information
(
word
,
items
,
dry
=
False
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录