forked from openai/atari-py
-
Notifications
You must be signed in to change notification settings - Fork 35
/
deploy_to_pypi.sh
executable file
·32 lines (26 loc) · 905 Bytes
/
deploy_to_pypi.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
#!/bin/bash
set -ex
# TRAVIS_TAG=0.1.14
if [[ -z "$TRAVIS_TAG" ]]; then
echo "Not a tagged commit, quitting"
exit 0
fi
pip install virtualenv --user
python -m virtualenv --python=python3 .venv
source .venv/bin/activate
pip install awscli twine
mkdir -p wheelhouse
env
# ugh something in awscli does not work on travis we'll download objects via curl
# aws s3 cp --recursive s3://games-wheels/atari-py/${TRAVIS_TAG} wheelhouse/
SUFFIXES="-manylinux1_x86_64.whl -win_amd64.whl -macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl"
# SUFFIXES="-manylinux1_x86_64.whl"
PY_VERS="-cp36-cp36m -cp37-cp37m"
URLPREFIX="https://s3-us-west-2.amazonaws.com/games-wheels/atari-py/${TRAVIS_TAG}/atari_py-${TRAVIS_TAG}"
cd wheelhouse
for s in $SUFFIXES; do
for p in $PY_VERS; do
curl -O ${URLPREFIX}${p}${s}
done;
done
twine upload --verbose atari_py*