Skip to content

Commit 2be3116

Browse files
committed
Last fixes and removals
1 parent f492b14 commit 2be3116

File tree

9 files changed

+15
-34
lines changed

9 files changed

+15
-34
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Bug Fixes
2828

2929
Others
3030
------
31+
* The driver has a new dependency: geomet. It comes from the dse-driver unification and
32+
is used to support DSE geo types.
3133

3234
Deprecations
3335
------------

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
DataStax Python Driver for Apache Cassandra and DataStax products
2-
=================================================================
1+
DataStax Driver for Apache Cassandra
2+
====================================
33

44
.. image:: https://travis-ci.org/datastax/python-driver.png?branch=master
55
:target: https://travis-ci.org/datastax/python-driver

build.yaml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,6 @@ schedules:
141141
- python: [3.4, 3.6, 3.7, 3.8]
142142
- cassandra: ['2.0', '2.1', '2.2', '3.0', 'test-dse']
143143

144-
# TODO: Temporary, don't merge me
145-
python_oss_next_tests:
146-
schedule: adhoc
147-
disable_pull_requests: true
148-
branches:
149-
include: [/oss-next.*/]
150-
env_vars: |
151-
EVENT_LOOP_MANAGER='libev'
152-
EXCLUDE_LONG=1
153-
matrix:
154-
exclude:
155-
- python: [3.4, 3.6, 3.7, 3.8]
156-
157144
python:
158145
- 2.7
159146
- 3.4
@@ -268,14 +255,6 @@ build:
268255
echo "==========RUNNING INTEGRATION TESTS=========="
269256
EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CCM_ARGS="$CCM_ARGS" DSE_VERSION=$DSE_VERSION CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION MAPPED_CASSANDRA_VERSION=$MAPPED_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=standard_results.xml tests/integration/standard/ || true
270257
271-
# TODO: Temporary, don't merge this 2.1 stuff...
272-
# if [ "$CCM_CASSANDRA_VERSION" == "2.1.21" ]; then
273-
# echo "Testing cassandra 2.1 with protocol V2"
274-
# PROTOCOL_VERSION=2 EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CCM_ARGS="$CCM_ARGS" CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION MAPPED_CASSANDRA_VERSION=$MAPPED_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=standard_v2_results.xml tests/integration/standard/ || true
275-
# echo "Testing cassandra 2.1 with protocol V1"
276-
# PROTOCOL_VERSION=1 EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CCM_ARGS="$CCM_ARGS" CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION MAPPED_CASSANDRA_VERSION=$MAPPED_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=standard_v1_results.xml tests/integration/standard/ || true
277-
# fi
278-
279258
if [ -n "$DSE_VERSION" ] && ! [[ $DSE_VERSION == "4.8"* ]]; then
280259
echo "==========RUNNING DSE INTEGRATION TESTS=========="
281260
EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CASSANDRA_DIR=$CCM_INSTALL_DIR DSE_VERSION=$DSE_VERSION ADS_HOME=$HOME/ VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=dse_results.xml tests/integration/advanced/ || true

cassandra/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2962,7 +2962,7 @@ def prepare(self, query, custom_payload=None, keyspace=None):
29622962
future = ResponseFuture(self, message, query=None, timeout=self.default_timeout)
29632963
try:
29642964
future.send_request()
2965-
response = future.result()[0]
2965+
response = future.result().one()
29662966
except Exception:
29672967
log.exception("Error preparing query:")
29682968
raise

cassandra/policies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,8 +1168,8 @@ class DSELoadBalancingPolicy(DefaultLoadBalancingPolicy):
11681168
*Deprecated:* This will be removed in the next major release,
11691169
consider using :class:`.DefaultLoadBalancingPolicy`.
11701170
"""
1171-
def __init__(self, *args):
1172-
super(DSELoadBalancingPolicy, self).__init__(*args)
1171+
def __init__(self, *args, **kwargs):
1172+
super(DSELoadBalancingPolicy, self).__init__(*args, **kwargs)
11731173
warnings.warn("DSELoadBalancingPolicy will be removed in 4.0. Consider using "
11741174
"DefaultLoadBalancingPolicy.", DeprecationWarning)
11751175

cassandra/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ def _write_query_params(self, f, protocol_version):
589589
else:
590590
raise UnsupportedOperation(
591591
"Keyspaces may only be set on queries with protocol version "
592-
"DSE_V2 or higher. Consider setting Cluster.protocol_version to ProtocolVersion.DSE_V2.")
592+
"5 or DSE_V2 or higher. Consider setting Cluster.protocol_version.")
593593

594594
if ProtocolVersion.uses_int_query_flags(protocol_version):
595595
write_uint(f, flags)

docs/getting_started.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ behavior in some other way, this is the place to do it:
4747
cluster = Cluster(execution_profiles={EXEC_PROFILE_DEFAULT: profile})
4848
session = cluster.connect()
4949
50-
print session.execute("SELECT release_version FROM system.local")[0]
50+
print(session.execute("SELECT release_version FROM system.local").one())
5151
5252
Profiles are passed in by ``execution_profiles`` dict.
5353

@@ -70,7 +70,7 @@ In this case we can construct the base ``ExecutionProfile`` passing all attribut
7070
cluster = Cluster(execution_profiles={EXEC_PROFILE_DEFAULT: profile})
7171
session = cluster.connect()
7272
73-
print session.execute("SELECT release_version FROM system.local")[0]
73+
print(session.execute("SELECT release_version FROM system.local").one())
7474
7575
Users are free to setup additional profiles to be used by name:
7676

docs/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
DataStax Python Driver for Apache Cassandra and DataStax products
2-
=================================================================
3-
A Python client driver for `Apache Cassandra <http://cassandra.apache.org>`_ and
4-
DataStax products. This driver works exclusively with the Cassandra Query Language v3 (CQL3)
1+
DataStax Python Driver for Apache Cassandra
2+
===========================================
3+
A Python client driver for `Apache Cassandra <http://cassandra.apache.org>`_.
4+
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

77
The driver supports Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def run_setup(extensions):
416416
setup(
417417
name='cassandra-driver',
418418
version=__version__,
419-
description=' DataStax Driver for Apache Cassandra and DataStax products',
419+
description=' DataStax Driver for Apache Cassandra',
420420
long_description=long_description,
421421
url='http://github.com/datastax/python-driver',
422422
project_urls={

0 commit comments

Comments
 (0)