Merge pull request #106 from pypt/python_3_7

Improvements for Python 3.7 support and CI
pull/105/head^2
Yuri Baburov 6 years ago committed by GitHub
commit 5215ab657b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,6 +3,15 @@ language: python
python:
- "3.6"
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
matrix:
include:
- name: "Python: 3.7"
python: "3.7"
dist: xenial
sudo: true
env: TOX_ENV=py37
env:
- TOX_ENV=py27
- TOX_ENV=py34

@ -43,5 +43,6 @@ setup(
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
)

@ -9,7 +9,9 @@ SAMPLES = os.path.join(os.path.dirname(__file__), 'samples')
def load_sample(filename):
"""Helper to get the content out of the sample files"""
return open(os.path.join(SAMPLES, filename)).read()
with open(os.path.join(SAMPLES, filename)) as f:
html = f.read()
return html
class TestArticleOnly(unittest.TestCase):

@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
envlist = py27, py35, py36
envlist = py27, py35, py36, py37
[testenv]
deps=pytest

Loading…
Cancel
Save