Instructions for building conda recipe for pySBOL2.
The conda package manager should have been installed. For fresh instructions, see the conda user guide.
- Set up conda environment for building the package
# From the recipe sub folder
conda env create --file recipe/conda_build_env.yaml -n conda_build_env
- Build
# Few variables for convenience
CONDA_BLD_PATH=/tmp/conda-bld
PLATFORM=$(conda info | grep platform | sed 's/.*platform : //')
PACKAGE=sbol2
# From the recipe sub folder
conda activate conda_build_env
conda build recipe --output-folder ${CONDA_BLD_PATH}
- Convert for other platform
conda convert \
--platform osx-64 \
--platform linux-64 \
--platform win-64 \
--output-dir ${CONDA_BLD_PATH} \
${CONDA_BLD_PATH}/${PLATFORM}/${PACKAGE}-*.tar.bz2
- Publish
source .secrets
anaconda \
--token ${ANACONDA_TOKEN} \
upload \
--user ${ANACONDA_USER} \
--label main \
${CONDA_BLD_PATH}/*/${PACKAGE}-*.tar.bz2
When ever a new version is released on pypi, here how to proceed:
- Update
{% set version = "1.2" %}
to the correct number inrecipe/meta.yaml
. - Repeat steps 1-3 from above.
Content generated with the help of Grayskull.