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
sudo: false
matrix:
include:
- os: linux
......@@ -18,6 +17,20 @@ matrix:
- os: linux
python: 3.6
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
python: 2.7
env: ZEO_MSGPACK=1
......@@ -37,6 +50,6 @@ cache:
directories:
- eggs
script:
- bin/test -vv -j99
- bin/test -vv -j3
notifications:
email: false
......@@ -4,7 +4,7 @@ Changelog
5.2.1 (unreleased)
------------------
- Nothing changed yet.
- Add support for Python 3.7.
5.2.0 (2018-03-28)
......
......@@ -47,6 +47,8 @@ Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Database
......
......@@ -24,7 +24,10 @@ class Loop(object):
self.later = []
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)
def _connect(self, future, protocol_factory):
......
[tox]
envlist =
py27,py34,py35,simple
py27,py34,py35,py36,py37,pypy,pypy3,simple
[testenv]
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