You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在conda-forge recipe中设置pytest插件的入口点?

pytest插件entry-point的conda-forge recipe配置方法

你只需要在conda-forge recipe的meta.yaml文件的build区段下,添加entry_points字段,对应pyproject.toml里的pytest入口点即可,具体配置有两种写法:

写法一(推荐,与pyproject.toml结构对应)

build:
  entry_points:
    pytest11:
      copie = pytest_copie.plugin

写法二(单行格式)

build:
  entry_points:
    - copie = pytest_copie.plugin [pytest11]

补充说明:如果你的项目已经通过pyproject.toml正确配置了entry-points,conda-build在构建时会自动读取并处理这些配置,无需手动在meta.yaml中重复定义。但手动添加可以让配置更明确,也能兼容部分特殊构建场景。

内容的提问来源于stack exchange,提问作者Pierrick Rambaud

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.06 10:42:36