Python Testing with pytest, Second Edition: cards pip install error (page 12)

#book-python-testing-with-pytest-second-edition

Hi. Thanks for writing the book. I am just learning so this might just of been an issue for me but I figured I would post anyway as it is currently in beta.

$ cd /path/to/code

$ python -m venv venv

$ source venv/bin/activate

(venv) $ pip install ./cards_proj/

When installing the cards project for chapter 2 on page 31. I get a error that there is no README.md file.

Error: flit_core.inifile.ConfigError: Description file README.md does not exist

Adding an empty file with a title of README.md to the cards_proj directory fixes the issue and allows you to run the install.

2 Likes

I had the same issue, and fixed it in a similar fashion

1 Like

Thanks for bringing this up, and coming up with a workaround.
Looks like I forgot to push the README.md file into the repo.

The workaround: add a /cards_proj/README.md file (can be empty) works great.
But I’ll include a proper README.md on the next update.

Got same issue, with your workaround resolved thanks.

1 Like