Azure SDK for Python Conda Distributions
The azure-sdk team maintains a suite of conda recipes built from combinations of other official pypi packages released from this repository. These packages are released on a 3-month cadence, built from a single configuration present in eng/pipelines/templates/stages/conda-sdk-client.yml
.
The value of CondaArtifacts
parameter is serialized to json, then consumed by the tooling CLI to create a set of conda packages.
Local Environment Setup
Follow the instructions here to install conda
and conda-build
.
CI Build Process
- Update
CondaArtifacts
parameters as necessary withineng/pipelines/templates/stages/conda-sdk-client.yml
. - If necessary, add or update the conda recipes present under
/conda/conda-recipes
. - Update
eng/conda_env.yml
variableAZURESDK_CONDA_VERSION
to the target version you wish to release. - Invoke python - conda manually, checking off which packages you wish to release.
- Once built, approve the packages for release individually, there will be pending approval stages.
How to Build an Azure SDK Conda Package Locally
Install the required tooling
# cd <repo root>
pip install "tools/azure-sdk-tools[build,conda]"
Get the configuration blob
To generate a configuration blob, I personally just use this site.
Paste a snippet copy-pasted from conda-sdk-client.yml
. Use the output json as an argument to sdk_build_conda
as described below.
Generate the Conda Package
# you will probably need to escape the json quotes
sdk_build_conda -c "<json config blob>" --channel "additional/channel/if/you/want/one"