You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/06/06 22:16:39 UTC
[GitHub] merlimat closed pull request #1919: Add pulsar python client osx
vagrant templates
merlimat closed pull request #1919: Add pulsar python client osx vagrant templates
URL: https://github.com/apache/incubator-pulsar/pull/1919
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/.gitignore b/.gitignore
index 988fe395ca..b009375637 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,7 +24,7 @@ pulsar-broker/src/test/resources/log4j2.yaml
*.iws
# Mac
-.DS_Store
+**/.DS_Store
# VisualStudioCode artifacts
.vscode/
@@ -54,3 +54,11 @@ deployment/terraform-ansible/aws/terraform.tfstate.backup
# Vagrant
**/.vagrant
+
+
+pulsar-client-cpp/python/pkg/osx/**/*.bak
+pulsar-client-cpp/python/pkg/osx/**/build.sh
+pulsar-client-cpp/python/pkg/osx/**/*.whl
+pulsar-client-cpp/python/pkg/osx/**/*.template2
+
+
diff --git a/pulsar-client-cpp/python/pkg/osx/build.sh.template b/pulsar-client-cpp/python/pkg/osx/build.sh.template
new file mode 100644
index 0000000000..5720b27c56
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/build.sh.template
@@ -0,0 +1,47 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+set -e
+
+GITTAG=#TAG#
+PYTHONVER=#PYTHONVER#
+
+/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
+
+brew install openssl git boost pkg-config jsoncpp cmake protobuf260 log4cxx
+
+if [ "$PYTHONVER" = "PYTHON2" ]
+then
+ brew install python@2 boost-python
+fi
+
+if [ "$PYTHONVER" = "PYTHON3" ]
+then
+ brew install python boost-python3
+fi
+
+brew link --force protobuf260
+rm -rf incubator-pulsar
+git clone --depth 1 --branch $GITTAG https://github.com/apache/incubator-pulsar.git
+cd incubator-pulsar/pulsar-client-cpp
+cmake . -DBUILD_TESTS=OFF -DLINK_STATIC=ON
+make _pulsar -j8
+cd python
+python setup.py bdist_wheel
diff --git a/pulsar-client-cpp/python/pkg/osx/generate-all-wheel.sh b/pulsar-client-cpp/python/pkg/osx/generate-all-wheel.sh
new file mode 100755
index 0000000000..0e1dfec446
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/generate-all-wheel.sh
@@ -0,0 +1,50 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+set -e
+
+printf "== Generate python 2.7 osx packages ==\n"
+
+cd osx-10.11-python2.7
+sh generate-wheel-file.sh
+cd ..
+
+cd osx-10.12-python2.7
+sh generate-wheel-file.sh
+cd ..
+
+cd osx-10.13-python2.7
+sh generate-wheel-file.sh
+cd ..
+
+printf "== Generate python 3.6 osx packages ==\n"
+
+cd osx-10.11-python3.6
+sh generate-wheel-file.sh
+cd ..
+
+cd osx-10.12-python3.6
+sh generate-wheel-file.sh
+cd ..
+
+cd osx-10.13-python3.6
+sh generate-wheel-file.sh
+cd ..
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/Vagrantfile b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/Vagrantfile
new file mode 100644
index 0000000000..332b0ea10e
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/Vagrantfile
@@ -0,0 +1,28 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+Vagrant.configure("2") do |config|
+ config.vm.box = "jhcook/osx-elcapitan-10.11"
+ config.vm.provision "shell", path: "build.sh", privileged: false
+ config.vm.provider :virtualbox do |vb|
+ vb.name = "osx-10.11-python2.7"
+ end
+end
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/build.sh.template b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/build.sh.template
new file mode 120000
index 0000000000..1603003799
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/build.sh.template
@@ -0,0 +1 @@
+../build.sh.template
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/generate-wheel-file.sh b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/generate-wheel-file.sh
new file mode 100755
index 0000000000..a623d4e9f9
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python2.7/generate-wheel-file.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+set -e
+
+gitTag="${gitTag:-master}"
+pythonVer="PYTHON2"
+
+rm -rf *.whl
+sed s/#TAG#/$gitTag/g build.sh.template > build.sh.template2
+sed s/#PYTHONVER#/$pythonVer/g build.sh.template2 > build.sh
+vagrant up --provision
+vagrant scp :/Users/vagrant/incubator-pulsar/pulsar-client-cpp/python/dist/*.whl .
+vagrant halt -f
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/Vagrantfile b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/Vagrantfile
new file mode 100644
index 0000000000..deb94bb2a3
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/Vagrantfile
@@ -0,0 +1,28 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+Vagrant.configure("2") do |config|
+ config.vm.box = "jhcook/osx-elcapitan-10.11"
+ config.vm.provision "shell", path: "build.sh", privileged: false
+ config.vm.provider :virtualbox do |vb|
+ vb.name = "osx-10.11-python3.6"
+ end
+end
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/build.sh.template b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/build.sh.template
new file mode 120000
index 0000000000..1603003799
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/build.sh.template
@@ -0,0 +1 @@
+../build.sh.template
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/generate-wheel-file.sh b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/generate-wheel-file.sh
new file mode 100755
index 0000000000..c37827a7e5
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.11-python3.6/generate-wheel-file.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+set -e
+
+gitTag="${gitTag:-master}"
+pythonVer="PYTHON3"
+
+rm -rf *.whl
+sed s/#TAG#/$gitTag/g build.sh.template > build.sh.template2
+sed s/#PYTHONVER#/$pythonVer/g build.sh.template2 > build.sh
+vagrant up --provision
+vagrant scp :/Users/vagrant/incubator-pulsar/pulsar-client-cpp/python/dist/*.whl .
+vagrant halt -f
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/Vagrantfile b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/Vagrantfile
new file mode 100644
index 0000000000..297a5b82be
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/Vagrantfile
@@ -0,0 +1,28 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+Vagrant.configure("2") do |config|
+ config.vm.box = "jhcook/macos-sierra"
+ config.vm.provision "shell", path: "build.sh", privileged: false
+ config.vm.provider :virtualbox do |vb|
+ vb.name = "osx-10.12-python2.7"
+ end
+end
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/build.sh.template b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/build.sh.template
new file mode 120000
index 0000000000..1603003799
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/build.sh.template
@@ -0,0 +1 @@
+../build.sh.template
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/generate-wheel-file.sh b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/generate-wheel-file.sh
new file mode 100755
index 0000000000..a623d4e9f9
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python2.7/generate-wheel-file.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+set -e
+
+gitTag="${gitTag:-master}"
+pythonVer="PYTHON2"
+
+rm -rf *.whl
+sed s/#TAG#/$gitTag/g build.sh.template > build.sh.template2
+sed s/#PYTHONVER#/$pythonVer/g build.sh.template2 > build.sh
+vagrant up --provision
+vagrant scp :/Users/vagrant/incubator-pulsar/pulsar-client-cpp/python/dist/*.whl .
+vagrant halt -f
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/Vagrantfile b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/Vagrantfile
new file mode 100644
index 0000000000..502c44f5a7
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/Vagrantfile
@@ -0,0 +1,28 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+Vagrant.configure("2") do |config|
+ config.vm.box = "jhcook/macos-sierra"
+ config.vm.provision "shell", path: "build.sh", privileged: false
+ config.vm.provider :virtualbox do |vb|
+ vb.name = "osx-10.12-python3.6"
+ end
+end
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/build.sh.template b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/build.sh.template
new file mode 120000
index 0000000000..1603003799
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/build.sh.template
@@ -0,0 +1 @@
+../build.sh.template
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/generate-wheel-file.sh b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/generate-wheel-file.sh
new file mode 100755
index 0000000000..c37827a7e5
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.12-python3.6/generate-wheel-file.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+set -e
+
+gitTag="${gitTag:-master}"
+pythonVer="PYTHON3"
+
+rm -rf *.whl
+sed s/#TAG#/$gitTag/g build.sh.template > build.sh.template2
+sed s/#PYTHONVER#/$pythonVer/g build.sh.template2 > build.sh
+vagrant up --provision
+vagrant scp :/Users/vagrant/incubator-pulsar/pulsar-client-cpp/python/dist/*.whl .
+vagrant halt -f
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.13-python2.7/Vagrantfile b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python2.7/Vagrantfile
new file mode 100644
index 0000000000..13b2646643
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python2.7/Vagrantfile
@@ -0,0 +1,29 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+Vagrant.configure("2") do |config|
+ config.vm.box = "burinkhazad/macos-high-sierra"
+ config.vm.provision "shell", path: "build.sh", privileged: false
+ config.vm.synced_folder ".", "/vagrant", disabled: true
+ config.vm.provider :virtualbox do |vb|
+ vb.name = "osx-10.13-python2.7"
+ end
+end
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.13-python2.7/build.sh.template b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python2.7/build.sh.template
new file mode 120000
index 0000000000..1603003799
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python2.7/build.sh.template
@@ -0,0 +1 @@
+../build.sh.template
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.13-python2.7/generate-wheel-file.sh b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python2.7/generate-wheel-file.sh
new file mode 100755
index 0000000000..a623d4e9f9
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python2.7/generate-wheel-file.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+set -e
+
+gitTag="${gitTag:-master}"
+pythonVer="PYTHON2"
+
+rm -rf *.whl
+sed s/#TAG#/$gitTag/g build.sh.template > build.sh.template2
+sed s/#PYTHONVER#/$pythonVer/g build.sh.template2 > build.sh
+vagrant up --provision
+vagrant scp :/Users/vagrant/incubator-pulsar/pulsar-client-cpp/python/dist/*.whl .
+vagrant halt -f
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.13-python3.6/Vagrantfile b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python3.6/Vagrantfile
new file mode 100644
index 0000000000..5bfc25b020
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python3.6/Vagrantfile
@@ -0,0 +1,29 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+Vagrant.configure("2") do |config|
+ config.vm.box = "burinkhazad/macos-high-sierra"
+ config.vm.provision "shell", path: "build.sh", privileged: false
+ config.vm.synced_folder ".", "/vagrant", disabled: true
+ config.vm.provider :virtualbox do |vb|
+ vb.name = "osx-10.13-python3.6"
+ end
+end
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.13-python3.6/build.sh.template b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python3.6/build.sh.template
new file mode 120000
index 0000000000..1603003799
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python3.6/build.sh.template
@@ -0,0 +1 @@
+../build.sh.template
\ No newline at end of file
diff --git a/pulsar-client-cpp/python/pkg/osx/osx-10.13-python3.6/generate-wheel-file.sh b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python3.6/generate-wheel-file.sh
new file mode 100755
index 0000000000..c37827a7e5
--- /dev/null
+++ b/pulsar-client-cpp/python/pkg/osx/osx-10.13-python3.6/generate-wheel-file.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+
+set -e
+
+gitTag="${gitTag:-master}"
+pythonVer="PYTHON3"
+
+rm -rf *.whl
+sed s/#TAG#/$gitTag/g build.sh.template > build.sh.template2
+sed s/#PYTHONVER#/$pythonVer/g build.sh.template2 > build.sh
+vagrant up --provision
+vagrant scp :/Users/vagrant/incubator-pulsar/pulsar-client-cpp/python/dist/*.whl .
+vagrant halt -f
\ No newline at end of file
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services