Skip to content

Commit 37c5307

Browse files
committed
Merge branch 'oss-next' into ngdg_master_ft
2 parents 8ac464d + a629eae commit 37c5307

File tree

10 files changed

+33
-15
lines changed

10 files changed

+33
-15
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Features
3838
* Flexible version parsing (PYTHON-1174)
3939
* Support NULL in collection deserializer (PYTHON-1123)
4040
* Avoid warnings about unspecified load balancing policy when connecting to a cloud cluster (PYTHON-1177)
41+
* Add Python 3.8 support (PYTHON-1189)
4142
* [GRAPH] Ability to execute Fluent Graph queries asynchronously (PYTHON-1129)
4243
4344
Bug Fixes

README-dev.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,18 @@ An EAP release is only uploaded on a private server and it is not published on p
234234
python setup.py doc
235235

236236
* Upload the docs on the EAP download server.
237+
238+
Adding a New Python Runtime Support
239+
===================================
240+
241+
* Add the new python version to our jenkins image:
242+
https://github.com/riptano/openstack-jenkins-drivers/
243+
244+
* Add the new python version in job-creator:
245+
https://github.com/riptano/job-creator/
246+
247+
* Run the tests and ensure they all pass
248+
* also test all event loops
249+
250+
* Update the wheels building repo to support that version:
251+
https://github.com/riptano/python-dse-driver-wheels

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DataStax Python Driver for Apache Cassandra and DataStax products
77
A modern, `feature-rich <https://github.com/datastax/python-driver#features>`_ and highly-tunable Python client library for Apache Cassandra (2.1+) and
88
DataStax Enterprise (4.7+) using exclusively Cassandra's binary protocol and Cassandra Query Language v3.
99

10-
The driver supports Python 2.7, 3.4, 3.5, 3.6 and 3.7.
10+
The driver supports Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8.
1111

1212
**Note:** DataStax products do not support big-endian systems.
1313

build.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schedules:
88
EVENT_LOOP_MANAGER='libev'
99
matrix:
1010
exclude:
11-
- python: [3.4, 3.6, 3.7]
11+
- python: [3.4, 3.6, 3.7, 3.8]
1212
- cassandra: ['2.1', '3.0', 'test-dse']
1313

1414
commit_long_test:
@@ -20,7 +20,7 @@ schedules:
2020
EVENT_LOOP_MANAGER='libev'
2121
matrix:
2222
exclude:
23-
- python: [3.4, 3.6, 3.7]
23+
- python: [3.4, 3.6, 3.7, 3.8]
2424
- cassandra: ['2.1', '3.0', 'test-dse']
2525

2626
commit_branches:
@@ -33,7 +33,7 @@ schedules:
3333
EXCLUDE_LONG=1
3434
matrix:
3535
exclude:
36-
- python: [3.4, 3.6, 3.7]
36+
- python: [3.4, 3.6, 3.7, 3.8]
3737
- cassandra: ['2.1', '3.0', 'test-dse']
3838

