-
Notifications
You must be signed in to change notification settings - Fork 8
/
build
executable file
·48 lines (40 loc) · 916 Bytes
/
build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
test=false
version_bump="minor"
while getopts ":b:t" opt; do
case ${opt} in
b )
version_bump=$OPTARG
;;
t )
test=true
;;
\? )
echo "Invalid option: $OPTARG" 1>&2
exit 1
;;
: )
echo "Invalid option: $OPTARG requires an argument" 1>&2
exit 1
;;
esac
done
shift $((OPTIND -1))
# install dev dependencies
echo "installing dev dependencies..."
python3 -m pip install -r requirements-dev.txt
# hatch version ${version_bump}
# git add "music_kraken/__init__.py"
# git commit -m "bump: ${version_bump}"
# build the wheels
python3 -m build
# install the newest version
# python3 -m pip install .
if [ "$test" = true ];
then
echo "just a test"
twine upload --repository testpypi dist/music_kraken*
python3 -m pip install -i https://test.pypi.org/simple/ music-kraken -U
exit
fi
twine upload dist/music_kraken*