Installing this package will install the pydep
command which is a group of commands that enables
you to scan the code in your python repository to determine which packages (in your env) your code
actually depends on and to update dependencies tracked in the repo.
pydep update
NOTE: all the commands and subcommands support
--help
Your repo must be structured according to PEP recommendations. In specifc the following critera must be met.
__init__.py
file__init__.py
file and submodules should not skip folder levels;
i.e. you can't have a/b/c/__init__.py
without a/b/__init__.py
requriements.txt
, setup.cfg
, or pyproject.toml
files at in
the root folder for the update command to work
setup.py
is (deprecated but) valid, this tool does not support in place modification
of those files due to obvious reasonspydep list
This command scans the repository path (default .
) and provides information about packages that
are used (directly through imports) in the repository and which python source files they are used
in. This command also lists any imports that could not be mapped to a package in the current
enviornment.
pydep update
Updates any requriements.txt
, setup.cfg
, or pyproject.toml
files found at the specified
repository path (default .
). The files must be formated as per their specific implementation
guidelines; however, if the dependencies or install_requires field is missing in pyproject.toml
or
setup.cfg
the update command will create them