在pypi世界中发现包依赖项的工具和库
thoth-solver的Python项目详细描述
在Thoth project中使用的依赖项解算器。
项目范围
这个项目的目的是回答一个简单的问题-什么包将 是否已为提供的堆栈安装(由PIP解决)?
假设您的应用程序有一个依赖项:
$ cat requirements.txt tensorflow
此项目将告诉您如何解决依赖关系:
thoth-solver -vvv pypi -r requirements.txt
输出可以在here找到。
您还可以选择指定一个索引列表,该列表应针对每个包进行检查。
安装和部署
git clone git@github.com:thoth-station/solver.git thoth-solver
cd thoth-solver
PYTHONPATH='.' ./thoth-solver-cli --help
这个项目也发布于 PyPI,所以最新版本可以是 通过PIP或Pipenv安装:
pipenv install thoth-solver
solver在thoth中运行,以收集有关包依赖项的信息。你 可以在 solver’s Git repository的根。这个 实际部署是使用 Thoth’s core repository。