向 conda-forge 原料引入新的 Python 版本
Introduce new Python version to conda-forge feedstock
我依赖的 conda 包在 conda-forge channel 中可用(=已经存在原料)但 Python 版本 x.y
中还没有。需要采取哪些步骤才能将它带到 conda-forge 上的那个版本?
您应该 运行 conda smithy rerender
在本地新分支的原料回购中,将其推送到您的分叉,然后打开拉取请求。
正如 Anthony Scopatz 所指出的,需要使用 conda-smithy
在本地更新原料,并将这些更改带到 GitHub 上的适当分支。
详细步骤为:
克隆存储库。
在您的根环境中安装(或更新)conda-smithy
:
conda (source) deactivate
conda install conda-smithy
conda install conda=4.2 # see below
从您的根环境重新渲染原料:
cd <feedstock-repo>/
conda smithy rerender
您可能会看到有关缺少 CI 服务和 anaconda 令牌的警告,但您可以安全地忽略这些。
提交所有更改,将它们推送到您的 Github 分支,然后打开拉取请求。
合并拉取请求后,CI 服务器会构建包,这可能需要几个小时,具体取决于它们的队列。最终该包应该可用于 Python 版本 x.y
.
当前最新版本的 conda,4.3.14 is not supported conda-smithy
。因此,作为解决方法,目前需要降级到 conda 4.2。
我依赖的 conda 包在 conda-forge channel 中可用(=已经存在原料)但 Python 版本 x.y
中还没有。需要采取哪些步骤才能将它带到 conda-forge 上的那个版本?
您应该 运行 conda smithy rerender
在本地新分支的原料回购中,将其推送到您的分叉,然后打开拉取请求。
正如 Anthony Scopatz 所指出的,需要使用 conda-smithy
在本地更新原料,并将这些更改带到 GitHub 上的适当分支。
详细步骤为:
克隆存储库。
在您的根环境中安装(或更新)
conda-smithy
:conda (source) deactivate conda install conda-smithy conda install conda=4.2 # see below
从您的根环境重新渲染原料:
cd <feedstock-repo>/ conda smithy rerender
您可能会看到有关缺少 CI 服务和 anaconda 令牌的警告,但您可以安全地忽略这些。
提交所有更改,将它们推送到您的 Github 分支,然后打开拉取请求。
合并拉取请求后,CI 服务器会构建包,这可能需要几个小时,具体取决于它们的队列。最终该包应该可用于 Python 版本
x.y
.
当前最新版本的 conda,4.3.14 is not supported conda-smithy
。因此,作为解决方法,目前需要降级到 conda 4.2。