This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
matrix: | ||
include: | ||
- sudo: required | ||
services: | ||
- docker | ||
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 | ||
- sudo: required | ||
services: | ||
- docker | ||
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 | ||
PRE_CMD=linux32 | ||
|
||
install: | ||
- docker pull $DOCKER_IMAGE | ||
|
||
script: | ||
- docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/.travis/build-linux-wheels.sh | ||
- ls wheelhouse/ | ||
|
||
deploy: | ||
provider: gcs | ||
access_key_id: "$GOOGLE_ACCESS_KEY" | ||
secret_access_key: "$GOOGLE_SECRET_KEY" | ||
bucket: "$GOOGLE_BUCKET_NAME" | ||
local_dir: wheelhouse | ||
skip_cleanup: true | ||
acl: public-read | ||
on: | ||
repo: python/typed_ast | ||
branch: master | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash -eux | ||
|
||
# Compile wheels | ||
for PYBIN in /opt/python/*/bin; do | ||
if [ $(echo "${PYBIN}" | grep -o '[[:digit:]][[:digit:]]' | head -n 1) -ge 33 ]; then | ||
# typed_ast only builds on Python 3.3 and newer | ||
"${PYBIN}/pip" wheel /io/ -w wheelhouse/ | ||
fi | ||
done | ||
|
||
# Bundle external shared libraries into the wheels | ||
for whl in wheelhouse/*.whl; do | ||
auditwheel repair "$whl" -w /io/wheelhouse/ | ||
done |