Skip to content

Commit e57884c

Browse files
authored
Merge pull request #95 from rethinkdb/fix/setup-py-install
Fix/setup py install
2 parents d7e7054 + c29e1ad commit e57884c

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ test-ci:
5858
@killall rebirthdb
5959

6060
test-remote:
61+
curl -qo ${REMOTE_TEST_SETUP_NAME} ${REMOTE_TEST_SETUP_URL}
6162
python ${REMOTE_TEST_SETUP_NAME} pytest -m integration
6263

6364
install-db:
@@ -82,5 +83,4 @@ clean:
8283
prepare:
8384
curl -qo ${TARGET_PROTO_FILE} ${PROTO_FILE_URL}
8485
curl -qo ${FILE_CONVERTER_NAME} ${FILE_CONVERTER_URL}
85-
curl -qo ${REMOTE_TEST_SETUP_NAME} ${REMOTE_TEST_SETUP_URL}
8686
python ./${FILE_CONVERTER_NAME} -l python -i ${TARGET_PROTO_FILE} -o ${TARGET_CONVERTED_PROTO_FILE}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following examples demonstrate how to use the driver in each mode.
3636

3737
### Default mode (blocking I/O)
3838
The driver's default mode of operation is to use blocking I/O, i.e. standard Python
39-
sockets. This example shows how to create a table, populate with data, and get every
39+
sockets. This example shows how to create a table, populate with data, and get every
4040
document.
4141

4242
```python
@@ -252,6 +252,7 @@ Remote test will create a new temporary SSH key and a Droplet for you until the
252252
| DO_REGION | sfo2 |
253253

254254
```bash
255+
$ pip install paramiko python-digitalocean
255256
$ export DO_TOKEN=<YOUR_TOKEN>
256257
$ make test-remote
257258
```

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ codacy-coverage==1.3.11
22
mock==2.0.0
33
pytest-cov==2.6.1
44
pytest==4.3.0
5-
paramiko==2.4.2
6-
python-digitalocean==1.13.2
75
six==1.12.0

rethinkdb/__init__.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
import os
15-
1615
import imp
16+
import pkg_resources
1717

1818
from rethinkdb import errors, version
19-
from rethinkdb import net
20-
import pkg_resources
2119

2220

2321
# The builtins here defends against re-importing something obscuring `object`.
@@ -35,7 +33,16 @@ class RethinkDB(builtins.object):
3533
def __init__(self):
3634
super(RethinkDB, self).__init__()
3735

38-
from rethinkdb import _dump, _export, _import, _index_rebuild, _restore, ast, query, net
36+
from rethinkdb import (
37+
_dump,
38+
_export,
39+
_import,
40+
_index_rebuild,
41+
_restore,
42+
ast,
43+
query,
44+
net
45+
)
3946

4047
self._dump = _dump
4148
self._export = _export

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@
9494
'rethinkdb-repl = rethinkdb.__main__:startInterpreter'
9595
]
9696
},
97-
setup_requires=['pytest-runner'],
98-
test_suite='tests',
99-
tests_require=['pytest']
97+
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
98+
install_requires=[
99+
'six'
100+
],
101+
test_suite='tests'
100102
)

0 commit comments

Comments
 (0)