Skip to content

Commit 5215ab6

Browse files
authored
Merge pull request buriy#106 from pypt/python_3_7
Improvements for Python 3.7 support and CI
2 parents 8235f07 + 68fb5ad commit 5215ab6

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ language: python
33
python:
44
- "3.6"
55

6+
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
7+
matrix:
8+
include:
9+
- name: "Python: 3.7"
10+
python: "3.7"
11+
dist: xenial
12+
sudo: true
13+
env: TOX_ENV=py37
14+
615
env:
716
- TOX_ENV=py27
817
- TOX_ENV=py34

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@
4343
"Programming Language :: Python :: 3.4",
4444
"Programming Language :: Python :: 3.5",
4545
"Programming Language :: Python :: 3.6",
46+
"Programming Language :: Python :: 3.7",
4647
],
4748
)

tests/test_article_only.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
def load_sample(filename):
1111
"""Helper to get the content out of the sample files"""
12-
return open(os.path.join(SAMPLES, filename)).read()
12+
with open(os.path.join(SAMPLES, filename)) as f:
13+
html = f.read()
14+
return html
1315

1416

1517
class TestArticleOnly(unittest.TestCase):

tox.ini

Lines changed: 1 addition & 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, py35, py36
7+
envlist = py27, py35, py36, py37
88

99
[testenv]
1010
deps=pytest

0 commit comments

Comments
 (0)