@@ -29,6 +29,7 @@ from sources::
2929
3030 $ virtualenv pymongoarrow
3131 $ source ./pymongoarrow/bin/activate
32+ $ pip install tox
3233
3334libbson
3435^^^^^^^
@@ -41,7 +42,7 @@ Detailed instructions for building/installing ``libbson`` can be found
4142You can either use a system-provided version of ``libbson `` that is properly
4243configured for use with ``pkg-config ``, or use the provided ``build-libbson.sh `` script to build it::
4344
44- $ LIBBSON_INSTALL_DIR=$(pwd)/libbson ./ build-libbson.sh
45+ $ LIBBSON_INSTALL_DIR=$(pwd)/libbson tox -e build-libbson
4546
4647On macOS, users can install the latest ``libbson `` using Homebrew::
4748
@@ -57,22 +58,29 @@ If you try to build with a lower version a ``ValueError`` will be raised.
5758Build
5859-----
5960
60- In the previously created virtualenv, install PyMongoArrow and its test dependencies in editable mode::
61+ Typically we will use the provided ``tox `` scripts and will not build directly, but you can build and
62+ test in the created virtualenv.
63+
64+ In the previously created virtualenv, to install PyMongoArrow and its test dependencies in editable mode::
6165
6266 (pymongoarrow) $ pip install -v -e ".[test]"
6367
6468If you built libbson using the ``build-libbson `` script then use the same ``LIBBSON_INSTALL_DIR `` as above:
6569
6670 (pymongoarrow) $ LIBBSON_INSTALL_DIR=$(pwd)/libbson pip install -v -e ".[test]"
6771
68-
6972Test
7073----
7174
7275To run the test suite, you will need a MongoDB instance running on
7376``localhost `` using port ``27017 ``. To run the entire test suite, do::
7477
75- (pymongoarrow) $ python -m pytest
78+ (pymongoarrow) $ tox -e test
79+
80+ or, if not using ``tox ``:
81+
82+ (pymongoarrow) $ pytest
83+
7684
7785Running Linters
7886---------------
@@ -84,9 +92,9 @@ that help follow a consistent code style within the codebase.
8492
8593To set up ``pre-commit `` locally, run::
8694
87- pip install pre-commit
88- pre-commit install
95+ (pymongoarrow) $ pip install pre-commit
96+ (pymongoarrow) $ pre-commi t install
8997
9098To run ``pre-commit `` manually, run::
9199
92- pre-commit run --all-files
100+ (pymongoarrow) $ tox -e lint
0 commit comments