mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1k stars 157 forks source link

Update Conda recipe #554

Closed benoit-cty closed 1 month ago

benoit-cty commented 1 month ago
benoit-cty commented 1 month ago

Looks good to me! How to test the .conda/meta.yaml? Only by running it n?

Thanks, I tested the build by following the contributing.md instruction:

Start a Docker image in the same directory and bind-mount the current directory with: docker run -ti --rm=true -v $PWD:/data continuumio/anaconda3

Inside the docker container, run:

    conda install -y conda-build conda-verify conda-forge::hatchling
    cd /data && mkdir -p /conda_dist
    conda build --python 3.11 .conda/ -c conda-forge --output-folder /conda_dist

This way the package is build but not send to Conda repo.