Commit 79961c9a authored by Michael Howitz's avatar Michael Howitz Committed by GitHub

Add support for Python 3.7. (#117)

* Additionally test PyPy3 on TravisCI.
* Handle additional `context` argument of Python 3.7 gracefully.

Fixes #116.
parent 6115871c
.installed.cfg
bin
build
develop-eggs
eggs
parts
*.egg-info
language: python language: python
sudo: false
matrix: matrix:
include: include:
- os: linux - os: linux
...@@ -18,6 +17,20 @@ matrix: ...@@ -18,6 +17,20 @@ matrix:
- os: linux - os: linux
python: 3.6 python: 3.6
env: ZEO_MSGPACK=1 ZEO_MTACCEPTOR=1 env: ZEO_MSGPACK=1 ZEO_MTACCEPTOR=1
- os: linux
python: 3.7
env: ZEO_MTACCEPTOR=1
dist: xenial
- os: linux
python: 3.7
env: ZEO_MSGPACK=1 ZEO_MTACCEPTOR=1
dist: xenial
- os: linux
python: pypy3
env: ZEO_MTACCEPTOR=1
- os: linux
python: pypy3
env: ZEO_MSGPACK=1 ZEO_MTACCEPTOR=1
- os: linux - os: linux
python: 2.7 python: 2.7
env: ZEO_MSGPACK=1 env: ZEO_MSGPACK=1
...@@ -37,6 +50,6 @@ cache: ...@@ -37,6 +50,6 @@ cache:
directories: directories:
- eggs - eggs
script: script:
- bin/test -vv -j99 - bin/test -vv -j3
notifications: notifications:
email: false email: false
...@@ -4,7 +4,7 @@ Changelog ...@@ -4,7 +4,7 @@ Changelog
5.2.1 (unreleased) 5.2.1 (unreleased)
------------------ ------------------
- Nothing changed yet. - Add support for Python 3.7.
5.2.0 (2018-03-28) 5.2.0 (2018-03-28)
......
...@@ -47,6 +47,8 @@ Programming Language :: Python :: 2.7 ...@@ -47,6 +47,8 @@ Programming Language :: Python :: 2.7
Programming Language :: Python :: 3 Programming Language :: Python :: 3
Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy Programming Language :: Python :: Implementation :: PyPy
Topic :: Database Topic :: Database
......
...@@ -24,7 +24,10 @@ class Loop(object): ...@@ -24,7 +24,10 @@ class Loop(object):
self.later = [] self.later = []
self.exceptions = [] self.exceptions = []
def call_soon(self, func, *args): def call_soon(self, func, *args, **kw):
# Python 3.7+ calls us with a `context` keyword-only argument:
kw.pop('context', None)
assert not kw
func(*args) func(*args)
def _connect(self, future, protocol_factory): def _connect(self, future, protocol_factory):
......
[tox] [tox]
envlist = envlist =
py27,py34,py35,simple py27,py34,py35,py36,py37,pypy,pypy3,simple
[testenv] [testenv]
commands = commands =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment