-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathpublish.sh
More file actions
executable file
·24 lines (22 loc) · 695 Bytes
/
publish.sh
File metadata and controls
executable file
·24 lines (22 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -eu
# This script is a utility for the BeeWare team to publish packages to the
# https://anaconda.org/beeware repository. It won't be any use to you unless
# you have write permissions to the `beeware` repo.
#
# It attempts to publish any package in the `dist` folder, moving it to the
# `published` folder when the upload is successful
#
# Usage:
#
# $ source ~/opt/anaconda3/bin/activate
# (base) $ anaconda login
# (base) $ ./publish.sh
#
while IFS= read -r -d '' FILE
do
echo "***** PUBLISH $FILE ***********************************"
if anaconda upload -u beeware "$FILE"; then
mv "$FILE" published
fi
done < <(find ./dist -name "*.whl" -print0)