Removed support for python 2.6
This commit is contained in:
parent
eef33b0a20
commit
d966744452
@ -2,8 +2,6 @@ language: python
|
||||
python: 2.7
|
||||
sudo: false
|
||||
env:
|
||||
- TOX_ENV=py26 CASS_VER=21 CASS_DRIVER_NO_CYTHON=1
|
||||
- TOX_ENV=py26 CASS_VER=21
|
||||
- TOX_ENV=py27 CASS_VER=12 CASS_DRIVER_NO_CYTHON=1
|
||||
- TOX_ENV=py27 CASS_VER=20 CASS_DRIVER_NO_CYTHON=1
|
||||
- TOX_ENV=py27 CASS_VER=21 CASS_DRIVER_NO_CYTHON=1
|
||||
|
@ -117,7 +117,7 @@ it with the ``PROTOCOL_VERSION`` environment variable::
|
||||
|
||||
Testing Multiple Python Versions
|
||||
--------------------------------
|
||||
If you want to test all of python 2.6, 2.7, and pypy, use tox (this is what
|
||||
If you want to test all of python 2.7, 3.3, 3.4 and pypy, use tox (this is what
|
||||
TravisCI runs)::
|
||||
|
||||
tox
|
||||
|
@ -6,7 +6,7 @@ DataStax Python Driver for Apache Cassandra
|
||||
|
||||
A modern, `feature-rich <https://github.com/datastax/python-driver#features>`_ and highly-tunable Python client library for Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using exclusively Cassandra's binary protocol and Cassandra Query Language v3.
|
||||
|
||||
The driver supports Python 2.6, 2.7, 3.3, and 3.4.
|
||||
The driver supports Python 2.7, 3.3, and 3.4.
|
||||
|
||||
Feedback Requested
|
||||
------------------
|
||||
|
@ -68,20 +68,12 @@ else:
|
||||
return val
|
||||
|
||||
|
||||
def bitlength(n):
|
||||
bitlen = 0
|
||||
while n > 0:
|
||||
n >>= 1
|
||||
bitlen += 1
|
||||
return bitlen
|
||||
|
||||
|
||||
def varint_pack(big):
|
||||
pos = True
|
||||
if big == 0:
|
||||
return b'\x00'
|
||||
if big < 0:
|
||||
bytelength = bitlength(abs(big) - 1) // 8 + 1
|
||||
bytelength = int.bit_length(abs(big) - 1) // 8 + 1
|
||||
big = (1 << bytelength * 8) + big
|
||||
pos = False
|
||||
revbytes = bytearray()
|
||||
|
1
setup.py
1
setup.py
@ -417,7 +417,6 @@ def run_setup(extensions):
|
||||
'Natural Language :: English',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 2.6',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3.3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
|
@ -14,7 +14,6 @@
|
||||
import sys
|
||||
|
||||
from cassandra import ProtocolVersion
|
||||
from cassandra.marshal import bitlength
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
@ -134,11 +133,6 @@ class UnmarshalTest(unittest.TestCase):
|
||||
msg='Marshaller for %s (%s) gave wrong type (%s instead of %s)'
|
||||
% (valtype, marshaller, type(whatwegot), type(serializedval)))
|
||||
|
||||
def test_bitlength(self):
|
||||
self.assertEqual(bitlength(9), 4)
|
||||
self.assertEqual(bitlength(-10), 0)
|
||||
self.assertEqual(bitlength(0), 0)
|
||||
|
||||
def test_date(self):
|
||||
# separate test because it will deserialize as datetime
|
||||
self.assertEqual(DateType.from_binary(DateType.to_binary(date(2015, 11, 2), 1), 1), datetime(2015, 11, 2))
|
||||
|
Loading…
Reference in New Issue
Block a user