Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
Python_Packaging_Authority
pip
提交
283df0e5
P
pip
项目概览
镜像
/
Python_Packaging_Authority
/
pip
10 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
pip
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
283df0e5
编写于
7月 15, 2014
作者:
J
Josh Schneier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
install -d works on vcs links fix #798 fix #1060
上级
25bd97d7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
5 deletion
+18
-5
AUTHORS.txt
AUTHORS.txt
+1
-0
CHANGES.txt
CHANGES.txt
+2
-0
pip/req/req_set.py
pip/req/req_set.py
+1
-5
tests/functional/test_install_download.py
tests/functional/test_install_download.py
+14
-0
未找到文件。
AUTHORS.txt
浏览文件 @
283df0e5
...
...
@@ -65,6 +65,7 @@ Jonas Nockert <jonasnockert@gmail.com>
Jorge Niedbalski <niedbalski@gmail.com>
Josh Bronson <jabronson@gmail.com>
Josh Hansen <josh@skwash.net>
Josh Schneier <josh.schneier@gmail.com>
Kamal Bin Mustafa <kamal@smach.net>
Kelsey Hightower <kelsey.hightower@gmail.com>
Kenneth Belitzky <kenny@belitzky.com>
...
...
CHANGES.txt
浏览文件 @
283df0e5
**1.6.0.dev1 (unreleased)**
* Fixed :issue:`798` and :issue:`1060`. `pip install --download` works with vcs links.
(:pull:`1926`)
* **BACKWARD INCOMPATIBLE** Dropped support for Python 3.1.
...
...
pip/req/req_set.py
浏览文件 @
283df0e5
...
...
@@ -507,11 +507,7 @@ class RequirementSet(object):
# non-editable vcs urls
if
is_vcs_url
(
link
):
if
only_download
:
loc
=
download_dir
else
:
loc
=
location
unpack_vcs_link
(
link
,
loc
,
only_download
)
unpack_vcs_link
(
link
,
location
,
only_download
)
# file urls
elif
is_file_url
(
link
):
...
...
tests/functional/test_install_download.py
浏览文件 @
283df0e5
...
...
@@ -125,3 +125,17 @@ def test_download_should_skip_existing_files(script):
assert
Path
(
'scratch'
)
/
'INITools-0.1.tar.gz'
not
in
result
.
files_created
assert
script
.
site_packages
/
'initools'
not
in
result
.
files_created
assert
script
.
site_packages
/
'openid'
not
in
result
.
files_created
def
test_download_vcs_link
(
script
):
"""
It should allow -d flag for vcs links, regression test for issue #798.
"""
result
=
script
.
pip
(
'install'
,
'-d'
,
'.'
,
'git+git://github.com/pypa/pip-test-package.git'
)
assert
(
Path
(
'scratch'
)
/
'pip-test-package-0.1.1.zip'
in
result
.
files_created
)
assert
script
.
site_packages
/
'piptestpackage'
not
in
result
.
files_created
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录