Add ability to optionally ignore dev dependencies in Setuptools projects
Release notes
TODO
Problem to solve
When Dependency Scanning runs on Setuptools projects, it does not include development dependencies. In contrast, NPM projects with dependency scanning will include devDependencies if the option to do so is enabled. To prevent feature drift, Pipenv should also support for optionally installing development dependencies.
Intended users
- Sasha (Software Developer)
- Priyanka (Platform Engineer)
- Sam (Security Analyst)
- Alex (Security Operations Engineer)
Proposal
- Update
setuptools.Buildso that it implements theConfigurableinterface.- The
setuptools.Buildershould have anIncludeDev boolfield. - In the
Configure(ctx *cli.Context)implementation, it should configure the builder by utilizing theDS_INCLUDE_DEV_DEPENDENCIESvalue.
- The
- Update
setuptools.Buildso that it installs development dependencies only ifb.IncludeDevis true.
Documentation
- Update the documentation in Configuring specific analyzers used by dependency scanning to mention support for Setuptools projects.
Availability & Testing
- Add Setuptools unit tests that cover both cases where
DS_INCLUDE_DEV_DEPENDENCIESis set totrueandfalse. -
Setuptools integration tests should be updated to include cases where
DS_INCLUDE_DEV_DEPENDENCIESis set tofalse.
Edited by Oscar Tovar