conda-forge / conda-forge-ci-setup-feedstock

A conda-smithy repository for conda-forge-ci-setup.
BSD 3-Clause "New" or "Revised" License
13 stars 53 forks source link

add inspect_artifacts command #310

Closed jaimergp closed 3 months ago

jaimergp commented 6 months ago

Checklist

conda-package-handling 2.3.0 has a new cph list subcommand I'd like to use in our pipelines to list the built packages contents. I'm adding it here first and then we can add this to the conda-smithy templates. Output should look like:

-------------------------------------------------
noarch/some-package-2024.1.1-pyha63b06e_0.tar.bz2
-------------------------------------------------
-- Size: 1.4MB
-- SHA256: 84826e5cdd795eecdb1c838cd810495710243e95dc5a45b5681ffb7c48dbe798
-- Contents:
?rw-rw-r-- 1001/121       2437 2022-11-21 21:19:20 lib/python3.8/site-packages/conda_env/cli/common.py 
?rw-rw-r-- 1001/121       2722 2022-11-21 21:19:20 lib/python3.8/site-packages/conda_env/cli/main.py 
?rw-rw-r-- 1001/121        861 2022-11-21 21:19:20 lib/python3.8/site-packages/conda_env/cli/main_config.py 
?rw-rw-r-- 1001/121       5791 2022-11-21 21:19:20 lib/python3.8/site-packages/conda_env/cli/main_create.py 
?rw-rw-r-- 1001/121       2484 2022-11-21 21:19:20 lib/python3.8/site-packages/conda_env/cli/main_export.py 
?rw-rw-r-- 1001/121        919 2022-11-21 21:19:20 lib/python3.8/site-packages/conda_env/cli/main_list.py 
?rw-rw-r-- 1001/121       1341 2022-11-21 21:19:20 lib/python3.8/site-packages/conda_env/cli/main_remove.py 
?rw-rw-r-- 1001/121       4542 2022-11-21 21:19:20 lib/python3.8/site-packages/conda_env/cli/main_update.py 
?rw-rw-r-- 1001/121       4107 2022-11-21 21:19:20 lib/python3.8/site-packages/conda_env/cli/main_vars.py 

I had to refactor a couple functions for reusability.

conda-forge-webservices[bot] commented 6 months ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

jaimergp commented 3 months ago

@conda-forge-admin, please rerender