@@ -28,21 +28,22 @@ will kickoff and do the rest for you.
2828Tools
2929************************************************
3030
31- tox devenv -e local
31+ nox -s local
3232================================================
3333
34- I highly recommend using the local tox environment when doing python development. It'll save you hours
34+ I highly recommend using the local nox session when doing python development. It'll save you hours
3535of lost productivity the first time it keeps you from pulling in an unexpected dependency from your
36- global python environment. You can install tox from brew on osx or apt-get on GNU/Linux . I'd
36+ global python environment. You can install nox from brew on osx or pip on any platform . I'd
3737recommend the following environment for vscode::
3838
3939 git submodule update --init --recursive
40- tox devenv -e local
41- source venv/bin/activate
40+ pip install nox
41+ nox -s local
42+ source .nox/local/bin/activate
4243
4344On Windows that last line is instead::
4445
45- ./venv/ Scripts/ activate
46+ .\.nox\local\ Scripts\ activate
4647
4748cmake
4849================================================
@@ -58,15 +59,16 @@ To use vscode you'll need:
5859
59601. vscode
60612. install vscode command line (`Shell Command: Install `)
61- 3. tox
62+ 3. nox
62634. cmake (and an available GCC or Clang toolchain, or Docker to use our toolchain-as-container)
6364
6465Do::
6566
6667 cd path/to/nunavut
6768 git submodule update --init --recursive
68- tox devenv -e local
69- source venv/bin/activate
69+ pip install nox
70+ nox -s local
71+ source .nox/local/bin/activate
7072 code .
7173
7274Then install recommended extensions.
@@ -75,15 +77,15 @@ Then install recommended extensions.
7577Running The Tests
7678************************************************
7779
78- To run the full suite of `tox `_ tests locally you'll need docker. Once you have docker installed
80+ To run the full suite of `nox `_ tests locally you'll need docker. Once you have docker installed
7981and running do::
8082
8183 git submodule update --init --recursive
8284 docker pull ghcr.io/opencyphal/toxic:tx22.4.3
83- docker run --rm -v $PWD:/repo ghcr.io/opencyphal/toxic:tx22.4.3 tox
85+ docker run --rm -v $PWD:/repo ghcr.io/opencyphal/toxic:tx22.4.3 /bin/sh -c "pip install nox && nox"
8486
8587To run a limited suite using only locally available interpreters directly on your host machine,
86- skip the docker invocations and use ``tox run -s ``.
88+ skip the docker invocations and use ``nox ``.
8789
8890To run the language verification build you'll need to use a different docker container::
8991
@@ -210,13 +212,13 @@ Building The Docs
210212************************************************
211213
212214We rely on `read the docs `_ to build our documentation from github but we also verify this build
213- as part of our tox build. This means you can view a local copy after completing a full, successful
215+ as part of our nox build. This means you can view a local copy after completing a full, successful
214216test run (See `Running The Tests `_) or do
215- :code: `docker run --rm -t -v $PWD:/repo ghcr.io/opencyphal/toxic:tx22.4.3 /bin/sh -c "tox run -e docs" ` to build
216- the docs target. You can open the index.html under ``.tox_{host platform} /docs/tmp/index.html `` or run a local
217+ :code: `docker run --rm -t -v $PWD:/repo ghcr.io/opencyphal/toxic:tx22.4.3 /bin/sh -c "pip install nox && nox -s docs" ` to build
218+ the docs target. You can open the index.html under ``.nox /docs/tmp/index.html `` or run a local
217219web-server::
218220
219- python3 -m http.server --directory .tox_{host platform} /docs/tmp &
221+ python3 -m http.server --directory .nox /docs/tmp &
220222 open http://localhost:8000/docs/index.html
221223
222224Of course, you can just use `Visual Studio Code `_ to build and preview the docs using
@@ -227,25 +229,25 @@ Of course, you can just use `Visual Studio Code`_ to build and preview the docs
227229Coverage and Linting Reports
228230************************************************
229231
230- We publish the results of our coverage data to `sonarcloud `_ and the tox build will fail for any mypy
231- or black errors but you can view additional reports locally under the :code: `.tox_{host platform} ` dir.
232+ We publish the results of our coverage data to `sonarcloud `_ and the nox build will fail for any mypy
233+ or black errors but you can view additional reports locally under the :code: `.nox ` dir.
232234
233235Coverage
234236================================================
235237
236- We generate a local html coverage report. You can open the index.html under .tox_{host platform} /report/tmp
238+ We generate a local html coverage report. You can open the index.html under .nox /report/tmp
237239or run a local web-server::
238240
239- python -m http.server --directory .tox_{host platform} /report/tmp &
241+ python -m http.server --directory .nox /report/tmp &
240242 open http://localhost:8000/index.html
241243
242244Mypy
243245================================================
244246
245247At the end of the mypy run we generate the following summaries:
246248
247- - .tox_{host platform}/mypy /tmp/mypy-report-lib/index.txt
248- - .tox_{host platform}/mypy /tmp/mypy-report-script/index.txt
249+ - .nox/lint /tmp/mypy-report-lib/index.txt
250+ - .nox/lint /tmp/mypy-report-script/index.txt
249251
250252************************************************
251253Nunavut Verification Suite
@@ -326,7 +328,7 @@ three variables you can set in your environment or pass into cmake if using cmak
326328All other options set when generating code are provided by setting ``NUNAVUT_EXTRA_GENERATOR_ARGS `` in your environment.
327329
328330.. _`read the docs` : https://readthedocs.org/
329- .. _`tox ` : https://tox.readthedocs.io /en/latest /
331+ .. _`nox ` : https://nox.thea.codes /en/stable /
330332.. _`sonarcloud` : https://sonarcloud.io/dashboard?id=OpenCyphal_nunavut
331333.. _`OpenCyphal website` : http://opencyphal.org
332334.. _`OpenCyphal forum` : https://forum.opencyphal.org
0 commit comments