maphew

Leo conda package procedure #1573

2020-Apr-20

make Leo conda package as part of standard release procedure #1573

From <https://github.com/leo-editor/leo-editor/issues/1573>

((register with Anaconda for an account))

Conda activate
Conda install conda-build m2-patch ripgrep conda-verify curl
conda install openssl -c conda-forge
Conda create -n leo-dev
Conda activate leo-dev

 

conda skeleton pypi leo

…failed because semantic_version not available.

conda skeleton pypi doesn't care about your current env nor does it use _build, but instead creates a temporary env in which to attempt to install the package and eventually output a recipe. One can add additional requirements to the temporary env using the --extra-specs flag. In your case, this should be something like

conda skeleton pypi --extra-specs numpy mf2

From <https://stackoverflow.com/questions/59649808/conda-skeleton-pypi-modulenotfounderror-no-module-named-numpy>

 

conda skeleton pypi --output-dir . --extra-specs semantic_version leo

And then:

Package python conflicts for:

python=3.6
semantic_version -> python[version='>=3.7,<3.8.0a0']

=======

curl -sL https://github.com/leo-editor/leo-editor/archive/conda.tar.gz ^
  -o leo-editor-conda.tar.gz

 

Sources

This document presents an overview over how to contribute packages to conda-forge.

From <https://conda-forge.org/docs/maintainer/adding_pkgs.html#>