实现各种Python打包标准的包
mousebender的Python项目详细描述
用于安装完全指定的Python包的包。在
包装内容
- mousebender.simple–用于simple repository API的解析器
本项目的目标
我们的目标是提供一个包,它可以通过一个API(或者换句话说,使用pip本身安装pipw/o需要什么?)将所有依赖项安装为冻结状态。这避免了依赖pip的CLI进行安装,而是提供了一个编程API。它还可以帮助发现规范和/或包中的任何漏洞,从而为基于标准的Python包安装提供全面支持。在
安装软件包的步骤
弄清楚哪些包是必需的
在For an app, read lock file (?)
For a package:
在- Read list of dependencies (?)
- Solve dependency constraints (ResolveLib)
安装车轮
在Check if package is already installed (spec / importlib-metadata)
Check local wheel cache (?; how pip does it)
Choose appropriate file from PyPI/index
在Process the list of files (simple repository API / mousebender.simple)
Calculate best-fitting wheel (spec / packaging.tags)
If no wheel found …
在
下载轮子
在本地缓存轮子(?)在
在
安装车轮
- 安装文件(spec/distlib.wheel)
- 记录安装(spec/?)在
- 项目
标签: