diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2018-09-07 16:47:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 16:47:46 -0700 |
commit | f8d56e929e35e822f62912fa0c91aa1e640cc373 (patch) | |
tree | a178c9ebc43391aa3e5b63b5e676ec45c1162286 /kokoro/release/python/macos | |
parent | f9d8138376765d229a32635c9209061e4e4aed8c (diff) | |
parent | 7200550afa99f422b45480005189338f4e0a9d8f (diff) | |
download | protobuf-f8d56e929e35e822f62912fa0c91aa1e640cc373.tar.gz protobuf-f8d56e929e35e822f62912fa0c91aa1e640cc373.tar.bz2 protobuf-f8d56e929e35e822f62912fa0c91aa1e640cc373.zip |
Merge pull request #5125 from jtattermusch/upport_kokoro_release_python
Upport kokoro/release/python from 3.6.x branch
Diffstat (limited to 'kokoro/release/python/macos')
-rwxr-xr-x | kokoro/release/python/macos/build_artifacts.sh | 47 | ||||
-rw-r--r-- | kokoro/release/python/macos/release.cfg | 8 |
2 files changed, 55 insertions, 0 deletions
diff --git a/kokoro/release/python/macos/build_artifacts.sh b/kokoro/release/python/macos/build_artifacts.sh new file mode 100755 index 00000000..2aec5e64 --- /dev/null +++ b/kokoro/release/python/macos/build_artifacts.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +set -ex + +# change to repo root +pushd $(dirname $0)/../../../.. + +export REPO_DIR=protobuf +export BUILD_VERSION=`grep -i "version" python/google/protobuf/__init__.py | grep -o "'.*'" | tr -d "'"` +export BUILD_COMMIT=v$BUILD_VERSION +export PLAT=x86_64 +export UNICODE_WIDTH=32 +export MACOSX_DEPLOYMENT_TARGET=10.9 +export TRAVIS_OS_NAME="osx" + +mkdir artifacts +export ARTIFACT_DIR=$(pwd)/artifacts + +git clone https://github.com/matthew-brett/multibuild.git +cp kokoro/release/python/linux/config.sh config.sh + +OLD_PATH=$PATH + +build_artifact_version() { + MB_PYTHON_VERSION=$1 + + # Clean up env + rm -rf venv + sudo rm -rf protobuf + git clone https://github.com/google/protobuf.git + export PATH=$OLD_PATH + + source multibuild/common_utils.sh + source multibuild/travis_steps.sh + before_install + + clean_code $REPO_DIR $BUILD_COMMIT + + build_wheel $REPO_DIR/python $PLAT + + mv wheelhouse/* $ARTIFACT_DIR +} + +build_artifact_version 2.7 +build_artifact_version 3.4 +build_artifact_version 3.5 +build_artifact_version 3.6 diff --git a/kokoro/release/python/macos/release.cfg b/kokoro/release/python/macos/release.cfg new file mode 100644 index 00000000..85cf81b5 --- /dev/null +++ b/kokoro/release/python/macos/release.cfg @@ -0,0 +1,8 @@ +# Configuration for Mac OSX release builds +build_file: "protobuf/kokoro/release/python/macos/build_artifacts.sh" + +action { + define_artifacts { + regex: "github/protobuf/artifacts/**" + } +} |