forked from dtmilano/AndroidViewClient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish
More file actions
executable file
·20 lines (19 loc) · 725 Bytes
/
publish
File metadata and controls
executable file
·20 lines (19 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash
set -e
eval $(grep version setup.py | sed 's/,$//')
tag="v$version"
git tag "$tag" || printf 'WARNING: tag "%s" already exists\n' "$tag"
git push --tags
printf 'Now Github Actions should follow\n'
##python2.7 setup.py clean build --executable='/usr/bin/env python2.7' bdist_egg bdist_wheel --universal
#python setup.py clean build --executable='/usr/bin/env python' bdist_egg bdist_wheel --universal
## let's use pyenv's twine, installed by pip
#twine=~/.pyenv/shims/twine
#set -x
#version_info=( $($twine --version 2>&1) )
#if [[ "${version_info[2]}" < "1.11" ]]
#then
# printf '%s: ERROR: twine version > 1.11 required\n' "$(basename $0)"
# exit 1
#fi
#$twine upload dist/androidviewclient-${version}-*