From f38a2d05366425cba3af72bcf8d9adb7d69b1ddf Mon Sep 17 00:00:00 2001 From: Remy Gwaramadze Date: Tue, 24 Sep 2024 10:45:12 +0200 Subject: [PATCH] Add simple script to easily test if Conda build works (#493) --- conda/README.md | 5 +++++ conda/test.sh | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100755 conda/test.sh diff --git a/conda/README.md b/conda/README.md index 8a65f8a2f..5419e5bab 100644 --- a/conda/README.md +++ b/conda/README.md @@ -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. diff --git a/conda/test.sh b/conda/test.sh new file mode 100755 index 000000000..5c1904f36 --- /dev/null +++ b/conda/test.sh @@ -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 .'