From 90ffc0388c5bfc8e405c641d1eb49e3a40e38b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Ftay=20Fabry?= Date: Mon, 11 Mar 2024 21:22:40 +0100 Subject: [PATCH] use build_system option (#18) * Update README.md * Update action.yml * syntax --- .github/workflows/test.yml | 2 +- README.md | 6 +++--- action.yml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d34bf6..6d5df54 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: output: environment_test.yml channels: conda-forge defaults extras: test - setup_requires: include + build_system: include pip: bidict - uses: mamba-org/setup-micromamba@v1.8.0 with: diff --git a/README.md b/README.md index 0448512..8cd04e3 100644 --- a/README.md +++ b/README.md @@ -98,9 +98,9 @@ Specify one or more optional `[extras_require]` sections to add to all the envir you would normally install with `pip install pkg[test]`). Note that for individual packages, the [extra]` syntax is also possible. -### setup_requires: +### build_system: -If set to `'include'` the dependencies listed under `[options:setup_requires]` will be added to the environment (default +If set to `'include'` the dependencies listed under `[build-system]` (or `[options:setup_requires]` in `setup.cfg`) will be added to the environment (default is `'omit'` so no setup dependencies will be installed). ### pip @@ -117,7 +117,7 @@ steps: output: 'environment_test.yml' channels: 'conda-forge defaults' extras: 'test' - setup_requires: 'include' + build_system: 'include' pip: 'bidict' ``` diff --git a/action.yml b/action.yml index 03c5cf1..bc54ae5 100644 --- a/action.yml +++ b/action.yml @@ -22,9 +22,9 @@ inputs: Specify one or more optional [extras_require] sections to add to the environment (e.g. 'test' to include package that you would normally install with 'pip install pkg[test]') required: false - setup_requires: + build_system: description: >- - if set to 'include' the dependencies listed under [options]:setup_requires will be added to the environment + if set to 'include' the dependencies listed under [build-system] or [options]:setup_requires will be added to the environment (default is 'omit' so no setup dependencies will be installed) required: false default: omit @@ -43,7 +43,7 @@ runs: --output ${{ inputs.output }} --channels ${{ inputs.channels }} --extras ${{ inputs.extras }} - --setup_requires ${{ inputs.setup_requires }} + --build_system ${{ inputs.build_system }} --pip ${{ inputs.pip }} shell: bash - name: show environment file