Documentation for running tox tests misses poetry note #2385
Description
I hit an unexpected CI failure in only Python3.11 on a PR this morning. I tried following the directions in this box in a totally fresh clone of rdflib under /tmp
, to locally reproduce the issue:
https://rdflib.readthedocs.io/en/latest/developers.html#using-tox
(An aside - The first command tox -e
appears to have changed its behavior since the documentation was written. That flag now requires a value.)
It seems there is an unstated dependency on poetry
, because when I tried running tox -e py311
, I got an unexplained failure when poetry
attempted to grab a lock. The failure seems to be that poetry
wasn't installed.
Here were my commands:
cd /tmp
git clone https://github.com/RDFLib/rdflib.git
cd rdflib
python3.11 -m venv venv
source venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install tox
tox -e py311
The last lines of the test output were:
py311: commands_pre[1]> poetry lock --check
py311: exit 2 (0.00 seconds) /private/tmp/rdflib> poetry lock --check
.pkg: _exit> python /private/tmp/rdflib/venv/lib/python3.11/site-packages/pyproject_api/_backend.py True poetry.core.masonry.api
py311: FAIL code 2 (20.18=setup[19.44]+cmd[0.74,0.00] seconds)
evaluation failed :( (20.26 seconds)
Should that documentation box be updated to read pip install tox poetry
; or is there some other configuration file that was supposed to have taken care of this automatically?