Packaging¶
Packaging with conda
¶
To package timagetk
and upload it to anaconda cloud use the provided recipe in the conda/
folder with conda-build
.
To upload you need to log in first with anaconda login
, we recommend that you follow the official conda package upload instructions.
Important
Building conda package should be done in the base
environment!
Make sure you have
conda-build
installed in yourbase
environment:conda activate base conda install conda-build
Call the conda build command, here from the root
timagetk
directory:conda build conda/recipe/. -c conda-forge -c morpheme -c mosaic
Convert for OSX:
conda convert --platform osx-64 ~/miniconda3/conda-bld/linux-64/timagetk-3* -o ~/miniconda3/conda-bld/
To upload to the
mosaic
channel:anaconda upload ~/miniconda3/conda-bld/linux-64/timagetk-3* --user mosaic anaconda upload ~/miniconda3/conda-bld/osx-64/timagetk-3* --user mosaic
To clean your system after a build:
conda build purge
Note
Search in miniconda3/conda-bld/
to see what’s left in the build directory.
Packaging with pip
¶
Currently, no packaging with pip
.
Resources¶
Package structure: https://docs.python.org/3/tutorial/modules.html#packages