简体   繁体   English

从 PyPi 到 Conda-Forge

[英]From PyPi to Conda-Forge

I used cookiecutter to create a simple python package that I pushed to Pypi.我使用cookiecutter创建了一个简单的 python 包,并将其推送到 Pypi。 Next I want to get the package into the Conda ecosystem and found the conda-forge channel really powerful.接下来我想把这个包加入到 Conda 生态系统中,发现 conda-forge 频道真的很强大。 My only problem is that publishing to conda-forge requires a couple of manual steps including rewriting part of a meta.yaml file.我唯一的问题是发布到 conda-forge 需要几个手动步骤,包括重写 meta.yaml 文件的一部分。 Is there a better way to do this?有没有更好的方法来做到这一点?

My current approach:我目前的做法:

  1. Create Conda Recipe (meta.yaml) using Conda Skeleton使用Conda Skeleton创建 Conda Recipe (meta.yaml)
  2. Fork Conda Forge Staged Recipes Fork Conda Forge 分阶段食谱
  3. Manually edit some lines in the meta.yaml since conda skeleton recipe is slightly different than what is accepted by conda-forge.手动编辑 meta.yaml 中的一些行,因为 conda 骨架配方与 conda-forge 接受的略有不同。
  4. Create a Pull Request for conda forge staged recipes.为 conda forge 分阶段配方创建拉取请求。

Ideally I would like to sync pypi with conda-forge without any manual steps.理想情况下,我想在没有任何手动步骤的情况下将 pypi 与 conda-forge 同步。 This is probably not possible but suggestions are very welcome.这可能是不可能的,但非常欢迎建议。

This is presently possible if you use a tool called rever .如果您使用名为rever的工具,这目前是可能的。 This will allow automatic releases to pypi and conda-forge for a library you own.这将允许为您拥有的库自动发布到 pypi 和 conda-forge。 conda-forge uses this internally to release things like conda-smithy conda-forge 在内部使用它来发布 conda-smithy 之类的东西

另一种无需编辑的方法是使用grayskull

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM