Skip to content

Commit

Permalink
use build_system option (#18)
Browse files Browse the repository at this point in the history
* Update README.md

* Update action.yml

* syntax
  • Loading branch information
CagtayFabry authored Mar 11, 2024
1 parent 6fc982d commit 90ffc03
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -117,7 +117,7 @@ steps:
output: 'environment_test.yml'
channels: 'conda-forge defaults'
extras: 'test'
setup_requires: 'include'
build_system: 'include'
pip: 'bidict'
```

Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 90ffc03

Please sign in to comment.