Skip to content

Commit fe3636c

Browse files
committed
Add Python 3.7 support
1 parent 7a5bc1c commit fe3636c

9 files changed

Lines changed: 18 additions & 17 deletions

File tree

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Not released
44

55
Features
66
--------
7+
* Add Python 3.7 support (PYTHON-1016)
78
* Future-proof Mapping imports (PYTHON-1023)
89

910
Bug Fixes

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DataStax Python Driver for Apache Cassandra
66

77
A modern, `feature-rich <https://github.com/datastax/python-driver#features>`_ and highly-tunable Python client library for Apache Cassandra (2.1+) using exclusively Cassandra's binary protocol and Cassandra Query Language v3.
88

9-
The driver supports Python 2.7, 3.4, 3.5, and 3.6.
9+
The driver supports Python 2.7, 3.4, 3.5, 3.6 and 3.7.
1010

1111
If you require compatibility with DataStax Enterprise, use the `DataStax Enterprise Python Driver <http://docs.datastax.com/en/developer/python-dse-driver/>`_.
1212

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ environment:
33
- PYTHON: "C:\\Python27-x64"
44
cassandra_version: 3.11.2
55
ci_type: standard
6-
- PYTHON: "C:\\Python34"
6+
- PYTHON: "C:\\Python35-x64"
77
cassandra_version: 3.11.2
8-
ci_type: unit
8+
ci_type: standard
99
os: Visual Studio 2015
1010
platform:
1111
- x64

build.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schedules:
88
EXCLUDE_LONG=1
99
matrix:
1010
exclude:
11-
- python: [3.4, 3.6]
11+
- python: [3.4, 3.6, 3.7]
1212

1313
nightly_master:
1414
schedule: nightly
@@ -18,7 +18,7 @@ schedules:
1818
EVENT_LOOP_MANAGER='libev'
1919
matrix:
2020
exclude:
21-
- python: [3.4, 3.6]
21+
- python: [3.4, 3.6, 3.7]
2222

2323
commit_long_test:
2424
schedule: per_commit
@@ -28,7 +28,7 @@ schedules:
2828
EVENT_LOOP_MANAGER='libev'
2929
matrix:
3030
exclude:
31-
- python: [3.4, 3.6]
31+
- python: [3.4, 3.6, 3.7]
3232
- cassandra: ['2.0', '2.1', '3.0']
3333

3434
commit_branches:
@@ -40,7 +40,7 @@ schedules:
4040
EXCLUDE_LONG=1
4141
matrix:
4242
exclude:
43-
- python: [3.4, 3.6]
43+
- python: [3.4, 3.6, 3.7]
4444
- cassandra: ['2.0', '2.1', '3.0']
4545

4646
commit_branches_dev:
@@ -52,7 +52,7 @@ schedules:
5252
EXCLUDE_LONG=1
5353
matrix:
5454
exclude:
55-
- python: [2.7, 3.4, 3.6]
55+
- python: [2.7, 3.4, 3.6, 3.7]
5656
- cassandra: ['2.0', '2.1', '2.2', '3.0', 'test-dse']
5757

5858
release_test:
@@ -77,7 +77,7 @@ schedules:
7777
EVENT_LOOP_MANAGER='gevent'
7878
matrix:
7979
exclude:
80-
- python: [3.4, 3.5, 3.6]
80+
- python: [3.4, 3.5, 3.6, 3.7]
8181

8282
weekly_eventlet:
8383
schedule: 0 18 * * 6
@@ -119,14 +119,15 @@ schedules:
119119
JUST_UPGRADE=True
120120
matrix:
121121
exclude:
122-
- python: [3.4, 3.6]
122+
- python: [3.4, 3.6, 3.7]
123123
- cassandra: ['2.0', '2.1', '2.2', '3.0', 'test-dse']
124124

125125
python:
126126
- 2.7
127127
- 3.4
128128
- 3.5
129129
- 3.6
130+
- 3.7
130131

131132
os:
132133
- ubuntu/bionic64/python-driver

cassandra/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,10 +2420,10 @@ def add_request_init_listener(self, fn, *args, **kwargs):
24202420
Adds a callback with arguments to be called when any request is created.
24212421
24222422
It will be invoked as `fn(response_future, *args, **kwargs)` after each client request is created,
2423-
and before the request is sent\*. This can be used to create extensions by adding result callbacks to the
2423+
and before the request is sent. This can be used to create extensions by adding result callbacks to the
24242424
response future.
24252425
2426-
\* where `response_future` is the :class:`.ResponseFuture` for the request.
2426+
`response_future` is the :class:`.ResponseFuture` for the request.
24272427
24282428
Note that the init callback is done on the client thread creating the request, so you may need to consider
24292429
synchronization if you have multiple threads. Any callbacks added to the response future will be executed

cassandra/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ class OrderedMap(Mapping):
732732
['value', 'value2']
733733
734734
These constructs are needed to support nested collections in Cassandra 2.1.3+,
735-
where frozen collections can be specified as parameters to others\*::
735+
where frozen collections can be specified as parameters to others::
736736
737737
CREATE TABLE example (
738738
...
@@ -743,7 +743,7 @@ class OrderedMap(Mapping):
743743
This class derives from the (immutable) Mapping API. Objects in these maps
744744
are not intended be modified.
745745
746-
\* Note: Because of the way Cassandra encodes nested types, when using the
746+
Note: Because of the way Cassandra encodes nested types, when using the
747747
driver with nested collections, :attr:`~.Cluster.protocol_version` must be 3
748748
or higher.
749749

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A Python client driver for `Apache Cassandra <http://cassandra.apache.org>`_.
44
This driver works exclusively with the Cassandra Query Language v3 (CQL3)
55
and Cassandra's native protocol. Cassandra 2.1+ is supported.
66

7-
The driver supports Python 2.7, 3.4, 3.5, and 3.6.
7+
The driver supports Python 2.7, 3.4, 3.5, 3.6 and 3.7.
88

99
This driver is open source under the
1010
`Apache v2 License <http://www.apache.org/licenses/LICENSE-2.0.html>`_.

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Installation
33

44
Supported Platforms
55
-------------------
6-
Python 2.7, 3.4, 3.5 and 3.6 are supported. Both CPython (the standard Python
6+
Python 2.7, 3.4, 3.5, 3.6 and 3.7 are supported. Both CPython (the standard Python
77
implementation) and `PyPy <http://pypy.org>`_ are supported and tested.
88

99
Linux, OSX, and Windows are supported.

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[tox]
22
envlist = py{27,34,35,36,37},pypy
3-
skip_missing_interpreters = True
43

54
[base]
65
deps = nose

0 commit comments

Comments
 (0)