[英]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:我目前的做法:
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.