diff options
author | Jeff Widman <jeff@jeffwidman.com> | 2018-10-26 22:37:01 -0700 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2019-03-12 19:33:38 -0700 |
commit | a84cdcb1442b99cc9f20ed9ba5f16ac9a52dde88 (patch) | |
tree | 6a9059f4b84f6cea98356c3c24bef00a7d5018f8 | |
parent | 2a91ca1a8fd767d2e1f9981c7431ce31dcbddf00 (diff) | |
download | kafka-python-a84cdcb1442b99cc9f20ed9ba5f16ac9a52dde88.tar.gz |
Add python 3.7 support
Add Python 3.7 to the tests. Note that Travis requires a workaround for
now.
Document 3.7 support on PyPi.
-rw-r--r-- | .travis.yml | 13 | ||||
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | docs/compatibility.rst | 2 | ||||
-rw-r--r-- | setup.py | 1 | ||||
-rw-r--r-- | tox.ini | 6 |
5 files changed, 21 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index fd6018b..917de1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,21 @@ python: - 3.4 - 3.5 - 3.6 + # - 3.7 # TODO uncomment once Travis supports 3.7 w/o the `matrix` workaround used below - pypy +# TODO: workaround pulled from: +# https://github.com/travis-ci/travis-ci/issues/9815#issue-336465122 +# It only runs a single 3.7 test job against one version of Kafka but +# that's good enough for now since we test all the other permutations, +# especially since this workaround should be removed in the near future. +# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs +matrix: + include: + - python: 3.7 + dist: xenial + sudo: true + env: - KAFKA_VERSION=0.8.2.2 - KAFKA_VERSION=0.9.0.1 @@ -14,8 +14,8 @@ servers/$(KAFKA_VERSION)/kafka-bin: build-integration: servers/$(KAFKA_VERSION)/kafka-bin # Test and produce coverage using tox. This is the same as is run on Travis -test36: build-integration - KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) tox -e py36 -- $(FLAGS) +test37: build-integration + KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) tox -e py37 -- $(FLAGS) test27: build-integration KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) tox -e py27 -- $(FLAGS) @@ -56,4 +56,4 @@ doc: make -C docs html @echo "open file://`pwd`/docs/_build/html/index.html" -.PHONY: all test36 test27 test-local cov-local clean doc +.PHONY: all test37 test27 test-local cov-local clean doc diff --git a/docs/compatibility.rst b/docs/compatibility.rst index 85b2c59..ce222ee 100644 --- a/docs/compatibility.rst +++ b/docs/compatibility.rst @@ -12,6 +12,6 @@ through 0.8.0 . kafka-python is not compatible with the 0.8.2-beta release. Because the kafka server protocol is backwards compatible, kafka-python is expected to work with newer broker releases as well (2.0+). -kafka-python is tested on python 2.7, 3.4, 3.5, 3.6 and pypy. +kafka-python is tested on python 2.7, 3.4, 3.5, 3.6, 3.7, and pypy. Builds and tests via Travis-CI. See https://travis-ci.org/dpkp/kafka-python @@ -57,6 +57,7 @@ setup( "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", ] @@ -1,5 +1,5 @@ [tox] -envlist = py{26,27,34,35,36,py}, docs +envlist = py{26,27,34,35,36,37,py}, docs [pytest] testpaths = kafka test @@ -11,8 +11,8 @@ log_format = %(created)f %(filename)-23s %(threadName)s %(message)s deps = pytest<4.0 pytest-cov - py{27,34,35,36,py}: pylint - py{27,34,35,36,py}: pytest-pylint + py{27,34,35,36,37,py}: pylint + py{27,34,35,36,37,py}: pytest-pylint pytest-mock mock python-snappy |