nextstrain / conda-base

Conda package build for nextstrain-base
https://anaconda.org/Nextstrain/nextstrain-base
1 stars 1 forks source link

ENH: As part of `./devel/build` show a diff vs the current live lockfile #13

Closed corneliusroemer closed 1 year ago

corneliusroemer commented 1 year ago

Context

When adding a package or changing version pins, it would be nice to see how this change impacts the current live environment so one can see unintended consequences.

Maybe this could also be an extra script.

This type of format could be useful for diffing:

  amply                         │ ==0.1.5 pyhd8ed1ab_0          │ 0.1.5        │ pyhd8ed1ab_0        │ conda-forge  
  googleapis-common-protos      │ ==1.57.0 pyhd8ed1ab_3         │ 1.57.0       │ pyhd8ed1ab_3        │ conda-forge  
  jsonschema                    │ ==3.2.0 pyhd8ed1ab_3          │ 3.2.0        │ pyhd8ed1ab_3        │ conda-forge  
  opt_einsum                    │ ==3.3.0 pyhd8ed1ab_1          │ 3.3.0        │ pyhd8ed1ab_1        │ conda-forge  
  peppy                         │ ==0.35.3 pyhd8ed1ab_0         │ 0.35.3       │ pyhd8ed1ab_0        │ conda-forge  
  pyopenssl                     │ ==22.1.0 pyhd8ed1ab_0         │ 22.1.0       │ pyhd8ed1ab_0        │ conda-forge  
  google-resumable-media        │ ==2.4.0 pyhd8ed1ab_0          │ 2.4.0        │ pyhd8ed1ab_0        │ conda-forge  
  paramiko                      │ ==2.12.0 pyhd8ed1ab_0         │ 2.12.0       │ pyhd8ed1ab_0        │ conda-forge  
  nbformat                      │ ==5.7.0 pyhd8ed1ab_0          │ 5.7.0        │ pyhd8ed1ab_0        │ conda-forge  
  jax                           │ ==0.3.25 pyhd8ed1ab_0         │ 0.3.25       │ pyhd8ed1ab_0        │ conda-forge  
  urllib3                       │ ==1.26.13 pyhd8ed1ab_0        │ 1.26.13      │ pyhd8ed1ab_0        │ conda-forge  
tsibley commented 1 year ago

Agreed this would be nice. I wanted it during initial development but didn't want to go off on a tangent to do it. Would be good to loop back now.

In the meantime, I've used the nice enough diff produced by Micromamba when I trial Conda runtime updates using packages from PRs, e.g. with

NEXTSTRAIN_CONDA_CHANNEL=nextstrain/label/pull-X nextstrain update conda

which looks like this.