Python Testing with pytest, Second Edition: error when installing editable package (page 178)

When installing Cards as an editable package, I get the following error:

ERROR: File “setup.py” not found. Directory cannot be installed in editable mode: /home/bruno/Projects/sandbox/pytestboo
k/ch13/cards_proj
(A “pyproject.toml” file was found, but editable mode currently requires a setup.py based build.)

This is probably due to the fact that the default python on my machine is 3.8 and that’s the version used in the venv. If this only works from v3.9 or 3.10, it would be good to mention it here and maybe offer some other options to do this.

yep. Gotta have a pretty new pip version. I added a note to several sections.