@@ -25,7 +25,7 @@ PyMongoArrow uses [Ruff](https://docs.astral.sh/ruff/) for formatting and lintin
25
25
- Avoid backward breaking changes if at all possible.
26
26
- Write inline documentation for new classes and methods.
27
27
- 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
29
29
line to run the test suite).
30
30
- Add yourself to doc/contributors.rst ` :) `
31
31
@@ -144,18 +144,16 @@ Windows is not yet supported.
144
144
145
145
First, clone the mongo-arrow git repository:
146
146
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
150
150
```
151
151
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 :
154
154
155
- ``` bash
156
- $ virtualenv pymongoarrow
157
- $ source ./pymongoarrow/bin/activate
158
- $ pip install tox
155
+ ``` bash
156
+ just install
159
157
```
160
158
161
159
### libbson
@@ -170,7 +168,7 @@ properly configured for use with `pkg-config`, or use the provided
170
168
` build-libbson.sh ` script to build it:
171
169
172
170
``` bash
173
- $ LIBBSON_INSTALL_DIR= $( pwd ) /libbson tox -e build-libbson
171
+ just build-libbson
174
172
```
175
173
176
174
On 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.
190
188
191
189
## Build
192
190
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
194
192
directly, but you can build and test in the created virtualenv.
195
193
196
194
In the previously created virtualenv, to install PyMongoArrow and its
197
195
test dependencies in editable mode:
198
196
199
- ``` bash
200
- (pymongoarrow) $ pip install -v -e " .[test]"
197
+ ``` bash
198
+ pip install -v -e " .[test]"
201
199
```
202
200
203
201
If 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
211
209
To run the test suite, you will need a MongoDB instance running on
212
210
` localhost ` using port ` 27017 ` . To run the entire test suite, do:
213
211
214
- ``` bash
215
- (pymongoarrow) $ tox -e test
212
+ ``` bash
213
+ just test
216
214
```
217
215
218
- or, if not using ` tox ` :
216
+ or, if not using ` just ` :
219
217
220
218
> (pymongoarrow) \$ pytest
221
219
@@ -228,15 +226,14 @@ consistent code style within the codebase.
228
226
229
227
To set up ` pre-commit ` locally, run:
230
228
231
- ``` bash
232
- (pymongoarrow) $ pip install pre-commit
233
- (pymongoarrow) $ pre-commit install
229
+ ``` bash
230
+ just install
234
231
```
235
232
236
233
To run ` pre-commit ` manually, run:
237
234
238
- ``` bash
239
- (pymongoarrow) $ tox -e lint
235
+ ``` bash
236
+ just lint
240
237
```
241
238
242
239
## Running Benchmarks
@@ -246,12 +243,12 @@ To run `pre-commit` manually, run:
246
243
To run the benchmarks, you need the [ asv] ( https://pypi.org/project/asv/ )
247
244
package, which can then be invoked like so:
248
245
249
- ``` bash
246
+ ``` bash
250
247
asv run --strict --python=` which python`
251
248
```
252
249
253
- or you can run with tox as:
250
+ or you can run with just as:
254
251
255
- ``` bash
256
- tox -e benchmarks
252
+ ``` bash
253
+ just benchmark
257
254
```
0 commit comments