Skip to content

Commit

Permalink
Merge pull request mamba-org#325 from ruben-arts/main
Browse files Browse the repository at this point in the history
Fix pin_compatible
  • Loading branch information
wolfv authored Jan 30, 2023
2 parents e0fafed + 304457d commit cd087c5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion boa/core/recipe_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def _solve_env(self, env, all_outputs):
specs = self.requirements[env]

for s in specs:
if s.is_pin:
if s.is_pin_subpackage:
s.eval_pin_subpackage(all_outputs)
if env == "run" and s.is_pin_compatible:
s.eval_pin_compatible(
Expand Down
15 changes: 15 additions & 0 deletions tests/recipes-v2/pin_compatible/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
context:
name: "test_pin_compatible"

package:
name: "{{ name }}"
version: '1.2.3'

build:
number: 0

requirements:
host:
- numpy >=1.20
run:
- "{{ pin_compatible('numpy', lower_bound='1.20') }}"

0 comments on commit cd087c5

Please sign in to comment.