8000 Add python3.7 support (#418) · benxiaolang-hacker/client_python@5132fd2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5132fd2

Browse files
skudriashevbrian-brazil
authored andcommitted
Add python3.7 support (prometheus#418)
Signed-off-by: Stanislav Kudriashev <stas.kudriashev@gmail.com>
1 parent a6d042e commit 5132fd2

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ matrix:
1919
env: TOXENV=py35
2020
- python: "3.6"
2121
env: TOXENV=py36
22-
- python: "3.6"
23-
env: TOXENV=py36-nooptionals
22+
- python: "3.7"
23+
env: TOXENV=py37
24+
dist: xenial
25+
sudo: true
26+
- python: "3.7"
27+
env: TOXENV=py37-nooptionals
28+
dist: xenial
29+
sudo: true
2430
- python: "pypy"
2531
env: TOXENV=pypy
2632
- python: "pypy3"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"Programming Language :: Python :: 3.4",
3636
"Programming Language :: Python :: 3.5",
3737
"Programming Language :: Python :: 3.6",
38+
"Programming Language :: Python :: 3.7",
3839
"Programming Language :: Python :: Implementation :: CPython",
3940
"Programming Language :: Python :: Implementation :: PyPy",
4041
"Topic :: System :: Monitoring",

tests/test_gc_collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import unicode_literals
22

33
import gc
4-
import sys
54
import platform
5+
import sys
66

77
if sys.version_info < (2, 7):
88
# We need the skip decorators from unittest2 on Python 2.6.

tox.ini

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = coverage-clean,py26,py27,py34,py35,py36,pypy,pypy3,{py27,py36}-nooptionals,coverage-report,flake8
2+
envlist = coverage-clean,py26,py27,py34,py35,py36,py37,pypy,pypy3,{py27,py37}-nooptionals,coverage-report,flake8
33

44

55
[base]
@@ -32,19 +32,16 @@ deps =
3232
{py27,py34,py35,py36,pypy,pypy3}: twisted
3333
commands = coverage run --parallel -m pytest {posargs}
3434

35-
3635
; Ensure test suite passes if no optional dependencies are present.
3736
[testenv:py27-nooptionals]
3837
deps =
3938
{[base]deps}
4039
futures
4140
commands = coverage run --parallel -m pytest {posargs}
4241

43-
[testenv:py36-nooptionals]
44-
deps = {[base]deps}
42+
[testenv:py37-nooptionals]
4543
commands = coverage run --parallel -m pytest {posargs}
4644

47-
4845
[testenv:coverage-clean]
4946
deps = coverage
5047
skip_install = true

0 commit comments

Comments
 (0)
0