跳转到主要内容

为Poetry项目生成Homebrew公式

项目描述

poetry-brew

PyPI - Python Version PyPI GitHub release (latest SemVer) PyPI - License

poetry-brew是一个 Poetry 插件,用于为Poetry项目生成Homebrew公式。

安装

poetry self add poetry-brew

需求

poetry-brew只能为满足以下标准的包生成公式

  • 该包必须发布在PyPI上。
  • pyproject.tomlpoetry.lock 必须存在于运行 poetry brew 的目录中。
  • pyproject.toml 必须指定 tool.poetry.nametool.poetry.versiontool.poetry.dependencies.python 的值。
    • tool.poetry.name 必须与PyPI上包的名称不区分大小写匹配。
    • tool.poetry.version 必须与已发布在PyPI上的包的版本匹配。有关完整用法信息,请运行 poetry brew --help

用法

poetry brew

poetry brew 支持与 poetry install 功能相同的 --with--without--only 选项。有关完整用法信息,请运行 poetry brew --help

配置

可以通过在 pyproject.toml 中的 tool.brew.config 部分进行配置。

[tool.brew.config]
dependencies = []

支持选项

  • dependencies (列表,默认值: []): 包依赖的其他Homebrew公式的列表。

许可协议

poetry-brew遵循MIT许可协议

项目详情


下载文件

下载适合您平台文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源代码分发

poetry_brew-1.0.3.tar.gz (4.8 kB 查看哈希值)

上传时间 源代码

构建分发

poetry_brew-1.0.3-py3-none-any.whl (5.5 kB 查看哈希值)

上传时间 Python 3

支持者