v2.1.0
pip install pigar==2.1.0
includes an experimental feature called 'requirement-annotations' that allows you to declare implicit packages/distributions by using comments:
import foo # pigar: required-imports=import_name_bar,import_name_baz
import foo # pigar: required-packages=package-name-bar,package-name-baz # Extra comments are allowed.
foo(features=['bar', 'baz']) # pigar: required-distributions=package-name-bar,package-name-baz
See what’s changed between v2.0.8 and v2.1.0.