From f7fc7da725c9b572d473c717b3dad9af98a7a2b4 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Wed, 6 Mar 2019 12:22:03 -0800 Subject: [PATCH] peg to rethinkdb-python < 2.4 rethinkdb-python 2.4 has introduced a massive change The main difference with the previous driver (except the name of the package) is we are **not** importing RethinkDB as `r`. If you would like to use `RethinkDB`'s python driver as a drop in replacement, you should do the following: ``` from rethinkdb import RethinkDB r = RethinkDB() connection = r.connect(db='test') ``` --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 26b3887..06c2678 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ except: setuptools.setup( name='doublethink', - version='0.2.0.dev94', + version='0.2.0', packages=['doublethink'], classifiers=[ 'Programming Language :: Python :: 2.7', @@ -19,7 +19,7 @@ setuptools.setup( 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', ], - install_requires=['rethinkdb'], + install_requires=['rethinkdb>=2.3,<2.4'], extras_require={'test': test_deps}, url='https://github.com/internetarchive/doublethink', author='Noah Levitt',