Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
Python_Packaging_Authority
pip
提交
6b541457
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,发现更多精彩内容 >>
提交
6b541457
编写于
3月 21, 2017
作者:
D
Donald Stufft
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Deprecate support for Python 3.3
上级
476d297f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
16 addition
and
29 deletion
+16
-29
news/3796.removal
news/3796.removal
+1
-0
pip/basecommand.py
pip/basecommand.py
+9
-1
tests/functional/test_install.py
tests/functional/test_install.py
+1
-1
tests/functional/test_install_upgrade.py
tests/functional/test_install_upgrade.py
+0
-25
tests/functional/test_uninstall.py
tests/functional/test_uninstall.py
+2
-2
tests/lib/__init__.py
tests/lib/__init__.py
+3
-0
未找到文件。
news/3796.removal
0 → 100644
浏览文件 @
6b541457
Deprecate support for Python 3.3.
pip/basecommand.py
浏览文件 @
6b541457
...
...
@@ -6,6 +6,7 @@ import logging.config
import
os
import
sys
import
optparse
import
warnings
from
pip
import
cmdoptions
from
pip.index
import
PackageFinder
...
...
@@ -20,7 +21,7 @@ from pip.status_codes import (
SUCCESS
,
ERROR
,
UNKNOWN_ERROR
,
VIRTUALENV_NOT_FOUND
,
PREVIOUS_BUILD_DIR_ERROR
,
)
from
pip.utils
import
get_prog
,
normalize_path
from
pip.utils
import
deprecation
,
get_prog
,
normalize_path
from
pip.utils.logging
import
IndentingFormatter
from
pip.utils.outdated
import
pip_version_check
...
...
@@ -185,6 +186,13 @@ class Command(object):
),
})
if
sys
.
version_info
[:
2
]
==
(
3
,
3
):
warnings
.
warn
(
"Python 3.3 supported has been deprecated and support for it "
"will be dropped in the future. Please upgrade your Python."
,
deprecation
.
RemovedInPip11Warning
,
)
# TODO: try to get these passing down from the command?
# without resorting to os.environ to hold these.
...
...
tests/functional/test_install.py
浏览文件 @
6b541457
...
...
@@ -70,7 +70,7 @@ def test_pip_second_command_line_interface_works(script, data):
# On old versions of Python, urllib3/requests will raise a warning about
# the lack of an SSLContext.
kwargs
=
{}
if
pyversion_tuple
<
(
2
,
7
,
9
):
if
pyversion_tuple
<
(
2
,
7
,
9
)
or
pyversion_tuple
[:
2
]
==
(
3
,
3
)
:
kwargs
[
'expect_stderr'
]
=
True
args
=
[
'pip%s'
%
pyversion
]
...
...
tests/functional/test_install_upgrade.py
浏览文件 @
6b541457
import
json
import
os
import
sys
import
textwrap
...
...
@@ -449,27 +448,3 @@ class TestUpgradeDistributeToSetuptools(object):
cwd
=
pip_src
,
expect_stderr
=
True
,
)
@
pytest
.
mark
.
skipif
(
sys
.
version_info
>=
(
3
,
5
),
reason
=
"distribute doesn't work on Python 3.5"
,
)
def
test_from_distribute_6_to_setuptools_7
(
self
,
script
,
data
,
virtualenv
):
self
.
prep_ve
(
script
,
'1.9.1'
,
virtualenv
.
pip_source_dir
,
distribute
=
True
)
result
=
self
.
script
.
run
(
self
.
ve_bin
/
'pip'
,
'install'
,
'--no-index'
,
'--find-links=%s'
%
data
.
find_links
,
'-U'
,
'distribute'
,
)
assert
(
"Found existing installation: distribute 0.6.34"
in
result
.
stdout
)
result
=
self
.
script
.
run
(
self
.
ve_bin
/
'pip'
,
'list'
,
'--format=json'
,
)
assert
{
"name"
:
"setuptools"
,
"version"
:
"0.9.8"
}
\
in
json
.
loads
(
result
.
stdout
)
assert
{
"name"
:
"distribute"
,
"version"
:
"0.7.3"
}
\
in
json
.
loads
(
result
.
stdout
)
tests/functional/test_uninstall.py
浏览文件 @
6b541457
...
...
@@ -54,11 +54,11 @@ def test_simple_uninstall_distutils(script):
in
json
.
loads
(
result
.
stdout
)
result
=
script
.
pip
(
'uninstall'
,
'distutils_install'
,
'-y'
,
expect_stderr
=
True
,
expect_error
=
True
)
assert
result
.
stderr
.
strip
()
==
(
assert
(
"Cannot uninstall 'distutils-install'. It is a distutils installed "
"project and thus we cannot accurately determine which files belong "
"to it which would lead to only a partial uninstall."
)
)
in
result
.
stderr
@
pytest
.
mark
.
network
...
...
tests/lib/__init__.py
浏览文件 @
6b541457
...
...
@@ -334,6 +334,9 @@ class PipTestEnvironment(scripttest.TestFileEnvironment):
if
(
pyversion_tuple
<
(
2
,
7
,
9
)
and
args
and
args
[
0
]
in
(
'search'
,
'install'
,
'download'
)):
kwargs
[
'expect_stderr'
]
=
True
# Python 3.3 is deprecated and we emit a warning on it.
if
pyversion_tuple
[:
2
]
==
(
3
,
3
):
kwargs
[
'expect_stderr'
]
=
True
return
self
.
run
(
"pip"
,
*
args
,
**
kwargs
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录