简体   繁体   中英

From PyPi to Conda-Forge

I used cookiecutter to create a simple python package that I pushed to Pypi. Next I want to get the package into the Conda ecosystem and found the conda-forge channel really powerful. My only problem is that publishing to conda-forge requires a couple of manual steps including rewriting part of a meta.yaml file. Is there a better way to do this?

My current approach:

  1. Create Conda Recipe (meta.yaml) using Conda Skeleton
  2. Fork Conda Forge Staged Recipes
  3. Manually edit some lines in the meta.yaml since conda skeleton recipe is slightly different than what is accepted by conda-forge.
  4. Create a Pull Request for conda forge staged recipes.

Ideally I would like to sync pypi with conda-forge without any manual steps. This is probably not possible but suggestions are very welcome.

This is presently possible if you use a tool called rever . This will allow automatic releases to pypi and conda-forge for a library you own. conda-forge uses this internally to release things like conda-smithy

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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