如何在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
相关产品推荐
相关产品推荐

