Skip to content

Commit

Permalink
fix: align with latest cep changes
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Dec 1, 2023
1 parent 728c456 commit 7e4a872
Show file tree
Hide file tree
Showing 5 changed files with 1,372 additions and 1,437 deletions.
1 change: 1 addition & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ignore = [
"D", # https://docs.astral.sh/ruff/rules/#pydocstyle-d
"COM812", # https://docs.astral.sh/ruff/rules/missing-trailing-comma/
"ISC001", # https://docs.astral.sh/ruff/rules/single-line-implicit-string-concatenation/
"T201" # https://docs.astral.sh/ruff/rules/print/
]

[format]
Expand Down
19 changes: 12 additions & 7 deletions examples/mamba/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# yaml-language-server: $schema=../../schema.json

schema_version: 1

context:
name: mamba
libmamba_version: "1.4.2"
Expand Down Expand Up @@ -28,12 +30,11 @@ outputs:

build:
script: ${{ "build_mamba.sh" if unix else "build_mamba.bat" }}
run_exports:
- ${{ pin_subpackage('libmamba', max_pin='x.x') }}
ignore_run_exports:
- spdlog
- if: win
then: python
from_package:
- spdlog
- if: win
then: python

requirements:
build:
Expand All @@ -55,6 +56,8 @@ outputs:
- fmt
- if: win
then: winreg
run_exports:
- ${{ pin_subpackage('libmamba', max_pin='x.x') }}

test:
- script:
Expand Down Expand Up @@ -83,9 +86,8 @@ outputs:
build:
script: ${{ "build_mamba.sh" if unix else "build_mamba.bat" }}
string: py${{ CONDA_PY }}h${{ PKG_HASH }}_${{ PKG_BUILDNUM }}
run_exports:
- ${{ pin_subpackage('libmambapy', max_pin='x.x') }}
ignore_run_exports:
from_package:
- spdlog
requirements:
build:
Expand Down Expand Up @@ -114,6 +116,8 @@ outputs:
run:
- python
- ${{ pin_subpackage('libmamba', exact=True) }}
run_exports:
- ${{ pin_subpackage('libmambapy', max_pin='x.x') }}

test:
- imports:
Expand All @@ -128,6 +132,7 @@ outputs:
build:
script: ${{ "build_mamba.sh" if unix else "build_mamba.bat" }}
string: py${{ CONDA_PY }}h${{ PKG_HASH }}_${{ PKG_BUILDNUM }}
python:
entry_points:
- mamba = mamba.mamba:main
requirements:
Expand Down
17 changes: 9 additions & 8 deletions examples/zlib/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,28 @@ context:

recipe:
name: zlib-split
version: ${{version}}
version: 1.2.13

source:
url: http://zlib.net/zlib-${{ version }}.tar.gz
url: http://zlib.net/zlib-${{ recipe.version }}.tar.gz
sha256: b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30

outputs:
- package:
name: libzlib
build:
run_exports:
- ${{ pin_subpackage('libzlib', max_pin='x.x') }}
script:
- echo "build libzlib"

requirements:
build:
- ${{ compiler('c') }}
host:
run:
run_constrained:
- zlib ${{ version }} *_${{ build_num }}
run_exports:
- ${{ pin_subpackage('libzlib', max_pin='x.x') }}

test:
- script:
Expand All @@ -45,8 +46,6 @@ outputs:
build:
skip:
- not win
run_exports:
- ${{ pin_subpackage('libzlib-wapi', max_pin='x.x') }}
requirements:
build:
- ${{ compiler('c') }}
Expand All @@ -55,6 +54,8 @@ outputs:
run_constrained:
- zlib ${{ version }} *_${{ build_num }}
- zlib-wapi ${{ version }} *_${{ build_num }}
run_exports:
- ${{ pin_subpackage('libzlib-wapi', max_pin='x.x') }}
files:
- Library/bin/zlibwapi.dll # [win]
test:
Expand All @@ -64,8 +65,6 @@ outputs:
- package:
name: zlib
build:
run_exports:
- ${{ pin_subpackage('libzlib', max_pin='x.x') }}
script:
- echo "build zlib"
requirements:
Expand All @@ -75,6 +74,8 @@ outputs:
- ${{ pin_subpackage('libzlib', exact=True) }}
run:
- ${{ pin_subpackage('libzlib', exact=True) }}
run_exports:
- ${{ pin_subpackage('libzlib', max_pin='x.x') }}

test:
- extra_requirements:
Expand Down
Loading

0 comments on commit 7e4a872

Please sign in to comment.