Skip to content

Commit 84d6ebb

Browse files
authored
PYTHON-3399 Add launch.py to mongo-orchestration (#306)
1 parent e8bfd8f commit 84d6ebb

File tree

11 files changed

+497
-109
lines changed

11 files changed

+497
-109
lines changed

.evergreen/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ functions:
9494
type: test
9595
params:
9696
working_dir: "src"
97+
shell: "bash"
9798
script: |
9899
${PREPARE_SHELL}
99-
.venv/bin/python -m pytest ${PYTEST_ARGS}
100+
. .venv/bin/activate
101+
pytest ${PYTEST_ARGS}
100102
101103
"install dependencies":
102104
- command: shell.exec
@@ -105,8 +107,7 @@ functions:
105107
script: |
106108
${PREPARE_SHELL}
107109
python3 -m venv .venv
108-
.venv/bin/python -m pip install -e .
109-
.venv/bin/python -m pip install pytest
110+
.venv/bin/python -m pip install -e ".[test]"
110111
111112
pre:
112113
- func: "fetch source"

README.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Features
2121
- Freeze secondary members of replica sets.
2222
- Retrieve information about MongoDB resources.
2323
- Interaction all through REST interface.
24+
- Launch simple local servers using ``mongo-launch`` CLI tool.
2425

2526
Requires
2627
--------
@@ -189,6 +190,22 @@ piping the response into ``python -m json.tool``, e.g.:
189190
// etc.
190191
}
191192

193+
Mongo Launch
194+
------------
195+
196+
The ``mongo-launch`` CLI tool allows you to spin up servers locally
197+
with minimal configuration.
198+
199+
..
200+
201+
mongo-launch --help
202+
Usage: launch.py [single|replica|shard] [ssl] [auth]
203+
204+
..
205+
206+
mongo-orchestration start
207+
mongo-launch replica ssl auth
208+
192209
Tests
193210
-----
194211

@@ -225,6 +242,7 @@ Changelog
225242
Changes in Version 0.8.0 (TBD)
226243
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
227244

245+
- Add ``mongo-launch`` CLI tool.
228246
- Upgrade to PyMongo 4.x and set up GitHub Actions testing.
229247
- Remove support for managing MongoDB 3.4 or earlier servers.
230248
- Remove support for Python 3.5 or earlier.

0 commit comments

Comments
 (0)