Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Python 3.7 #64

Merged
merged 6 commits into from
Dec 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,16 @@
"python": "3.6"
},
{
"env": "TOXENV=py36-lint",
"env": "TOXENV=py36-unit,py36-unit-snappy-murmur",
"python": "3.6"
},
{
"env": "TOXENV=py36-unit,py36-unit-snappy-murmur",
"python": "3.6"
"env": "TOXENV=py37-lint",
"python": "3.7"
},
{
"env": "TOXENV=py37-unit,py37-unit-snappy-murmur",
"python": "3.7"
},
{
"dist": "trusty",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Afkak supports these Pythons:

- CPython 2.7
- PyPy
- CPython 3.5
- CPython 3.5, 3.6, and 3.7

We aim to support Kafka 1.1.<var>x</var> and later.
Integration tests are run against these Kafka broker versions:
Expand Down
2 changes: 1 addition & 1 deletion afkak/kafkacodec.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _decode_message_set_iter(cls, data):
# yielded anything there's a problem
raise ConsumerFetchSizeTooSmall()
else:
raise StopIteration()
return

@classmethod
def _decode_message(cls, data, offset):
Expand Down
5 changes: 4 additions & 1 deletion tools/gentravis.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
git add .travis.yml
"""

import sys
import json
import sys
from itertools import groupby

envlist = sys.stdin.read().strip().split()
Expand All @@ -38,6 +38,9 @@
'py36': {
'python': '3.6',
},
'py37': {
'python': '3.7',
},
'pypy': {
'dist': 'trusty',
'python': 'pypy',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# A tox config file for afkak
[tox]
envlist = {py27,py36}-lint,{py27,py35,py36}-{unit,unit-snappy-murmur},{py27,py36}-int-snappy-murmur,pypy-{unit,unit-snappy}
envlist = {py27,py37}-lint,{py27,py35,py36,py37}-{unit,unit-snappy-murmur},{py27,py36}-int-snappy-murmur,pypy-{unit,unit-snappy}

[testenv]
setenv =
Expand Down