topiary is a tool for trimming down unnecessary dependencies from pyproject.toml.
Right now it only supports poetry projects.
Run the following in the enclosing python environment (not directly in the project's poetry virtualenv):
$ pip install git+https://github.com/jjsloboda/topiary.git$ cd my_project_root
$ poetry run topiaryWill create a new pyproject.toml.new that is a copy of pyproject.toml with unnecessary package dependencies trimmed out.
$ cd my_project_root
$ poetry run topiary -iWill trim out the unnecessary package dependencies in pyproject.toml in place.