Skip to content

Commit

Permalink
Merge pull request htm-community#636 from htm-community/pypi_deploy
Browse files Browse the repository at this point in the history
Pypi deploy
  • Loading branch information
dkeeney authored Aug 14, 2019
2 parents 58f0a9e + dfc223b commit 0167fcd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
17 changes: 16 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,22 @@ deploy:
tags: true #GH requires tagged release
branch: master
repo: htm-community/htm.core


## PYPI releases
provider: pypi
user: "__token__" # token for PYPI test account for David Keeney. Not for production
password: "pypi-AgENdGVzdC5weXBpLm9yZwIkOTk0YmZjNGYtZTgxNS00Yjk2LTg5ZTAtODE1MGI4MjZhNGZlAAIleyJwZXJtaXNzaW9ucyI6ICJ1c2VyIiwgInZlcnNpb24iOiAxfQAABiDXJOuxvodsEDoD5dOH-e0td1DdUSwrl2NCl_lP_vy6RA"
server: "https://test.pypi.org/legacy/"
on:
tags: true
branch: master
repo: htm-community/htm.core
distributions: "bdist_wheel"
file_glob: true # allows '*' in file below
file: "$TRAVIS_BUILD_DIR/build/scripts/*.whl"
skip_existing: true
skip_cleanup: true

notifications:
# email:
# recipients:
Expand Down
12 changes: 10 additions & 2 deletions ci/fetch-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ for i in `seq 10`; do
else
echo "happy"
ls *.zip
ls *.gz
break
fi
done
Expand All @@ -34,8 +33,17 @@ for i in `seq 10`; do
retry=false
else
echo "happy"
ls *.zip
ls *.gz
break
fi
done

# extract the wheel files for deploying to PYPI
mkdir artifacts
unzip *.zip -d artifacts
cd artifacts
tar -xf ../*.gz
cp */py/*.whl ..
cd ..
#rm -r artifacts

0 comments on commit 0167fcd

Please sign in to comment.