Skip to content

Commit 77b4623

Browse files
committed
Test and document support for all modern Python versions
Help to ensure the project remains compatible and bug free with all Python versions. Required updating pytest to a recent version. The latest version is 3.9.3.
1 parent 46603d2 commit 77b4623

File tree

4 files changed

+29
-19
lines changed

4 files changed

+29
-19
lines changed

.travis.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
language: python
2-
python:
3-
- "2.7"
42
env:
53
global:
64
- PIP_DOWNLOAD_CACHE=$HOME/.pip_cache
7-
matrix:
8-
- TOX_ENV=py27
9-
- TOX_ENV=py34
10-
- TOX_ENV=flake8
5+
6+
matrix:
7+
include:
8+
- python: "2.7"
9+
env: TOX_ENV=py27
10+
- python: "3.4"
11+
env: TOX_ENV=py34
12+
- python: "3.5"
13+
env: TOX_ENV=py35
14+
- python: "3.6"
15+
env: TOX_ENV=py36
16+
- python: "3.7"
17+
env: TOX_ENV=py37
18+
dist: xenial
19+
sudo: required
20+
- env: TOX_ENV=flake8
21+
1122
cache:
1223
directories:
1324
- $HOME/.pip-cache/

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
lxml>=3.4
22
pytest-pythonpath==0.3
3-
pytest==2.6.4
3+
pytest
44
six
55
tox==1.8.1
66
requests

setup.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
'License :: OSI Approved :: MIT License',
2121
'Natural Language :: English',
2222
'Operating System :: OS Independent',
23+
'Programming Language :: Python',
24+
'Programming Language :: Python :: 2',
25+
'Programming Language :: Python :: 2.7',
26+
'Programming Language :: Python :: 3',
27+
'Programming Language :: Python :: 3.4',
28+
'Programming Language :: Python :: 3.5',
29+
'Programming Language :: Python :: 3.6',
30+
'Programming Language :: Python :: 3.7',
2331
'Topic :: Internet :: WWW/HTTP',
2432
],
2533
install_requires=[

tox.ini

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[tox]
22
envlist=
3-
py27,
4-
py34,
5-
flake8,
3+
py{27,34,35,36,37}
4+
flake8
65

76
[flake8]
87
max-line-length= 100
@@ -13,17 +12,9 @@ deps =
1312
-r{toxinidir}/requirements-dev.txt
1413

1514
[testenv]
16-
commands=py.test --tb native {posargs:tests}
17-
18-
[testenv:py27]
19-
basepython=python2.7
20-
deps =
21-
{[base]deps}
22-
23-
[testenv:py34]
24-
basepython=python3.4
2515
deps =
2616
{[base]deps}
17+
commands=py.test --tb native {posargs:tests}
2718

2819
[testenv:flake8]
2920
basepython=python

0 commit comments

Comments
 (0)