Skip to content

Commit

Permalink
Simplify conda build
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Jun 16, 2024
1 parent ecd2599 commit 090b549
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/conda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@ set -euxo pipefail

PACKAGE="holoviews"

for file in dist/*.whl dist/*.tar.bz2; do
if [ -e "$file" ]; then
echo "dist folder already contains $(basename "$file"). Please delete it before running this script."
exit 1
fi
done

git diff --exit-code
python -m build . # Can add -w when this is solved: https://github.com/pypa/hatch/issues/1305

VERSION=$(find dist -name "*.whl" -exec basename {} \; | cut -d- -f2)
VERSION=$(python -c "import $PACKAGE; print($PACKAGE._version.__version__)")
export VERSION

conda config --env --set conda_build.pkg_format 2
conda build scripts/conda/recipe --no-anaconda-upload --no-verify

Expand Down

0 comments on commit 090b549

Please sign in to comment.