mirror of
https://github.com/hanzo-ds/driver.git
synced 2026-10-30 20:32:40 +00:00
The wire protocol was the last holdout and it was not cosmetic: the Hanzo Datastore server reads X-Datastore-User, and answers a request bearing X-ClickHouse-User with 401. Verified against the live server, both directions. So a client still sending the old headers is not merely off-brand, it cannot authenticate over HTTP. Everything else follows: types, dialects, error modules, docstrings and doc links now name Datastore, and doc URLs point at docs.hanzo.ai/datastore rather than the upstream vendor's site. Zero occurrences of the old name remain. Still cut from the pinned upstream version, so behaviour is unchanged.
28 lines
515 B
Python
28 lines
515 B
Python
import os
|
|
import sys
|
|
|
|
USE_NUMPY = bool(int(os.getenv('USE_NUMPY', '0')))
|
|
|
|
tests_require = [
|
|
'pytest',
|
|
'parameterized',
|
|
'freezegun',
|
|
'zstd',
|
|
'datastore-cityhash>=1.0.2.1'
|
|
]
|
|
|
|
if sys.implementation.name == 'pypy':
|
|
tests_require.append('lz4<=3.0.1')
|
|
else:
|
|
tests_require.append('lz4')
|
|
|
|
if USE_NUMPY:
|
|
tests_require.extend(['numpy', 'pandas'])
|
|
|
|
try:
|
|
from pip import main as pipmain
|
|
except ImportError:
|
|
from pip._internal import main as pipmain
|
|
|
|
pipmain(['install'] + tests_require)
|