Skip to content

Commit

Permalink
longer feature name, shorter task names
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Nov 19, 2024
1 parent a8d7d14 commit 2028b31
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ Use one of:
- `cd recipes && grayskull pypi PACKAGE_NAME_ON_PYPI_HERE`
- `cd recipes && grayskull cran PACKAGE_NAME_ON_CRAN_HERE`
- with [`pixi`](#pixi):
- generate recipe `pixi run grayskull pypi PACKAGE_NAME_ON_PYPI_HERE`
- generate recipe `pixi run grayskull cran PACKAGE_NAME_ON_CRAN_HERE`
- generate recipe `pixi run pypi PACKAGE_NAME_ON_PYPI_HERE`
- generate recipe `pixi run cran PACKAGE_NAME_ON_CRAN_HERE`

## Linting recipes with `conda-smithy`

Expand All @@ -89,7 +89,7 @@ Use one of:
> with current best practices. Ensure using the latest with:
>
> - `$CONDA_EXE upgrade conda-smithy`
> - `pixi upgrade --feature lint`
> - `pixi upgrade --feature conda-smithy`
## FAQ

Expand Down
19 changes: 12 additions & 7 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,20 @@ MINIFORGE_HOME = "$CONDA_PREFIX"

[feature.grayskull.dependencies]
grayskull = ">=2.7.3"
[feature.grayskull.tasks.grayskull]
description = "build a recipe from a PyPI or CRAN package name with `grayskull`"
cmd = "cd recipes && grayskull"
[feature.grayskull.tasks.pypi]
description = "build a recipe for a PyPI package name with `grayskull`"
cmd = "cd recipes && grayskull pypi --strict-conda-forge"
[feature.grayskull.tasks.cran]
description = "build a recipe for a CRAN package name with `grayskull`"
cmd = "cd recipes && grayskull pypi --strict-conda-forge"

[feature.lint.dependencies]
[feature.conda-smithy.dependencies]
conda-smithy = ">=3.44.6,<4"
[feature.lint.tasks.recipe-lint]
[feature.conda-smithy.tasks.recipe-lint]
description = "validate all recipes with `conda-smithy`"
cmd = "conda-smithy recipe-lint --conda-forge recipes/*"
cmd = """python .github/workflows/scripts/linter.py
&& conda-smithy recipe-lint --conda-forge recipes/*
"""

[environments]
# linux only needs Python to run build-locally.py. Everything else happens in Docker.
Expand All @@ -80,4 +85,4 @@ osx = ["osx", "python", "build"]
win = ["win", "python", "build"]
build = ["python", "build"]
grayskull = ["python", "grayskull"]
lint = ["python", "lint"]
conda-smithy = ["python", "conda-smithy"]

0 comments on commit 2028b31

Please sign in to comment.