@@ -25,7 +25,7 @@ PyMongoArrow uses [Ruff](https://docs.astral.sh/ruff/) for formatting and lintin
2525- Avoid backward breaking changes if at all possible.
2626- Write inline documentation for new classes and methods.
2727- Write tests and make sure they pass (make sure you have a mongod
28- running on the default port, then execute ` tox -e test` from the cmd
28+ running on the default port, then execute ` just test` from the cmd
2929 line to run the test suite).
3030- Add yourself to doc/contributors.rst ` :) `
3131
@@ -144,18 +144,16 @@ Windows is not yet supported.
144144
145145First, clone the mongo-arrow git repository:
146146
147- ``` bash
148- $ git clone https://github.com/mongodb-labs/mongo-arrow.git
149- $ cd mongo-arrow/bindings/python
147+ ``` bash
148+ git clone https://github.com/mongodb-labs/mongo-arrow.git
149+ cd mongo-arrow/bindings/python
150150```
151151
152- Additionally, create a virtualenv in which to install ` pymongoarrow `
153- from sources :
152+ Ensure you have [ just ] ( https://just.systems/man/en/introduction.html ) and [ uv ] ( https://docs.astral.sh/uv/getting-started/installation/ ) installed.
153+ Then run :
154154
155- ``` bash
156- $ virtualenv pymongoarrow
157- $ source ./pymongoarrow/bin/activate
158- $ pip install tox
155+ ``` bash
156+ just install
159157```
160158
161159### libbson
@@ -170,7 +168,7 @@ properly configured for use with `pkg-config`, or use the provided
170168` build-libbson.sh ` script to build it:
171169
172170``` bash
173- $ LIBBSON_INSTALL_DIR= $( pwd ) /libbson tox -e build-libbson
171+ just build-libbson
174172```
175173
176174On macOS, users can install the latest ` libbson ` using Homebrew:
@@ -190,14 +188,14 @@ you try to build with a lower version a `ValueError` will be raised.
190188
191189## Build
192190
193- Typically we will use the provided ` tox ` scripts and will not build
191+ Typically we will use the provided ` just ` scripts and will not build
194192directly, but you can build and test in the created virtualenv.
195193
196194In the previously created virtualenv, to install PyMongoArrow and its
197195test dependencies in editable mode:
198196
199- ``` bash
200- (pymongoarrow) $ pip install -v -e " .[test]"
197+ ``` bash
198+ pip install -v -e " .[test]"
201199```
202200
203201If you built libbson using the ` build-libbson ` script then use the same
@@ -211,11 +209,11 @@ If you built libbson using the `build-libbson` script then use the same
211209To run the test suite, you will need a MongoDB instance running on
212210` localhost ` using port ` 27017 ` . To run the entire test suite, do:
213211
214- ``` bash
215- (pymongoarrow) $ tox -e test
212+ ``` bash
213+ just test
216214```
217215
218- or, if not using ` tox ` :
216+ or, if not using ` just ` :
219217
220218> (pymongoarrow) \$ pytest
221219
@@ -228,15 +226,14 @@ consistent code style within the codebase.
228226
229227To set up ` pre-commit ` locally, run:
230228
231- ``` bash
232- (pymongoarrow) $ pip install pre-commit
233- (pymongoarrow) $ pre-commit install
229+ ``` bash
230+ just install
234231```
235232
236233To run ` pre-commit ` manually, run:
237234
238- ``` bash
239- (pymongoarrow) $ tox -e lint
235+ ``` bash
236+ just lint
240237```
241238
242239## Running Benchmarks
@@ -246,12 +243,12 @@ To run `pre-commit` manually, run:
246243To run the benchmarks, you need the [ asv] ( https://pypi.org/project/asv/ )
247244package, which can then be invoked like so:
248245
249- ``` bash
246+ ``` bash
250247asv run --strict --python=` which python`
251248```
252249
253- or you can run with tox as:
250+ or you can run with just as:
254251
255- ``` bash
256- tox -e benchmarks
252+ ``` bash
253+ just benchmark
257254```
0 commit comments