Skip to content

Commit

Permalink
Correctly detect bokeh channel for conda build
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Jun 4, 2024
1 parent b88d599 commit e2ba897
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/conda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@ done
git diff --exit-code
python -m build -w .

BK_CHANNEL=$(python -c "
import bokeh
from packaging.version import Version
if Version(bokeh.__version__).is_devrelease:
print('bokeh/label/dev')
else:
print('bokeh')
")

VERSION=$(find dist -name "*.whl" -exec basename {} \; | cut -d- -f2)
export VERSION
conda build scripts/conda/recipe --no-anaconda-upload --no-verify -c bokeh
conda build scripts/conda/recipe --no-anaconda-upload --no-verify -c $BK_CHANNEL

mv "$CONDA_PREFIX/conda-bld/noarch/$PACKAGE-$VERSION-py_0.tar.bz2" dist

0 comments on commit e2ba897

Please sign in to comment.