3939
commit_branches_dev:
@@ -46,7 +46,7 @@ schedules:
4646
EXCLUDE_LONG=1
4747
matrix:
4848
exclude:
49-
- python: [2.7, 3.4, 3.7]
49+
- python: [2.7, 3.4, 3.7, 3.8]
5050
- cassandra: ['2.0', '2.1', '2.2', '3.0', 'test-dse', dse-4.8', 'dse-5.0']
5151

5252
release_test:
@@ -150,7 +150,7 @@ schedules:
150150
JUST_UPGRADE=True
151151
matrix:
152152
exclude:
153-
- python: [3.4, 3.6, 3.7]
153+
- python: [3.4, 3.6, 3.7, 3.8]
154154
- cassandra: ['2.0', '2.1', '2.2', '3.0', 'test-dse']
155155

156156
# TODO: Temporary, don't merge me
@@ -164,14 +164,15 @@ schedules:
164164
EXCLUDE_LONG=1
165165
matrix:
166166
exclude:
167-
- python: [3.4, 3.6, 3.7]
167+
- python: [3.4, 3.6, 3.7, 3.8]
168168

169169
python:
170170
- 2.7
171171
- 3.4
172172
- 3.5
173173
- 3.6
174174
- 3.7
175+
- 3.8
175176

176177
os:
177178
- ubuntu/bionic64/python-driver

cassandra/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ def _create_thread_pool_executor(self, **kwargs):
13561356
Create a ThreadPoolExecutor for the cluster. In most cases, the built-in
13571357
`concurrent.futures.ThreadPoolExecutor` is used.
13581358
1359-
Python 3.7 and Eventlet cause the `concurrent.futures.ThreadPoolExecutor`
1359+
Python 3.7+ and Eventlet cause the `concurrent.futures.ThreadPoolExecutor`
13601360
to hang indefinitely. In that case, the user needs to have the `futurist`
13611361
package so we can use the `futurist.GreenThreadPoolExecutor` class instead.
13621362
@@ -1379,7 +1379,7 @@ def _create_thread_pool_executor(self, **kwargs):
13791379
except ImportError:
13801380
# futurist is not available
13811381
raise ImportError(
1382-
("Python 3.7 and Eventlet cause the `concurrent.futures.ThreadPoolExecutor` "
1382+
("Python 3.7+ and Eventlet cause the `concurrent.futures.ThreadPoolExecutor` "
13831383
"to hang indefinitely. If you want to use the Eventlet reactor, you "
13841384
"need to install the `futurist` package to allow the driver to use "
13851385
"the GreenThreadPoolExecutor. See https://github.com/eventlet/eventlet/issues/508 "

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>`_ and
44
DataStax products. This driver works exclusively with the Cassandra Query Language v3 (CQL3)
55
and Cassandra's native protocol. Cassandra 2.1+ is supported, including DSE 4.7+.
66

7-
The driver supports Python 2.7, 3.4, 3.5, 3.6 and 3.7.
7+
The driver supports Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8.
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, 3.6 and 3.7 are supported. Both CPython (the standard Python
6+
Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8 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.

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ def run_setup(extensions):
447447
'Programming Language :: Python :: 3.5',
448448
'Programming Language :: Python :: 3.6',
449449
'Programming Language :: Python :: 3.7',
450+
'Programming Language :: Python :: 3.8',
450451
'Programming Language :: Python :: Implementation :: CPython',
451452
'Programming Language :: Python :: Implementation :: PyPy',
452453
'Topic :: Software Development :: Libraries :: Python Modules'

tests/integration/cloud/test_cloud.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def test_match_system_local(self):
6969
def test_set_auth_provider(self):
7070
self.connect(self.creds)
7171
self.assertIsInstance(self.cluster.auth_provider, PlainTextAuthProvider)
72-
self.assertEqual(self.cluster.auth_provider.username, 'cassandra')
73-
self.assertEqual(self.cluster.auth_provider.password, 'cassandra')
72+
self.assertEqual(self.cluster.auth_provider.username, 'user1')
73+
self.assertEqual(self.cluster.auth_provider.password, 'user1')
7474

7575
def test_support_leaving_the_auth_unset(self):
7676
with self.assertRaises(NoHostAvailable):

tests/unit/advanced/test_insights.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ def test_token_aware_policy(self):
230230

231231
def test_whitelist_round_robin_policy(self):
232232
self.assertEqual(
233-
insights_registry.serialize(WhiteListRoundRobinPolicy(['123.123'])),
233+
insights_registry.serialize(WhiteListRoundRobinPolicy(['127.0.0.3'])),
234234
{'namespace': 'cassandra.policies',
235-
'options': {'allowed_hosts': ('123.123',)},
235+
'options': {'allowed_hosts': ('127.0.0.3',)},
236236
'type': 'WhiteListRoundRobinPolicy'}
237237
)
238238

0 commit comments

Comments
 (0)