Skip to content

Commit 438b0c0

Browse files
authored
Merge branch 'master' into pylint
2 parents 6b9be9a + 1f3a290 commit 438b0c0

File tree

4 files changed

+36
-22
lines changed

4 files changed

+36
-22
lines changed

.travis.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ matrix:
66
env: TOXENV=pylint
77
- python: 2.7
88
env: TOXENV=py27
9-
- python: 2.7
9+
- python: pypy
1010
env: TOXENV=pypy
1111
- python: 3.4
1212
env: TOXENV=py34
@@ -16,27 +16,24 @@ matrix:
1616
env: TOXENV=py36
1717
- python: 3.7
1818
env: TOXENV=py37
19-
dist: xenial
20-
sudo: true
21-
- python: 3.5
19+
- python: pypy3
2220
env: TOXENV=pypy3
21+
- python: 3.7
22+
env: TOXENV=docs
2323

2424
install:
25+
# https://bitbucket.org/pypy/pypy/issues/2389/different-behavior-of-bytesdecode-utf8
26+
# The bug above causes Python 2 PyPy 7.1.0+ to fail one test, so below we
27+
# install 7.0.0. This can be removed once the Python 2 PyPy version in Travis
28+
# includes a fix.
2529
- |
2630
if [ "$TOXENV" = "pypy" ]; then
27-
export PYPY_VERSION="pypy-6.0.0-linux_x86_64-portable"
31+
export PYPY_VERSION="pypy-7.0.0-linux_x86_64-portable"
2832
wget "https://bitbucket.org/squeaky/portable-pypy/downloads/${PYPY_VERSION}.tar.bz2"
2933
tar -jxf ${PYPY_VERSION}.tar.bz2
3034
virtualenv --python="$PYPY_VERSION/bin/pypy" "$HOME/virtualenvs/$PYPY_VERSION"
3135
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
3236
fi
33-
if [ "$TOXENV" = "pypy3" ]; then
34-
export PYPY_VERSION="pypy3.5-6.0.0-linux_x86_64-portable"
35-
wget "https://bitbucket.org/squeaky/portable-pypy/downloads/${PYPY_VERSION}.tar.bz2"
36-
tar -jxf ${PYPY_VERSION}.tar.bz2
37-
virtualenv --python="$PYPY_VERSION/bin/pypy3" "$HOME/virtualenvs/$PYPY_VERSION"
38-
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
39-
fi
4037
- pip install -U tox twine wheel codecov
4138
script: tox
4239
after_success:

docs/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
# Add any paths that contain custom static files (such as style sheets) here,
126126
# relative to this directory. They are copied after the builtin static files,
127127
# so a file named "default.css" will overwrite the builtin "default.css".
128-
html_static_path = ['_static']
128+
html_static_path = []
129129

130130
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
131131
# using the given strftime format.
@@ -249,3 +249,8 @@
249249

250250
# Example configuration for intersphinx: refer to the Python standard library.
251251
intersphinx_mapping = {'http://docs.python.org/': None}
252+
253+
254+
# --- Nitpicking options ------------------------------------------------------
255+
256+
nitpicky = True

docs/w3lib.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
w3lib Package
22
=============
33

4-
:mod:`encoding` Module
5-
----------------------
4+
:mod:`~w3lib.encoding` Module
5+
-----------------------------
66

77
.. automodule:: w3lib.encoding
88
:members:
99

1010

11-
:mod:`html` Module
12-
------------------
11+
:mod:`~w3lib.html` Module
12+
-------------------------
1313

1414
.. automodule:: w3lib.html
1515
:members:
1616

1717

18-
:mod:`http` Module
19-
------------------
18+
:mod:`~w3lib.http` Module
19+
-------------------------
2020

2121
.. automodule:: w3lib.http
2222
:members:
2323

24-
:mod:`url` Module
25-
-----------------
24+
:mod:`~w3lib.url` Module
25+
------------------------
2626

2727
.. automodule:: w3lib.url
2828
:members:

tox.ini

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, pypy, py34, py35, py36, py37, pypy3
7+
envlist = py27, pypy, py34, py35, py36, py37, pypy3, docs
88

99
[testenv]
1010
deps =
@@ -23,3 +23,15 @@ deps =
2323
pylint
2424
commands =
2525
pylint conftest.py docs setup.py tests w3lib
26+
27+
[docs]
28+
changedir = docs
29+
deps =
30+
sphinx
31+
sphinx_rtd_theme
32+
33+
[testenv:docs]
34+
changedir = {[docs]changedir}
35+
deps = {[docs]deps}
36+
commands =
37+
sphinx-build -W -b html . {envtmpdir}/html

0 commit comments

Comments
 (0)