Skip to content

Commit

Permalink
Add simple script to easily test if Conda build works (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaramadze authored Sep 24, 2024
1 parent faef6f0 commit f38a2d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ export QUIXSTREAMS_VERSION=$(grep '__version__' ./quixstreams/__init__.py | cut
conda install --yes conda-build anaconda-client
conda build --channel conda-forge --user quixio ./conda
```

# How to upgrade requirements

1. Bump requirements in `conda/meta.yaml` and/or in `conda/post-link.sh`.
2. Run `./conda/test.sh` to make sure everything works.
7 changes: 7 additions & 0 deletions conda/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
QUIXSTREAMS_VERSION=$(grep '__version__' ./quixstreams/__init__.py | cut -d '"' -f 2)

docker run --rm \
-v ./conda:/conda \
-w /conda \
-e QUIXSTREAMS_VERSION=$QUIXSTREAMS_VERSION \
continuumio/miniconda3 bash -c 'conda install --yes conda-build anaconda-client && conda build --channel conda-forge .'

0 comments on commit f38a2d0

Please sign in to comment.