Skip to content

Commit d93f25c

Browse files
committed
Merge tag '3.29.1' of https://github.com/datastax/python-driver into sync_with_upstream_3.29.1
version 3.29.1 * tag '3.29.1' of https://github.com/datastax/python-driver: Release 3.29.1: changelog & version (datastax#1199) PYTHON-1378 Expand search directories for includes (datastax#1198) clean up last "import six" (datastax#1197) fix build from source on macos using homebrew (datastax#1196) Added 3.29.0 to docs.yaml
2 parents de04ce0 + 9629c2a commit d93f25c

File tree

7 files changed

+22
-11
lines changed

7 files changed

+22
-11
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
3.29.1
2+
======
3+
March 19, 2024
4+
5+
Bug Fixes
6+
--------
7+
* cassandra-driver for Python 3.12 Linux is compiled without libev support (PYTHON-1378)
8+
* Consider moving to native wheel builds for OS X and removing universal2 wheels (PYTHON-1379)
9+
110
3.29.0
211
======
312
December 19, 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, 29, 0)
26+
__version_info__ = (3, 29, 1)
2727
__version__ = '.'.join(map(str, __version_info__))
2828

2929

cassandra/metadata.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
from cassandra.util import OrderedDict, Version
4343
from cassandra.pool import HostDistance
4444
from cassandra.connection import EndPoint
45-
from cassandra.compat import Mapping
4645
from cassandra.tablets import Tablets
4746

4847
log = logging.getLogger(__name__)

docs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ sections:
2222
# build extensions like libev
2323
CASS_DRIVER_NO_CYTHON=1 python setup.py build_ext --inplace --force
2424
versions:
25+
- name: '3.29'
26+
ref: 1a947f84
2527
- name: '3.28'
2628
ref: 4325afb6
2729
- name: '3.27'

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.29.0".
29+
It should print something like "3.29.1".
3030

3131
.. _installation-datastax-graph:
3232

docs/upgrading.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,3 @@ The following dependencies have officially been made optional:
374374

375375
* ``scales``
376376
* ``blist``
377-
378-
And one new dependency has been added (to enable Python 3 support):
379-
380-
* ``six``

setup.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,22 @@ class BuildFailed(Exception):
138138
def __init__(self, ext):
139139
self.ext = ext
140140

141+
is_windows = sys.platform.startswith('win32')
142+
is_macos = sys.platform.startswith('darwin')
141143

142144
murmur3_ext = Extension('cassandra.cmurmur3',
143145
sources=['cassandra/cmurmur3.c'])
144146

147+
libev_includes = ['/usr/include/libev', '/usr/local/include', '/opt/local/include', '/usr/include']
148+
libev_libdirs = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64']
149+
if is_macos:
150+
libev_includes.extend(['/opt/homebrew/include', os.path.expanduser('~/homebrew/include')])
151+
libev_libdirs.extend(['/opt/homebrew/lib'])
145152
libev_ext = Extension('cassandra.io.libevwrapper',
146153
sources=['cassandra/io/libevwrapper.c'],
147-
include_dirs=['/usr/include/libev', '/usr/local/include', '/opt/local/include'],
154+
include_dirs=libev_includes,
148155
libraries=['ev'],
149-
library_dirs=['/usr/local/lib', '/opt/local/lib'])
156+
library_dirs=libev_libdirs)
150157

151158
platform_unsupported_msg = \
152159
"""
@@ -169,8 +176,6 @@ def __init__(self, ext):
169176
=================================================================================
170177
"""
171178

172-
is_windows = os.name == 'nt'
173-
174179
is_pypy = "PyPy" in sys.version
175180
if is_pypy:
176181
sys.stderr.write(pypy_unsupported_msg)

0 commit comments

Comments
 (0)