-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathrelease.sh
38 lines (30 loc) · 965 Bytes
/
release.sh
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
#!/usr/bin/env bash
set -e
ABSOLUTE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# run all tox tests
bash "$ABSOLUTE_PATH/tox_all.sh"
# TODO generate readme ..
# source release: push all files, create tag, push tags
git push
tag=$(grep __version__ "$ABSOLUTE_PATH/pandas-ml-utils/setup.py" | grep \'.*\' -o)
git tag $tag
git push --tags
# upload files to a release (pip install github-binary-upload)
github-binary-upload -l KIC/pandas-ml-quant pandas-ml-quant-data-provider/pandas_ml_quant_data_provider/plugins/investing/investing.db
github-binary-upload -l KIC/pandas-ml-quant pandas-ml-quant-data-provider/pandas_ml_quant_data_provider/plugins/yahoo/yahoo.db
# release to pypi
deploy()
{
cd "$1" || exit
echo "deploy: `pwd`"
python setup.py sdist
twine upload dist/*
cp -r dist /tmp/
rm -rf *.egg-info dist
cd - || exit
}
deploy pandas-ml-common
deploy pandas-ml-utils
# TODO and the rest
# increase version
# TODO ...