Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
Python_Packaging_Authority
pip
提交
0de0b8dd
P
pip
项目概览
镜像
/
Python_Packaging_Authority
/
pip
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
未验证
提交
0de0b8dd
编写于
9月 15, 2021
作者:
T
Tzu-ping Chung
提交者:
GitHub
9月 15, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #10448 from jdufresne/unused-test-class
Remove unused class TestUpgradeDistributeToSetuptools
上级
a05e2999
5c616946
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
49 deletion
+0
-49
news/b27bb979-edeb-4ad2-ad20-1237de12968d.trivial.rst
news/b27bb979-edeb-4ad2-ad20-1237de12968d.trivial.rst
+0
-0
tests/functional/test_install_upgrade.py
tests/functional/test_install_upgrade.py
+0
-49
未找到文件。
news/b27bb979-edeb-4ad2-ad20-1237de12968d.trivial.rst
0 → 100644
浏览文件 @
0de0b8dd
tests/functional/test_install_upgrade.py
浏览文件 @
0de0b8dd
import
itertools
import
os
import
sys
import
textwrap
import
pytest
...
...
@@ -352,54 +351,6 @@ def test_upgrade_vcs_req_with_dist_found(script):
assert
"pypi.org"
not
in
result
.
stdout
,
result
.
stdout
class
TestUpgradeDistributeToSetuptools
:
"""
From pip1.4 to pip6, pip supported a set of "hacks" (see Issue #1122) to
allow distribute to conflict with setuptools, so that the following would
work to upgrade distribute:
``pip install -U setuptools``
In pip7, the hacks were removed. This test remains to at least confirm pip
can upgrade distribute to setuptools using:
``pip install -U distribute``
The reason this works is that a final version of distribute (v0.7.3) was
released that is simple wrapper with:
install_requires=['setuptools>=0.7']
The test use a fixed set of packages from our test packages dir. Note that
virtualenv-1.9.1 contains distribute-0.6.34 and virtualenv-1.10 contains
setuptools-0.9.7
"""
def
prep_ve
(
self
,
script
,
version
,
pip_src
,
distribute
=
False
):
self
.
script
=
script
self
.
script
.
pip_install_local
(
f
"virtualenv==
{
version
}
"
)
args
=
[
"virtualenv"
,
self
.
script
.
scratch_path
/
"VE"
]
if
distribute
:
args
.
insert
(
1
,
"--distribute"
)
if
version
==
"1.9.1"
and
not
distribute
:
# setuptools 0.6 didn't support PYTHONDONTWRITEBYTECODE
del
self
.
script
.
environ
[
"PYTHONDONTWRITEBYTECODE"
]
self
.
script
.
run
(
*
args
)
if
sys
.
platform
==
"win32"
:
bindir
=
"Scripts"
else
:
bindir
=
"bin"
self
.
ve_bin
=
self
.
script
.
scratch_path
/
"VE"
/
bindir
self
.
script
.
run
(
self
.
ve_bin
/
"pip"
,
"uninstall"
,
"-y"
,
"pip"
)
self
.
script
.
run
(
self
.
ve_bin
/
"python"
,
"setup.py"
,
"install"
,
cwd
=
pip_src
,
expect_stderr
=
True
,
)
@
pytest
.
mark
.
parametrize
(
"req1, req2"
,
list
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录