【文件属性】:
文件名称:poetry-core:Poetry PEP 517构建后端和核心实用程序
文件大小:602KB
文件格式:ZIP
更新时间:2021-03-28 03:55:52
python poetry hacktoberfest pep517 Python
诗歌核心
为开发的构建后端实现。 该项目旨在成为一个重量轻,完全合规,自包含的程序包,允许与PEP 517兼容的构建前端来构建Poetry管理的项目。
用法
在大多数情况下,此包的使用对最终用户而言是透明的,因为它是由Poetry本身或PEP 517前端(例如pip )使用的。
为了启用将poetry-core用作构建后端,必须在项目的pyproject.toml文件中包含以下片段。
[ build-system ]
requires = [ " poetry-core " ]
build-backend = " poetry.core.masonry.api "
一旦存在,像pip这样的PEP 517前端就可以从源代码构建和安装项目,而无需诗歌或任何依赖。
# install to current environment
pip install /path/to/poetry/