Skip to content

Commit e531a8c

Browse files
absurdfarcedkropachev
authored andcommitted
Documentation (and other) updates for 3.29.0 (datastax#1194)
1 parent 9caa857 commit e531a8c

File tree

7 files changed

+31
-12
lines changed

7 files changed

+31
-12
lines changed

CHANGELOG.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
3.29.0
2+
======
3+
December 19, 2023
4+
5+
Features
6+
--------
7+
* Add support for Python 3.9 through 3.12, drop support for 3.7 (PYTHON-1283)
8+
* Removal of dependency on six module (PR 1172)
9+
* Raise explicit exception when deserializing a vector with a subtype that isn’t a constant size (PYTHON-1371)
10+
11+
Others
12+
------
13+
* Remove outdated Python pre-3.7 references (PR 1186)
14+
* Remove backup(.bak) files (PR 1185)
15+
* Fix doc typo in add_callbacks (PR 1177)
16+
117
3.28.0
218
======
319
June 5, 2023

cassandra/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def emit(self, record):
2323

2424
logging.getLogger('cassandra').addHandler(NullHandler())
2525

26-
__version_info__ = (3, 28, 2)
26+
__version_info__ = (3, 29, 0)
2727
__version__ = '.'.join(map(str, __version_info__))
2828

2929

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 `Scylla <https://docs.scylladb.com>`_.
44
This driver works exclusively with the Cassandra Query Language v3 (CQL3)
55
and Cassandra's native protocol.
66

7-
The driver supports Python 3.6-3.11.
7+
The driver supports Python 3.6-3.12.
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: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Installation
33

44
Supported Platforms
55
-------------------
6-
Python versions 3.6-3.11 are supported. Both CPython (the standard Python
6+
Python versions 3.6-3.12 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.
@@ -26,7 +26,7 @@ To check if the installation was successful, you can run::
2626

2727
python -c 'import cassandra; print cassandra.__version__'
2828

29-
It should print something like "3.27.0".
29+
It should print something like "3.29.0".
3030

3131
(*Optional*) Compression Support
3232
--------------------------------
@@ -182,12 +182,15 @@ dependencies, then use install-option::
182182
sudo pip install --install-option="--no-cython"
183183

184184

185+
Supported Event Loops
186+
^^^^^^^^^^^^^^^^^^^^^
187+
For Python versions before 3.12 the driver uses the ``asyncore`` module for its default
188+
event loop. Other event loops such as ``libev``, ``gevent`` and ``eventlet`` are also
189+
available via Python modules or C extensions. Python 3.12 has removed ``asyncore`` entirely
190+
so for this platform one of these other event loops must be used.
191+
185192
libev support
186193
^^^^^^^^^^^^^
187-
The driver currently uses Python's ``asyncore`` module for its default
188-
event loop. For better performance, ``libev`` is also supported through
189-
a C extension.
190-
191194
If you're on Linux, you should be able to install libev
192195
through a package manager. For example, on Debian/Ubuntu::
193196

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ classifiers = [
1212
'Natural Language :: English',
1313
'Operating System :: OS Independent',
1414
'Programming Language :: Python',
15-
'Programming Language :: Python :: 3',
16-
'Programming Language :: Python :: 3.7',
1715
'Programming Language :: Python :: 3.8',
1816
'Programming Language :: Python :: 3.9',
1917
'Programming Language :: Python :: 3.10',

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ gevent==23.9.0; python_version < '3.13' and (platform_machine == 'i686' or platf
1111
eventlet>=0.33.3; python_version < '3.13'
1212
cython>=0.20,<0.30
1313
packaging
14-
futurist; python_version >= '3.7'
14+
futurist
1515
asynctest
1616
pyyaml

tests/unit/test_cluster.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import unittest
1515

1616
import logging
17+
import socket
1718

1819
from mock import patch, Mock
1920

@@ -88,8 +89,9 @@ class ClusterTest(unittest.TestCase):
8889

8990
def test_tuple_for_contact_points(self):
9091
cluster = Cluster(contact_points=[('localhost', 9045), ('127.0.0.2', 9046), '127.0.0.3'], port=9999)
92+
localhost_addr = set([addr[0] for addr in [t for (_,_,_,_,t) in socket.getaddrinfo("localhost",80)]])
9193
for cp in cluster.endpoints_resolved:
92-
if cp.address in ('::1', '127.0.0.1'):
94+
if cp.address in localhost_addr:
9395
self.assertEqual(cp.port, 9045)
9496
elif cp.address == '127.0.0.2':
9597
self.assertEqual(cp.port, 9046)

0 commit comments

Comments
 (0)