Skip to content

Commit 85410c9

Browse files
authored
PYTHON-3030 Add support for PyMongo 4.0 (#38)
1 parent 6d15501 commit 85410c9

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

bindings/python/README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ installed::
6060
Currently, PyMongoArrow wheels are only available for macOS and Linux
6161
on x86_64 architectures.
6262

63+
Development Install
64+
===================
65+
66+
See the instructions on `Read the Docs <https://mongo-arrow.readthedocs.io/en/latest/developer/installation.html>`_.
67+
6368
Documentation
6469
=============
6570
Full documentation is available on `Read the Docs <https://mongo-arrow.readthedocs.io/en/latest/>`_.

bindings/python/docs/source/developer/installation.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,14 @@ On macOS, users can install the latest ``libbson`` via Homebrew::
4545
Build
4646
-----
4747

48-
In the previously created virtualenv, we first install all build dependencies
48+
In the previously created virtualenv, we first install all build and test dependencies
4949
of PyMongoArrow::
5050

51-
(pymongoarrow) $ pip install -r requirements/build.txt
51+
(pymongoarrow) $ pip install -r requirements/test.txt
52+
53+
We also need the pyarrow library symlinks, which can be created as follows::
54+
55+
(pymongoarrow) $ python -c 'import pyarrow as pa; pa.create_library_symlinks()'
5256

5357
We can now install ``pymongoarrow`` in **development mode** as follows::
5458

bindings/python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Keep these dependencies synced with those in requirements/*.txt
1919
PYARROW_DEP = 'pyarrow>=6,<6.1'
20-
PYMONGO_DEP = 'pymongo>=3.11,<4'
20+
PYMONGO_DEP = 'pymongo>=3.11,<5'
2121
INSTALL_REQUIRES = [PYARROW_DEP, PYMONGO_DEP]
2222
SETUP_REQUIRES = ['setuptools>=47', 'cython>=0.29', PYARROW_DEP]
2323

0 commit comments

Comments
 (0)