What is pipenv [dev-packages] section for?

Jim picture Jim · Nov 23, 2018 · Viewed 9.5k times · Source

I'm learning pipenv and there's something I don't quite understand. Apparently your Pipfile can contain two sections:

[packages]
...

[dev-packages]
....

As I understand it, the packages section is where the packages that you install are listed. But what is the dev-packages section for? How is it different from the packages section?

Answer

Andrew Morozko picture Andrew Morozko · Nov 23, 2018

This section is for development requirements. So stuff like linters, unit test libraries, etc. All that is not needed on user's machine.

To install package as dev-requirement add -d to install command, to install the dev-requirements section add -d to sync command.