mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
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') ```
36 lines
998 B
Python
36 lines
998 B
Python
import setuptools
|
|
import codecs
|
|
|
|
test_deps = ['pytest']
|
|
|
|
try:
|
|
import unittest.mock
|
|
except:
|
|
test_deps.append('mock')
|
|
|
|
setuptools.setup(
|
|
name='doublethink',
|
|
version='0.2.0',
|
|
packages=['doublethink'],
|
|
classifiers=[
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Programming Language :: Python :: 3.5',
|
|
'Programming Language :: Python :: 3.6',
|
|
'Programming Language :: Python :: 3.7',
|
|
],
|
|
install_requires=['rethinkdb>=2.3,<2.4'],
|
|
extras_require={'test': test_deps},
|
|
url='https://github.com/internetarchive/doublethink',
|
|
author='Noah Levitt',
|
|
author_email='nlevitt@archive.org',
|
|
description='rethinkdb python library',
|
|
long_description=codecs.open(
|
|
'README.rst', mode='r', encoding='utf-8').read(),
|
|
entry_points={
|
|
'console_scripts': [
|
|
'doublethink-purge-stale-services=doublethink.cli:purge_stale_services',
|
|
]
|
|
},
|
|
)
|