-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from intake/update-build
Update build workflow to seperate build and publish jobs
- Loading branch information
Showing
3 changed files
with
138 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
PACKAGE="intake-dremio" | ||
|
||
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 -w . | ||
|
||
VERSION=$(find dist -name "*.whl" -exec basename {} \; | cut -d- -f2) | ||
export VERSION | ||
|
||
conda build conda.recipe --no-anaconda-upload --no-verify | ||
|
||
mv "$CONDA_PREFIX/conda-bld/noarch/$PACKAGE-$VERSION-py_0.tar.bz2" dist |