prefix-dev / rattler-build-conda-compat

rattler-build module which offer compatibility with conda-smithy
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

feat: allow eval on non existing namespace #29

Closed nichmor closed 3 months ago

nichmor commented 3 months ago

This PR aims to add allow_missing_selector argument for RecipeLoader which will be used by conda-smithy linter to suggest some lints for osx platform. To do this, we need to ignore other selectors ( treat them as true ) so the osx one will be evaluated. Also, I'm adding flatten_lists that will make just a list of values for this case:

python:
if: osx
  - 3.8

python:
if: unix
 - 3.9

So instead of having python: [[3.8], [3.9]] we will have python: [3.8, 3.9]