Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
looyolo
scrapy
提交
930f6ed8
S
scrapy
项目概览
looyolo
/
scrapy
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
scrapy
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
930f6ed8
编写于
12月 25, 2017
作者:
M
Mikhail Korobov
提交者:
GitHub
12月 25, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3050 from lopuhin/pypy3
Add PyPy3 support
上级
632f1cc0
bb1f3118
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
26 addition
and
7 deletion
+26
-7
.travis.yml
.travis.yml
+9
-0
docs/faq.rst
docs/faq.rst
+2
-2
docs/intro/install.rst
docs/intro/install.rst
+3
-2
tests/test_utils_python.py
tests/test_utils_python.py
+6
-3
tox.ini
tox.ini
+6
-0
未找到文件。
.travis.yml
浏览文件 @
930f6ed8
...
...
@@ -13,6 +13,8 @@ matrix:
env
:
TOXENV=jessie
-
python
:
2.7
env
:
TOXENV=pypy
-
python
:
2.7
env
:
TOXENV=pypy3
-
python
:
3.4
env
:
TOXENV=py34
-
python
:
3.5
...
...
@@ -30,6 +32,13 @@ install:
virtualenv --python="$PYPY_VERSION/bin/pypy" "$HOME/virtualenvs/$PYPY_VERSION"
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
fi
if [ "$TOXENV" = "pypy3" ]; then
export PYPY_VERSION="pypy3.5-5.9-beta-linux_x86_64-portable"
wget "https://bitbucket.org/squeaky/portable-pypy/downloads/${PYPY_VERSION}.tar.bz2"
tar -jxf ${PYPY_VERSION}.tar.bz2
virtualenv --python="$PYPY_VERSION/bin/pypy3" "$HOME/virtualenvs/$PYPY_VERSION"
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
fi
-
pip install -U tox twine wheel codecov
script
:
tox
...
...
docs/faq.rst
浏览文件 @
930f6ed8
...
...
@@ -70,10 +70,10 @@ What Python versions does Scrapy support?
-----------------------------------------
Scrapy is supported under Python 2.7 and Python 3.4+
under CPython (default Python implementation) and PyPy (
only for Python 2.7
).
under CPython (default Python implementation) and PyPy (
starting with PyPy 5.9
).
Python 2.6 support was dropped starting at Scrapy 0.20.
Python 3 support was added in Scrapy 1.1.
PyPy support was added in Scrapy 1.4, PyPy
version tested is PyPy2-v5.9.0
.
PyPy support was added in Scrapy 1.4, PyPy
3 support was added in Scrapy 1.5
.
.. note::
For Python 3 support on Windows, it is recommended to use
...
...
docs/intro/install.rst
浏览文件 @
930f6ed8
...
...
@@ -8,7 +8,7 @@ Installing Scrapy
=================
Scrapy runs on Python 2.7 and Python 3.4 or above
under CPython (default Python implementation) and PyPy (
only for Python 2.7
).
under CPython (default Python implementation) and PyPy (
starting with PyPy 5.9
).
If you're using `Anaconda`_ or `Miniconda`_, you can install the package from
the `conda-forge`_ channel, which has up-to-date packages for Linux, Windows
...
...
@@ -227,7 +227,8 @@ After any of these workarounds you should be able to install Scrapy::
PyPy
----
We recommend using the latest PyPy version. The version tested is PyPy2-v5.9.0.
We recommend using the latest PyPy version. The version tested is 5.9.0.
For PyPy3, only Linux installation was tested.
Most scrapy dependencides now have binary wheels for CPython, but not for PyPy.
This means that these dependecies will be built during installation.
...
...
tests/test_utils_python.py
浏览文件 @
930f6ed8
...
...
@@ -219,9 +219,12 @@ class UtilsPythonTestCase(unittest.TestCase):
self
.
assertEqual
(
get_func_args
(
" "
.
join
),
[])
self
.
assertEqual
(
get_func_args
(
operator
.
itemgetter
(
2
)),
[])
else
:
self
.
assertEqual
(
get_func_args
(
six
.
text_type
.
split
),
[
'sep'
,
'maxsplit'
])
self
.
assertEqual
(
get_func_args
(
" "
.
join
),
[
'list'
])
self
.
assertEqual
(
get_func_args
(
operator
.
itemgetter
(
2
)),
[
'obj'
])
stripself
=
not
six
.
PY2
# PyPy3 exposes them as methods
self
.
assertEqual
(
get_func_args
(
six
.
text_type
.
split
,
stripself
),
[
'sep'
,
'maxsplit'
])
self
.
assertEqual
(
get_func_args
(
" "
.
join
,
stripself
),
[
'list'
])
self
.
assertEqual
(
get_func_args
(
operator
.
itemgetter
(
2
),
stripself
),
[
'obj'
])
def
test_without_none_values
(
self
):
...
...
tox.ini
浏览文件 @
930f6ed8
...
...
@@ -79,6 +79,12 @@ deps = {[testenv:py34]deps}
basepython
=
python3.6
deps
=
{[testenv:py34]deps}
[testenv:pypy3]
basepython
=
pypy3
deps
=
{[testenv:py34]deps}
commands
=
py.test
{posargs:scrapy
tests}
[docs]
changedir
=
docs
deps
=
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录