conda-incubator / conda-store

Data science environments, for collaboration. ✨
https://conda.store
BSD 3-Clause "New" or "Revised" License
137 stars 44 forks source link

Make conda_flags configurable #790

Closed patrix58 closed 2 months ago

patrix58 commented 3 months ago

Currently the conda_flags parameter in https://github.com/conda-incubator/conda-store/blob/2024.3.1/conda-store-server/conda_store_server/action/generate_lockfile.py#L20 but this is not configurable.

This PR includes changes to have the conda_flags parameter configurable from the config py script.

Description

We are using conda-store within nebari in one of our projects. We have a reason why we don't need strict channel priority while building the environments. The default is still --strict-channel-priority to be backwards compatible, but it makes the option to the user to configure different conda flags e.g. --no-channel-priority.

Pull request checklist

How to test

Add e.g. c.CondaStore.conda_flags = "--no-channel-priority" in the config py script.

netlify[bot] commented 3 months ago

Deploy Preview for conda-store canceled.

Name Link
Latest commit f657ad86b1a0ecff2f94cd8d1312a2a05c40c8e3
Latest deploy log https://app.netlify.com/sites/conda-store/deploys/6620b8d654c9a700082a8ddc