Skip to content

Commit

Permalink
Replace build for python-build in environment.yml (#207)
Browse files Browse the repository at this point in the history
The `build` package in `conda-forge` is outdated, `python-build` should
be used instead. Add step in `test.yml` GitHub Action to replace `build`
for `python-build` in the collected dependencies that will be installed
with conda.
  • Loading branch information
santisoler authored Aug 27, 2024
1 parent 18f4fb3 commit 7182b47
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ jobs:
echo "Collected dependencies:"
cat requirements-full.txt
- name: Rename conda-forge packages
run: |
echo "Rename conda-forge packages in requirements-full.txt"
# Replace "build" for "python-build"
sed -s --in-place 's/^build$/python-build/' requirements-full.txt
echo "Renamed dependencies:"
cat requirements-full.txt
- name: Install requirements
run: conda install --quiet --file requirements-full.txt python==$PYTHON

Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- attrs
- scipy
# Build
- build
- python-build
- twine
# Test
- pytest
Expand Down

0 comments on commit 7182b47

Please sign in to comment.