简体   繁体   English

将新的Python版本引入conda-forge原料

[英]Introduce new Python version to conda-forge feedstock

A conda package I rely on is available in the conda-forge channel (=there exists a feedstock already) but not yet for the Python version xy . 我依赖的conda包可以在conda-forge通道中找到 (=已经存在一个原子)但是还没有用于Python版xy Which steps need to be taken to bring it to that version on conda-forge? 需要采取哪些步骤才能将它带到conda-forge上的那个版本?

As pointed out by Anthony Scopatz one needs to locally update the feedstock with conda-smithy and bring these changes to the appropriate branch on GitHub. 正如安东尼Scopatz一个指出需要在本地更新与原料conda-smithy ,并把这些变化在GitHub上适当的分支。

The steps in detail are: 详细步骤如下:

  1. Clone the repo. 克隆回购。

  2. Install (or update) conda-smithy in your root environment: 在根环境中安装(或更新) conda-smithy

     conda (source) deactivate conda install conda-smithy conda install conda=4.2 # see below 
  3. Rerender the feedstock from your root environment: 从根环境中重新放入原料:

     cd <feedstock-repo>/ conda smithy rerender 

    You might see warnings about missing tokens to CI services and anaconda, but you can safely ignore these. 您可能会看到有关CI服务和anaconda缺少令牌的警告,但您可以放心地忽略这些。

  4. Commit all changes, push them to your Github fork, and open a pull request. 提交所有更改,将它们推送到您的Github fork,然后打开pull请求。

  5. After the pull request gets merged, the package gets build by the CI servers which might take several hours depending on their queues. 拉取请求合并后,包将由CI服务器构建,这可能需要几个小时,具体取决于其队列。 Eventually the package should be available for the Python version xy . 最终,该软件包应该可用于Python版本xy


The currently most recent version of conda, 4.3.14 is not supported by conda-smithy . conda-smithy 不支持当前最新版本的conda,4.3.14。 Hence as a workaround, a downgrade to conda 4.2 is currently necessary. 因此,作为一种解决方法,目前需要降级到conda 4.2。

您应该在新分支上本地原料conda smithy rerender中运行conda smithy rerender ,将其推送到您的fork,然后打开pull请求。

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

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