Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions examples/valid/post-process/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# yaml-language-server: $schema=../../../schema.json

# Example recipe demonstrating the build.post_process feature.
# post_process applies regex replacements on files in the package
# after the build step. Files must be valid UTF-8 text.
# Regex uses Rust `regex` crate semantics with `replace_all` behavior.

package:
name: post-process-example
version: "1.0.0"

build:
number: 0
post_process:
- files:
- "bin/*"
regex: "/old/path"
replacement: "/new/path"
- files:
- "**/*.cmake"
- "**/*.pc"
regex: "/home/builder"
replacement: "$PREFIX"
2 changes: 1 addition & 1 deletion tests/test_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@pytest.fixture(
scope="module",
params=["mamba", "xtensor", "single-output", "zlib", "staging"],
params=["mamba", "xtensor", "single-output", "zlib", "staging", "post-process"],
)
def valid_recipe(request) -> str:
recipe_name = request.param
Expand Down