Apache DataFusion SQL Query Engine
ARROW-2430: [Packaging] MVP for branch based packaging automation
Krisztián Szűcsc1f813923f09
diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txtindex eb735604fd..29ec192094 100644--- a/dev/release/rat_exclude_files.txt+++ b/dev/release/rat_exclude_files.txt@@ -39,6 +39,42 @@ cpp/src/plasma/thirdparty/dlmalloc.ccpp/src/plasma/thirdparty/xxhash.cccpp/src/plasma/thirdparty/xxhash.hdev/release/rat_exclude_files.txt+dev/tasks/linux-packages/debian.ubuntu-trusty/compat+dev/tasks/linux-packages/debian.ubuntu-trusty/control+dev/tasks/linux-packages/debian.ubuntu-trusty/gir1.2-arrow-1.0.install+dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-dev.install+dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-dev.install+dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.doc-base+dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.install+dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.links+dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib0.install+dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-python0.install+dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow0.install+dev/tasks/linux-packages/debian.ubuntu-trusty/patches/series+dev/tasks/linux-packages/debian.ubuntu-trusty/rules+dev/tasks/linux-packages/debian.ubuntu-trusty/source/format+dev/tasks/linux-packages/debian.ubuntu-trusty/watch+dev/tasks/linux-packages/debian/compat+dev/tasks/linux-packages/debian/control+dev/tasks/linux-packages/debian/gir1.2-arrow-1.0.install+dev/tasks/linux-packages/debian/gir1.2-arrow-gpu-1.0.install+dev/tasks/linux-packages/debian/libarrow-dev.install+dev/tasks/linux-packages/debian/libarrow-glib-dev.install+dev/tasks/linux-packages/debian/libarrow-glib-doc.doc-base+dev/tasks/linux-packages/debian/libarrow-glib-doc.install+dev/tasks/linux-packages/debian/libarrow-glib-doc.links+dev/tasks/linux-packages/debian/libarrow-glib0.install+dev/tasks/linux-packages/debian/libarrow-gpu-dev.install+dev/tasks/linux-packages/debian/libarrow-gpu-glib-dev.install+dev/tasks/linux-packages/debian/libarrow-gpu-glib0.install+dev/tasks/linux-packages/debian/libarrow-gpu0.install+dev/tasks/linux-packages/debian/libarrow-python-dev.install+dev/tasks/linux-packages/debian/libarrow-python0.install+dev/tasks/linux-packages/debian/libarrow0.install+dev/tasks/linux-packages/debian/patches/series+dev/tasks/linux-packages/debian/rules+dev/tasks/linux-packages/debian/source/format+dev/tasks/linux-packages/debian/watchgo/arrow/Gopkg.lockgo/arrow/internal/cpu/*go/arrow/type_string.godiff --git a/dev/tasks/README.md b/dev/tasks/README.mdnew file mode 100644index 0000000000..f1f0128f03--- /dev/null+++ b/dev/tasks/README.md@@ -0,0 +1,208 @@+<!--+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.+-->++# Arrow Packaging++The content of this directory aims for automating the historically error prone+process of Arrow packaging.++Packages:+- C++ and Python [conda-forge packages](conda-recipes) for Linux, Mac and+ Windows+- Python [Wheels](python-wheels) for Linux, Mac and Windows+- C++ and GLib [Linux packages](linux-packages) for multiple distributions+- Java++## Architecture++### Executors++Individual jobs are executed on public CI services, currently:+- Linux: TravisCI+- Mac: TravisCI+- Windows: AppVeyor++### Queue++Because of the nature of how the CI services work, the scheduling of jobs happens+through an additional git repository, which acts like a job queue for the tasks.+A job is a git commit on a particular git branch, containing only the required+configuration file to run the requested build (currently `.travis.yml` or+`appveyor.yml`).++### Scheduler++[Crossbow.py](crossbow.py) handles version generation, task rendering and+submission. The tasks are defined in `tasks.yml`+++## Install++> The following guide depends on GitHub, but theoretically any git server can be+> used.++1. [Create the queue+ repository](https://help.github.com/articles/creating-a-new-repository)+2. Enable [TravisCI](https://travis-ci.org/getting_started) and+ [Appveyor](https://www.appveyor.com/docs/) integrations on it+3. Clone the newly created, by default the scripts looks for `crossbow` next to+ arrow repository.++ ```bash+ git clone https://github.com/<user>/crossbow crossbow+ ```++4. [Create a Personal Access+ Token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/)+5. Export the token as an environment variable:++ ```bash+ export CROSSBOW_GITHUB_TOKEN=<token>+ ```++ > or pass as an argument to the CLI script `--github-token`++6. Install the python dependencies for the script:++ ```bash+ conda install -y jinja2 pygit2 click pyyaml+ ```++ ```bash+ # pygit2 requires libgit2: http://www.pygit2.org/install.html+ pip install -y jinja2 pygit2 click pyyaml+ ```++7. Try running it:+ ```bash+ $ python crossbow.py --help+ ```+++## Usage++The script does the following:++1. Detects the current repository, thus supports forks. The following snippet+ will build kszucs's fork instead of the upstream apache/arrow repository.++ ```bash+ $ git clone https://github.com/kszucs/arrow+ $ git clone https://github.com/kszucs/crossbow++ $ cd arrow/dev/tasks+ $ python crossbow.py+ ```++2. Gets the HEAD commit of the currently checked out branch and generates+ the version number based on [setuptools_scm](https://pypi.python.org/pypi/setuptools_scm).+ So to build a particular branch, just check out before running the script:++ ```bash+ git checkout ARROW-<ticket number>+ python dev/tasks/crossbow.py --dry-run+ ```++ > Note that the arrow branch must be pushed beforehand, because the script+ > will clone the selected branch.++3. Reads and renders the required build configurations with the parameters+ substituted.+2. Create a commit per build configuration to its own branch. For example+ to build `travis-linux-conda.yml` it will place a commit to the tip of+ `crossbow@travis-linux-conda` branch.+3. Pushes the modified branches to GitHub which triggers the builds.+ For authentication it uses github oauth tokens described in the install+ section.+++### Examples++The script accepts a pattern as a first argument to narrow the build scope:++Run all builds:++```bash+$ python crossbow.py+Repository: https://github.com/kszucs/arrow@tasks+Commit SHA: 810a718836bb3a8cefc053055600bdcc440e6702+Version: 0.9.1.dev48+g810a7188.d20180414+Pushed branches:+ - travis-osx-wheel+ - travis-linux-packages+ - travis-linux-wheel+ - appveyor-win-wheel+ - appveyor-win-conda+ - travis-linux-conda+ - travis-osx-conda+```++Just render without applying or committing the changes:++```bash+$ python crossbow.py --dry-run+```++Run only `conda` package builds but on all platforms:++```bash+$ python crossbow.py conda+Repository: https://github.com/kszucs/arrow@tasks+Commit SHA: 810a718836bb3a8cefc053055600bdcc440e6702+Version: 0.9.1.dev48+g810a7188.d20180414+Pushed branches:+ - appveyor-win-conda+ - travis-linux-conda+ - travis-osx-conda+```++Run `wheel` builds:++```bash+$ python crossbow.py wheel+Repository: https://github.com/kszucs/arrow@tasks+Commit SHA: 810a718836bb3a8cefc053055600bdcc440e6702+Version: 0.9.1.dev48+g810a7188.d20180414+Pushed branches:+ - travis-osx-wheel+ - travis-linux-wheel+ - appveyor-win-wheel+```++Run `osx` builds:++```bash+$ python crossbow.py osx+Repository: https://github.com/kszucs/arrow@tasks+Commit SHA: cad1df2c7f650ad3434319bbbefed0d4abe45e4a+Version: 0.9.1.dev130+gcad1df2c.d20180414+Pushed branches:+ - travis-osx-wheel+ - travis-osx-conda+```++Run only `linux-conda` package build:++```bash+$ python crossbow.py linux-conda+Repository: https://github.com/kszucs/arrow@tasks+Commit SHA: 810a718836bb3a8cefc053055600bdcc440e6702+Version: 0.9.1.dev48+g810a7188.d20180414+Pushed branches:+ - travis-linux-conda+```diff --git a/dev/tasks/conda-recipes/appveyor.yml b/dev/tasks/conda-recipes/appveyor.ymlnew file mode 100644index 0000000000..10ef7044ce--- /dev/null+++ b/dev/tasks/conda-recipes/appveyor.yml@@ -0,0 +1,57 @@+# 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.++environment:+ matrix:+ - TARGET_ARCH: x64+ CONDA_PY: 35+ CONDA_INSTALL_LOCN: C:\\Miniconda35-x64+ - TARGET_ARCH: x64+ CONDA_PY: 36+ CONDA_INSTALL_LOCN: C:\\Miniconda36-x64+ ARROW_SRC: C:\apache-arrow+ ARROW_VERSION: {{ ARROW_VERSION }}++install:+ - cmd: rmdir C:\cygwin /s /q+ # Add path, activate `conda` and update conda.+ - cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat+ - cmd: conda.exe update --yes --quiet conda+ - cmd: set PYTHONUNBUFFERED=1+ # Add our channels.+ - cmd: conda.exe config --set show_channel_urls true+ - cmd: conda.exe config --remove channels defaults+ - cmd: conda.exe config --add channels defaults+ - cmd: conda.exe config --add channels conda-forge+ # Configure the VM.+ - cmd: conda.exe install -n root --quiet --yes conda-forge-build-setup+ - cmd: run_conda_forge_build_setup++# Skip .NET project specific build phase.+build: off++test_script:+ - git clone -b {{ ARROW_BRANCH }} {{ ARROW_REPO }} %ARROW_SRC% || exit /B+ - git checkout {{ ARROW_SHA }} || exit /B+ - pushd %ARROW_SRC%\dev\tasks\conda-recipes+ - conda.exe build parquet-cpp arrow-cpp pyarrow+++notifications:+ - provider: Email+ to:+ - {{ EMAIL }}diff --git a/dev/tasks/conda-recipes/arrow-cpp/bld.bat b/dev/tasks/conda-recipes/arrow-cpp/bld.batnew file mode 100644index 0000000000..5356a46f02--- /dev/null+++ b/dev/tasks/conda-recipes/arrow-cpp/bld.bat@@ -0,0 +1,35 @@+@rem Licensed to the Apache Software Foundation (ASF) under one+@rem or more contributor license agreements. See the NOTICE file+@rem distributed with this work for additional information+@rem regarding copyright ownership. The ASF licenses this file+@rem to you under the Apache License, Version 2.0 (the+@rem "License"); you may not use this file except in compliance+@rem with the License. You may obtain a copy of the License at+@rem+@rem http://www.apache.org/licenses/LICENSE-2.0+@rem+@rem Unless required by applicable law or agreed to in writing,+@rem software distributed under the License is distributed on an+@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+@rem KIND, either express or implied. See the License for the+@rem specific language governing permissions and limitations+@rem under the License.++mkdir "%SRC_DIR%"\cpp\build+pushd "%SRC_DIR%"\cpp\build++set ARROW_BUILD_TOOLCHAIN=%LIBRARY_PREFIX%++cmake -G "%CMAKE_GENERATOR%" ^+ -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^+ -DARROW_BOOST_USE_SHARED:BOOL=ON ^+ -DARROW_BUILD_TESTS:BOOL=OFF ^+ -DARROW_BUILD_UTILITIES:BOOL=OFF ^+ -DCMAKE_BUILD_TYPE=release ^+ -DARROW_PYTHON:BOOL=ON ^+ -DARROW_ORC:BOOL=ON ^+ ..++cmake --build . --target INSTALL --config Release++popddiff --git a/dev/tasks/conda-recipes/arrow-cpp/build.sh b/dev/tasks/conda-recipes/arrow-cpp/build.shnew file mode 100644index 0000000000..7ec43cc7fe--- /dev/null+++ b/dev/tasks/conda-recipes/arrow-cpp/build.sh@@ -0,0 +1,45 @@+#!/bin/sh++# 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+set -x++# Build dependencies+export ARROW_BUILD_TOOLCHAIN=$PREFIX++cd cpp+mkdir build-dir+cd build-dir++cmake \+ -DCMAKE_BUILD_TYPE=release \+ -DCMAKE_INSTALL_PREFIX=$PREFIX \+ -DCMAKE_INSTALL_LIBDIR=$PREFIX/lib \+ -DARROW_BOOST_USE_SHARED=ON \+ -DARROW_BUILD_BENCHMARKS=OFF \+ -DARROW_BUILD_UTILITIES=OFF \+ -DARROW_BUILD_TESTS=OFF \+ -DARROW_JEMALLOC=OFF \+ -DARROW_PLASMA=ON \+ -DARROW_PYTHON=ON \+ -DARROW_ORC=ON \+ ..++make -j${CPU_COUNT}+make installdiff --git a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml b/dev/tasks/conda-recipes/arrow-cpp/meta.yamlnew file mode 100644index 0000000000..ae9f87dda6--- /dev/null+++ b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml@@ -0,0 +1,84 @@+# 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.++package:+ name: arrow-cpp+ version: {{ ARROW_VERSION }}++source:+ path: ../../../../++build:+ number: 0+ skip: true # [win32]+ skip: true # [win and py<35]+ features:+ - vc14 # [win and py>=35]++requirements:+ build:+ - toolchain+ - cmake+ - boost-cpp 1.66.0+ - flatbuffers+ - rapidjson+ - zlib 1.2.*+ - snappy+ - brotli+ - zstd+ - lz4-c+ - jemalloc 4.4.0 # [unix]+ - python+ - numpy 1.10.* # [not (win and py>=36)]+ - numpy 1.12.* # [win and py>=36]++ run:+ - boost-cpp 1.66.0+ - python+ - numpy >=1.10 # [not (win and py>=36)]+ - numpy >=1.12 # [win and py>=36]+ - vc 14.* # [win and py>=35]+ - snappy # [win and py>=35]++test:+ commands:+ - test -f $PREFIX/lib/libarrow.a # [unix]+ - test -f $PREFIX/lib/libarrow.so # [linux]+ - test -f $PREFIX/lib/libarrow_python.so # [linux]+ - test -f $PREFIX/lib/libplasma.so # [linux]+ - test -f $PREFIX/lib/libarrow.dylib # [osx]+ - test -f $PREFIX/lib/libarrow_python.dylib # [osx]+ - test -f $PREFIX/lib/libplasma.dylib # [osx]+ - if not exist %LIBRARY_INC%\\arrow\\api.h exit 1 # [win]+ - if not exist %PREFIX%\\Library\\bin\\arrow.dll exit 1 # [win]+ - if not exist %PREFIX%\\Library\\bin\\arrow_python.dll exit 1 # [win]++about:+ home: http://github.com/apache/arrow+ license: Apache 2.0+ summary: 'C++ libraries for Apache Arrow'++extra:+ recipe-maintainers:+ - wesm+ - xhochy+ - leifwalsh+ - jreback+ - cpcloud+ - pcmoritz+ - robertnishihara+ - siddharthteotiadiff --git a/dev/tasks/conda-recipes/parquet-cpp/bld.bat b/dev/tasks/conda-recipes/parquet-cpp/bld.batnew file mode 100644index 0000000000..8b88eb5770--- /dev/null+++ b/dev/tasks/conda-recipes/parquet-cpp/bld.bat@@ -0,0 +1,32 @@+@rem Licensed to the Apache Software Foundation (ASF) under one+@rem or more contributor license agreements. See the NOTICE file+@rem distributed with this work for additional information+@rem regarding copyright ownership. The ASF licenses this file+@rem to you under the Apache License, Version 2.0 (the+@rem "License"); you may not use this file except in compliance+@rem with the License. You may obtain a copy of the License at+@rem+@rem http://www.apache.org/licenses/LICENSE-2.0+@rem+@rem Unless required by applicable law or agreed to in writing,+@rem software distributed under the License is distributed on an+@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+@rem KIND, either express or implied. See the License for the+@rem specific language governing permissions and limitations+@rem under the License.++set PARQUET_BUILD_TOOLCHAIN=%LIBRARY_PREFIX%++REM Set short build path to not overcome max obj files path length of 150 characters on Windows+mkdir C:\bld\build+pushd C:\bld\build++cmake -G "%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=Release ^+ -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^+ -DPARQUET_BOOST_USE_SHARED=ON ^+ -DPARQUET_BUILD_TESTS=OFF ^+ "%SRC_DIR%"++cmake --build . --target install --config Release++popddiff --git a/dev/tasks/conda-recipes/parquet-cpp/build.sh b/dev/tasks/conda-recipes/parquet-cpp/build.shnew file mode 100644index 0000000000..14a93c3450--- /dev/null+++ b/dev/tasks/conda-recipes/parquet-cpp/build.sh@@ -0,0 +1,39 @@+#!/bin/sh++# 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+set -x++export PARQUET_BUILD_TOOLCHAIN=$PREFIX++mkdir build-dir+cd build-dir++cmake \+ -DCMAKE_BUILD_TYPE=release \+ -DCMAKE_INSTALL_PREFIX=$PREFIX \+ -DCMAKE_INSTALL_LIBDIR=$PREFIX/lib \+ -DPARQUET_BOOST_USE_SHARED=ON \+ -DPARQUET_BUILD_BENCHMARKS=OFF \+ -DPARQUET_BUILD_EXECUTABLES=OFF \+ -DPARQUET_BUILD_TESTS=OFF \+ ..++make -j${CPU_COUNT}+make installdiff --git a/dev/tasks/conda-recipes/parquet-cpp/meta.yaml b/dev/tasks/conda-recipes/parquet-cpp/meta.yamlnew file mode 100644index 0000000000..0f5a619010--- /dev/null+++ b/dev/tasks/conda-recipes/parquet-cpp/meta.yaml@@ -0,0 +1,80 @@+# 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 version = "1.4.0" %}+{% set commit = "b62c22e52d37fa9580d85c5a2a2d73bd8e268364" %}+{% set sha256sum = "2fa5704fc1164f68508e3050d30a6436dd56434e1a592d8ddf4afd68f62a7c01" %}++# NOTE(wesm): When updating the build, please remember also to update the+# pinned Arrow version. We are letting parquet-cpp build its own Apache Arrow+# so that we do not have to update conda-packages for Arrow before we can+# update this package. So if there is an ABI change in Arrow, we can update+# this package faster++package:+ name: parquet-cpp+ version: {{ version }}++source:+ fn: apache-parquet-cpp-{{ version }}.tar.gz+ url: https://github.com/apache/parquet-cpp/archive/{{ commit }}.tar.gz+ sha256: {{ sha256sum }}++build:+ number: 0+ skip: true # [win and not (py35 and win64)]+ features:+ - vc14 # [win and py35]++requirements:+ build:+ - toolchain+ - boost-cpp 1.66.0+ - cmake+ - thrift-cpp >=0.11+ - python # [win]+ - arrow-cpp {{ ARROW_VERSION }}++ run:+ - arrow-cpp {{ ARROW_VERSION }}++test:+ requires:+ - python {{ environ['PY_VER'] + '*' }} # [win]++ commands:+ - test -f $PREFIX/lib/libparquet.so # [linux]+ - test -f $PREFIX/lib/libparquet.dylib # [osx]+ - test -f $PREFIX/include/parquet/api/reader.h # [unix]+ - if not exist %PREFIX%\\Library\\include\\parquet\\api\\reader.h exit 1 # [win]+ - if not exist %PREFIX%\\Library\\bin\\parquet.dll exit 1 # [win]+ - if not exist %PREFIX%\\Library\\lib\\parquet.lib exit 1 # [win]+ - if not exist %PREFIX%\\Library\\lib\\parquet_static.lib exit 1 # [win]++about:+ home: http://github.com/apache/parquet-cpp+ license: Apache 2.0+ summary: 'C++ libraries for the Apache Parquet file format'++extra:+ recipe-maintainers:+ - wesm+ - xhochy+ - leifwalsh+ - jreback+ - cpcloud+ - siddharthteotiadiff --git a/dev/tasks/conda-recipes/pyarrow/bld.bat b/dev/tasks/conda-recipes/pyarrow/bld.batnew file mode 100644index 0000000000..8243bb8baa--- /dev/null+++ b/dev/tasks/conda-recipes/pyarrow/bld.bat@@ -0,0 +1,37 @@+@rem Licensed to the Apache Software Foundation (ASF) under one+@rem or more contributor license agreements. See the NOTICE file+@rem distributed with this work for additional information+@rem regarding copyright ownership. The ASF licenses this file+@rem to you under the Apache License, Version 2.0 (the+@rem "License"); you may not use this file except in compliance+@rem with the License. You may obtain a copy of the License at+@rem+@rem http://www.apache.org/licenses/LICENSE-2.0+@rem+@rem Unless required by applicable law or agreed to in writing,+@rem software distributed under the License is distributed on an+@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+@rem KIND, either express or implied. See the License for the+@rem specific language governing permissions and limitations+@rem under the License.++pushd "%SRC_DIR%"\python++@rem the symlinks for cmake modules don't work here+del cmake_modules\BuildUtils.cmake+del cmake_modules\SetupCxxFlags.cmake+del cmake_modules\CompilerInfo.cmake+del cmake_modules\FindNumPy.cmake+del cmake_modules\FindPythonLibsNew.cmake+copy /Y "%SRC_DIR%\cpp\cmake_modules\BuildUtils.cmake" cmake_modules\+copy /Y "%SRC_DIR%\cpp\cmake_modules\SetupCxxFlags.cmake" cmake_modules\+copy /Y "%SRC_DIR%\cpp\cmake_modules\CompilerInfo.cmake" cmake_modules\+copy /Y "%SRC_DIR%\cpp\cmake_modules\FindNumPy.cmake" cmake_modules\+copy /Y "%SRC_DIR%\cpp\cmake_modules\FindPythonLibsNew.cmake" cmake_modules\++SET ARROW_HOME=%LIBRARY_PREFIX%+"%PYTHON%" setup.py ^+ build_ext --build-type=release --with-parquet ^+ install --single-version-externally-managed --record=record.txt+if errorlevel 1 exit 1+popddiff --git a/dev/tasks/conda-recipes/pyarrow/build.sh b/dev/tasks/conda-recipes/pyarrow/build.shnew file mode 100644index 0000000000..93f155a6cd--- /dev/null+++ b/dev/tasks/conda-recipes/pyarrow/build.sh@@ -0,0 +1,31 @@+#!/bin/sh++# 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+set -x++# Build dependencies+export ARROW_HOME=$PREFIX+export PARQUET_HOME=$PREFIX+++cd python+$PYTHON setup.py \+ build_ext --build-type=release --with-parquet --with-plasma --with-orc \+ install --single-version-externally-managed --record=record.txtdiff --git a/dev/tasks/conda-recipes/pyarrow/meta.yaml b/dev/tasks/conda-recipes/pyarrow/meta.yamlnew file mode 100644index 0000000000..2d797e5aef--- /dev/null+++ b/dev/tasks/conda-recipes/pyarrow/meta.yaml@@ -0,0 +1,76 @@+# 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.++package:+ name: pyarrow+ version: {{ ARROW_VERSION }}++source:+ path: ../../../../++build:+ number: 0+ skip: true # [win32]+ skip: true # [win and py<35]+ features:+ - vc14 # [win and py>=35]++requirements:+ build:+ - python+ - toolchain+ - setuptools+ - setuptools_scm+ - cython+ - cmake+ - numpy 1.10.* # [not (win and py>=36)]+ - numpy 1.12.* # [win and py>=36]+ - six+ - arrow-cpp {{ ARROW_VERSION }}+ - parquet-cpp 1.4.0++ run:+ - python+ - setuptools+ - numpy >=1.10 # [not (win and py>=36)]+ - numpy >=1.12 # [win and py>=36]+ - pandas+ - six+ - arrow-cpp {{ ARROW_VERSION }}+ - parquet-cpp 1.4.0+ - futures # [py27]++test:+ imports:+ - pyarrow+ - pyarrow.parquet+ - pyarrow.plasma # [unix]++about:+ home: http://github.com/apache/arrow+ license: Apache 2.0+ summary: 'Python libraries for Apache Arrow'++extra:+ recipe-maintainers:+ - wesm+ - xhochy+ - jreback+ - cpcloud+ - pcmoritz+ - robertnishihara+ - siddharthteotiadiff --git a/dev/tasks/conda-recipes/travis.linux.yml b/dev/tasks/conda-recipes/travis.linux.ymlnew file mode 100644index 0000000000..c5266810c6--- /dev/null+++ b/dev/tasks/conda-recipes/travis.linux.yml@@ -0,0 +1,62 @@+# 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.++language: generic++os: linux+dist: trusty++env:+ matrix:+ - CONDA_PY=27+ - CONDA_PY=35+ - CONDA_PY=36+ global:+ - ARROW_VERSION={{ ARROW_VERSION }}++install:+ # Install Miniconda.+ - echo `pwd`+ - |+ echo ""+ echo "Installing a fresh version of Miniconda."+ MINICONDA_URL="https://repo.continuum.io/miniconda"+ MINICONDA_FILE="Miniconda3-latest-Linux-x86_64.sh"+ curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"+ bash $MINICONDA_FILE -b++ # Configure conda.+ - |+ echo ""+ echo "Configuring conda."+ source /home/travis/miniconda3/bin/activate root+ conda config --remove channels defaults+ conda config --add channels defaults+ conda config --add channels conda-forge+ conda config --set show_channel_urls true+ conda install --yes --quiet conda-forge-build-setup+ source run_conda_forge_build_setup++script:+ - git clone -b {{ ARROW_BRANCH }} {{ ARROW_REPO }} arrow+ - git -C arrow checkout {{ ARROW_SHA }}+ - pushd arrow/dev/tasks/conda-recipes+ - conda build parquet-cpp arrow-cpp pyarrow++notifications:+ email:+ - {{ EMAIL }}diff --git a/dev/tasks/conda-recipes/travis.osx.yml b/dev/tasks/conda-recipes/travis.osx.ymlnew file mode 100644index 0000000000..8a38d33348--- /dev/null+++ b/dev/tasks/conda-recipes/travis.osx.yml@@ -0,0 +1,71 @@+# 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.++language: generic++os: osx+osx_image: xcode6.4++env:+ matrix:+ - CONDA_PY=27+ - CONDA_PY=35+ - CONDA_PY=36+ global:+ - ARROW_VERSION={{ ARROW_VERSION }}++before_install:+ # Remove homebrew.+ - |+ echo ""+ echo "Removing homebrew from Travis CI to avoid conflicts."+ curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew+ chmod +x ~/uninstall_homebrew+ ~/uninstall_homebrew -fq+ rm ~/uninstall_homebrew++install:+ # Install Miniconda.+ - |+ echo ""+ echo "Installing a fresh version of Miniconda."+ MINICONDA_URL="https://repo.continuum.io/miniconda"+ MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh"+ curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"+ bash $MINICONDA_FILE -b++ # Configure conda.+ - |+ echo ""+ echo "Configuring conda."+ source /Users/travis/miniconda3/bin/activate root+ conda config --remove channels defaults+ conda config --add channels defaults+ conda config --add channels conda-forge+ conda config --set show_channel_urls true+ conda install --yes --quiet conda-forge-build-setup+ source run_conda_forge_build_setup++script:+ - git clone -b {{ ARROW_BRANCH }} {{ ARROW_REPO }} arrow+ - git -C arrow checkout {{ ARROW_SHA }}+ - pushd arrow/dev/tasks/conda-recipes+ - conda build parquet-cpp arrow-cpp pyarrow++notifications:+ email:+ - {{ EMAIL }}diff --git a/dev/tasks/crossbow.py b/dev/tasks/crossbow.pynew file mode 100755index 0000000000..fd4f732ea8--- /dev/null+++ b/dev/tasks/crossbow.py@@ -0,0 +1,323 @@+#!/usr/bin/env python++# 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.++import re+import sys+import yaml+import time+import click+import pygit2+import logging++from enum import Enum+from pathlib import Path+from textwrap import dedent+from jinja2 import Template+from setuptools_scm import get_version+from setuptools_scm.version import simplified_semver_version, meta+++logging.basicConfig(+ level=logging.INFO,+ format="[%(asctime)s] %(levelname)s Crossbow %(message)s",+ datefmt="%H:%M:%S",+ stream=click.get_text_stream('stdout')+)+++class GitRemoteCallbacks(pygit2.RemoteCallbacks):++ def __init__(self, token):+ self.token = token+ self.attempts = 0+ super(GitRemoteCallbacks, self).__init__()++ def push_update_reference(self, refname, message):+ pass++ def update_tips(self, refname, old, new):+ pass++ def credentials(self, url, username_from_url, allowed_types):+ # its a libgit2 bug, that it infinitly retries the authentication+ self.attempts += 1++ if self.attempts >= 5:+ # pygit2 doesn't propagate the exception properly+ msg = 'Wrong oauth personal access token'+ print(msg)+ raise ValueError(msg)++ if allowed_types & pygit2.credentials.GIT_CREDTYPE_USERPASS_PLAINTEXT:+ return pygit2.UserPass(self.token, 'x-oauth-basic')+ else:+ return None+++class Platform(Enum):+ # in alphabetical order+ LINUX = 0+ OSX = 1+ WIN = 2++ @property+ def ci(self):+ if self is self.WIN:+ return 'appveyor'+ else:+ return 'travis'++ @property+ def filename(self):+ if self.ci == 'appveyor':+ return 'appveyor.yml'+ else:+ return '.travis.yml'+++class Target(object):++ def __init__(self, repo_path, template_directory=None):+ self.path = Path(repo_path).absolute()++ # relative to repository's path+ if template_directory is None:+ self.templates = self.path+ else:+ self.templates = self.path / template_directory++ # initialize a repo object to interact with arrow's git data+ self.repo = pygit2.Repository(str(self.path))++ msg = dedent('''+ Repository: {remote}@{branch}+ Commit SHA: {sha}+ Version: {version}+ ''')+ logging.info(msg.format(+ remote=self.current_remote.url,+ branch=self.current_branch.branch_name,+ sha=self.sha,+ version=self.version+ ))++ @property+ def sha(self):+ """Currently checked out commit's sha"""+ return self.repo.head.target++ @property+ def version(self):+ """Generate version number based on version control history"""+ # TODO(kszucs) use self.repo.describe() instead+ return get_version(self.path)++ @property+ def current_remote(self):+ remote_name = self.current_branch.upstream.remote_name+ return self.repo.remotes[remote_name]++ @property+ def current_branch(self):+ reference = self.repo.head.shorthand+ return self.repo.branches[reference]++ @property+ def description(self):+ return '[BUILD] {} of {}@{}'.format(self.version,+ self.current_remote.url,+ self.current_branch.branch_name)+++class Build(object):++ def __init__(self, target, name, platform, template, **params):+ assert isinstance(target, Target)+ assert isinstance(platform, Platform)++ self.name = name+ self.target = target+ self.platform = platform+ self.template = template+ self.params = params++ def render(self):+ path = Path(self.template)+ template = Template(path.read_text())+ return template.render(**self.params)++ def config_files(self):+ return {self.platform.filename: self.render()}++ @property+ def branch(self):+ return self.name++ @property+ def description(self):+ return self.target.description+++class Queue(object):++ def __init__(self, repo_path):+ self.path = Path(repo_path).absolute()+ self.repo = pygit2.Repository(str(self.path))+ self.updated_branches = []++ def _get_parent_commit(self):+ """Currently this always returns the HEAD of master"""+ master = self.repo.branches['master']+ return self.repo[master.target]++ def _get_or_create_branch(self, name):+ try:+ return self.repo.branches[name]+ except KeyError:+ parent = self._get_parent_commit()+ return self.repo.branches.create(name, parent)++ def _create_tree(self, files):+ parent = self._get_parent_commit()++ # creating the tree we are going to push based on master's tree+ builder = self.repo.TreeBuilder(parent.tree)++ for filename, content in files.items():+ # insert the file and creating the new filetree+ blob_id = self.repo.create_blob(content)+ builder.insert(filename, blob_id, pygit2.GIT_FILEMODE_BLOB)++ tree_id = builder.write()+ return tree_id++ def put(self, build):+ assert isinstance(build, Build)++ branch = self._get_or_create_branch(build.branch)+ tree_id = self._create_tree(build.config_files())++ # creating the new commit+ timestamp = int(time.time())++ name = next(self.repo.config.get_multivar('user.name'))+ email = next(self.repo.config.get_multivar('user.email'))++ author = pygit2.Signature('crossbow', '[email protected]',+ int(timestamp))+ committer = pygit2.Signature(name, email, int(timestamp))+ message = build.description++ reference = 'refs/heads/{}'.format(branch.branch_name)+ commit_id = self.repo.create_commit(reference, author, committer,+ message, tree_id, [branch.target])+ logging.info('{} created on {}'.format(+ commit_id, branch.branch_name))++ self.updated_branches.append(branch)++ def push(self, token):+ callbacks = GitRemoteCallbacks(token)++ remote = self.repo.remotes['origin']+ refs = [branch.name for branch in self.updated_branches]+ shorthands = [b.shorthand for b in self.updated_branches]++ remote.push(refs, callbacks=callbacks)+ self.updated_branches = []++ logging.info('\n - '.join(['\nUpdated branches:'] + shorthands))+++# this should be the mailing list+MESSAGE_EMAIL = '[email protected]'++[email protected]('task-regex', required=False)[email protected]('--config', help='Task configuration yml. Defaults to tasks.yml')[email protected]('--dry-run/--push', default=False,+ help='Just display the rendered CI configurations without '+ 'submitting them')[email protected]('--arrow-repo', default=None,+ help='Arrow\'s repository path. Defaults to the repository of '+ 'this script')[email protected]('--queue-repo', default=None,+ help='The repository path used for scheduling the tasks. '+ 'Defaults to crossbow directory placed next to arrow')[email protected]('--github-token', default=False,+ help='Oauth token for Github authentication')+def build(task_regex, config, dry_run, arrow_repo, queue_repo, github_token):+ if config is None:+ config = Path(__file__).absolute().parent / 'tasks.yml'+ else:+ config = Path(config)++ if arrow_repo is None:+ arrow_repo = Path(__file__).absolute().parents[2]+ else:+ arrow_repo = Path(arrow_repo)++ if queue_repo is None:+ queue_repo = arrow_repo.parent / 'crossbow'+ else:+ queue_repo = Path(queue_repo)++ arrow = Target(arrow_repo, template_directory='cd')+ queue = Queue(queue_repo)++ variables = {+ # these should be renamed+ 'PLAT': 'x86_64',+ 'EMAIL': MESSAGE_EMAIL,+ 'BUILD_REF': arrow.sha,+ 'ARROW_SHA': arrow.sha,+ 'ARROW_REPO': arrow.current_remote.url,+ 'ARROW_BRANCH': arrow.current_branch.branch_name,+ 'ARROW_VERSION': arrow.version,+ 'PYARROW_VERSION': arrow.version,+ }++ with config.open() as fp:+ tasks = yaml.load(fp)['tasks']++ for task in tasks:+ name = task['name']+ template = config.parent / task['template']+ platform = Platform[task['platform'].upper()]+ params = task.get('params') or {}+ params.update(variables)++ build = Build(arrow, name=name, platform=platform, template=template,+ **params)++ # Regex pattern the task name is matched against+ if task_regex is None or re.search(task_regex, build.name):+ if dry_run:+ logging.info('{}\n\n{}'.format(build.name, build.render()))+ else:+ queue.put(build) # create the commit++ if not dry_run:+ # push the changed branches+ queue.push(token=github_token)+++if __name__ == '__main__':+ build(auto_envvar_prefix='CROSSBOW')diff --git a/dev/tasks/linux-packages/.gitignore b/dev/tasks/linux-packages/.gitignorenew file mode 100644index 0000000000..b85fae7bd7--- /dev/null+++ b/dev/tasks/linux-packages/.gitignore@@ -0,0 +1,26 @@+# 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.++/*.tar.gz+/apt/.vagrant/+/apt/repositories/+/apt/tmp/+/apt/env.sh+/yum/.vagrant/+/yum/repositories/+/yum/tmp/+/yum/env.shdiff --git a/dev/tasks/linux-packages/README.md b/dev/tasks/linux-packages/README.mdnew file mode 100644index 0000000000..391deed23c--- /dev/null+++ b/dev/tasks/linux-packages/README.md@@ -0,0 +1,38 @@+<!---+ 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.+-->++# Linux packages for Apache Arrow C++ and GLib++## Requirements++ * Ruby+ * Docker+ * Tools to build tar.gz for Apache Arrow C++ and GLib++## How to build .deb packages++```console+% rake apt+```++## How to build .rpm packages++```console+% rake yum+```diff --git a/dev/tasks/linux-packages/Rakefile b/dev/tasks/linux-packages/Rakefilenew file mode 100644index 0000000000..1dec2d7cb3--- /dev/null+++ b/dev/tasks/linux-packages/Rakefile@@ -0,0 +1,112 @@+# -*- 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.++require_relative "package-task"++class ApacheArrowPackageTask < PackageTask+ def initialize+ release_time = latest_commit_time(arrow_source_dir)+ super("apache-arrow", detect_version(release_time), release_time)+ @rpm_package = "arrow"+ end++ private+ def arrow_source_dir+ File.join(File.dirname(__FILE__), "..", "..", "..")+ end++ def detect_version(release_time)+ pom_xml_path = File.join(arrow_source_dir, "java", "pom.xml")+ version = File.read(pom_xml_path).scan(/^ <version>(.+?)<\/version>/)[0][0]+ formatted_release_time = release_time.strftime("%Y%m%d")+ version.gsub(/-SNAPSHOT\z/) {".#{formatted_release_time}"}+ end++ def define_archive_task+ file @archive_name do+ if /\A\d+\.\d+\.\d+\z/ =~ @version+ download_archive+ else+ build_archive+ end+ end+ end++ def download_archive+ mirror_base_url = "https://www.apache.org/dyn/closer.cgi/arrow"+ mirror_list_url = "#{mirror_base_url}/arrow-#{@version}/#{@archive_name}"+ open(mirror_list_url) do |response|+ if /href="(.+?\/#{Regexp.escape(@archive_name)})"/ =~ response.read+ download($1, ".")+ end+ end+ end++ def build_archive+ cd(arrow_source_dir) do+ sh("git", "archive", "HEAD",+ "--prefix", "#{@archive_base_name}/",+ "--output", @archive_name)+ rm_f(@archive_base_name)+ sh("tar", "xf", @archive_name)+ rm_f(@archive_name)++ c_glib_tmp_dir = "c_glib_tmp"+ rm_rf(c_glib_tmp_dir)+ mkdir_p(c_glib_tmp_dir)+ cp_r(@archive_base_name, c_glib_tmp_dir)+ c_glib_dir = File.expand_path("#{@archive_base_name}/c_glib")+ rm_rf(c_glib_dir)+ cd("#{c_glib_tmp_dir}/#{@archive_base_name}") do+ build_type = "debug"+ cpp_dir = File.expand_path("cpp")+ cpp_build_dir = File.expand_path("cpp_build")+ mkdir_p(cpp_build_dir)+ cd(cpp_build_dir) do+ sh("cmake", cpp_dir,+ "-DCMAKE_BUILD_TYPE=#{build_type}",+ "-DARROW_BOOST_USE_SHARED=ON",+ "-DARROW_BUILD_TESTS=OFF")+ sh("make", "-j8")+ end+ cd("c_glib") do+ sh("./autogen.sh")+ sh("./configure",+ "--with-arrow-cpp-build-dir=#{cpp_build_dir}",+ "--with-arrow-cpp-build-type=#{build_type}",+ "--enable-gtk-doc")+ sh({"LD_LIBRARY_PATH" => "#{cpp_build_dir}/#{build_type}"},+ "make", "-j8")+ sh("make", "dist")+ tar_gz = Dir.glob("*.tar.gz").first+ sh("tar", "xf", tar_gz)+ mv(File.basename(tar_gz, ".tar.gz"),+ c_glib_dir)+ end+ end+ rm_rf(c_glib_tmp_dir)++ sh("tar", "czf", @full_archive_name, @archive_base_name)+ rm_rf(@archive_base_name)+ end+ end+end++task = ApacheArrowPackageTask.new+task.definediff --git a/dev/tasks/linux-packages/apt/build.sh b/dev/tasks/linux-packages/apt/build.shnew file mode 100755index 0000000000..f489d02697--- /dev/null+++ b/dev/tasks/linux-packages/apt/build.sh@@ -0,0 +1,68 @@+#!/bin/sh+# -*- sh-indentation: 2; sh-basic-offset: 2 -*-+#+# 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.++LANG=C++run()+{+ "$@"+ if test $? -ne 0; then+ echo "Failed $@"+ exit 1+ fi+}++. /host/env.sh++distribution=$(lsb_release --id --short | tr 'A-Z' 'a-z')+code_name=$(lsb_release --codename --short)+case "${distribution}" in+ debian)+ component=main+ ;;+ ubuntu)+ component=universe+ ;;+esac+specific_debian_dir="debian.${distribution}-${code_name}"++run mkdir -p build+run cp /host/tmp/${PACKAGE}-${VERSION}.tar.gz \+ build/${PACKAGE}_${VERSION}.orig.tar.gz+run cd build+run tar xfz ${PACKAGE}_${VERSION}.orig.tar.gz+run cd ${PACKAGE}-${VERSION}/+if [ -d "/host/tmp/${specific_debian_dir}" ]; then+ run cp -rp "/host/tmp/${specific_debian_dir}" debian+else+ run cp -rp "/host/tmp/debian" debian+fi+# export DEB_BUILD_OPTIONS=noopt+if [ "${DEBUG:-no}" = "yes" ]; then+ run debuild -us -uc+else+ run debuild -us -uc > /dev/null+fi+run cd -++package_initial=$(echo "${PACKAGE}" | sed -e 's/\(.\).*/\1/')+pool_dir="/host/repositories/${distribution}/pool/${code_name}/${component}/${package_initial}/${PACKAGE}"+run mkdir -p "${pool_dir}/"+run cp *.tar.* *.dsc *.deb "${pool_dir}/"diff --git a/dev/tasks/linux-packages/apt/debian-stretch/Dockerfile b/dev/tasks/linux-packages/apt/debian-stretch/Dockerfilenew file mode 100644index 0000000000..b803727500--- /dev/null+++ b/dev/tasks/linux-packages/apt/debian-stretch/Dockerfile@@ -0,0 +1,49 @@+# 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.++FROM debian:stretch++ENV DEBIAN_FRONTEND noninteractive++ARG DEBUG++RUN sed -i'' -e 's/main$/main contrib non-free/g' /etc/apt/sources.list++RUN \+ quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \+ apt update ${quiet} && \+ apt install -y -V ${quiet} \+ autoconf-archive \+ build-essential \+ cmake \+ debhelper\+ devscripts \+ git \+ gtk-doc-tools \+ libboost-filesystem-dev \+ libboost-regex-dev \+ libboost-system-dev \+ libgirepository1.0-dev \+ libglib2.0-doc \+ libjemalloc-dev \+ lsb-release \+ nvidia-cuda-toolkit \+ pkg-config \+ python3-dev \+ python3-numpy && \+ apt clean && \+ rm -rf /var/lib/apt/lists/*diff --git a/dev/tasks/linux-packages/apt/descriptor.json b/dev/tasks/linux-packages/apt/descriptor.jsonnew file mode 100644index 0000000000..943b00d853--- /dev/null+++ b/dev/tasks/linux-packages/apt/descriptor.json@@ -0,0 +1,55 @@+{+ "package": {+ "name": "APT",+ "repo": "apache-arrow-apt",+ "subject": "kou",+ "licenses": ["Apache-2.0"],+ "vcs_url": "htttps://github.com/apache/arrow.git"+ },+ "version": {+ "name": "dev"+ },+ "files": [+ {+ "includePattern": "dev/tasks/linux-packages/apt/repositories/([^/]+)/pool/stretch/main/a/apache-arrow/([^/]+\\.deb)\\z",+ "uploadPattern": "pool/stretch/main/$2",+ "matrixParams": {+ "deb_distribution": "stretch",+ "deb_component": "main",+ "deb_architecture": "amd64",+ "override": 1+ }+ },+ {+ "includePattern": "dev/tasks/linux-packages/apt/repositories/([^/]+)/pool/trusty/universe/a/apache-arrow/([^/]+\\.deb)\\z",+ "uploadPattern": "pool/trusty/universe/$2",+ "matrixParams": {+ "deb_distribution": "trusty",+ "deb_component": "universe",+ "deb_architecture": "amd64",+ "override": 1+ }+ },+ {+ "includePattern": "dev/tasks/linux-packages/apt/repositories/([^/]+)/pool/xenial/universe/a/apache-arrow/([^/]+\\.deb)\\z",+ "uploadPattern": "pool/xenial/universe/$2",+ "matrixParams": {+ "deb_distribution": "xenial",+ "deb_component": "universe",+ "deb_architecture": "amd64",+ "override": 1+ }+ },+ {+ "includePattern": "dev/tasks/linux-packages/apt/repositories/([^/]+)/pool/artful/universe/a/apache-arrow/([^/]+\\.deb)\\z",+ "uploadPattern": "pool/artful/universe/$2",+ "matrixParams": {+ "deb_distribution": "artful",+ "deb_component": "universe",+ "deb_architecture": "amd64",+ "override": 1+ }+ }+ ],+ "publish": true+}diff --git a/dev/tasks/linux-packages/apt/ubuntu-artful/Dockerfile b/dev/tasks/linux-packages/apt/ubuntu-artful/Dockerfilenew file mode 100644index 0000000000..d953000671--- /dev/null+++ b/dev/tasks/linux-packages/apt/ubuntu-artful/Dockerfile@@ -0,0 +1,47 @@+# 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.++FROM ubuntu:17.10++ENV DEBIAN_FRONTEND noninteractive++ARG DEBUG++RUN \+ quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \+ apt update ${quiet} && \+ apt install -y -V ${quiet} \+ autoconf-archive \+ build-essential \+ cmake \+ debhelper\+ devscripts \+ git \+ gtk-doc-tools \+ libboost-filesystem-dev \+ libboost-regex-dev \+ libboost-system-dev \+ libgirepository1.0-dev \+ libglib2.0-doc \+ libjemalloc-dev \+ lsb-release \+ nvidia-cuda-toolkit \+ pkg-config \+ python3-dev \+ python3-numpy && \+ apt clean && \+ rm -rf /var/lib/apt/lists/*diff --git a/dev/tasks/linux-packages/apt/ubuntu-trusty/Dockerfile b/dev/tasks/linux-packages/apt/ubuntu-trusty/Dockerfilenew file mode 100644index 0000000000..dcb343b020--- /dev/null+++ b/dev/tasks/linux-packages/apt/ubuntu-trusty/Dockerfile@@ -0,0 +1,43 @@+# 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.++FROM ubuntu:14.04++ENV DEBIAN_FRONTEND noninteractive++ARG DEBUG++RUN \+ quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \+ apt update ${quiet} && \+ apt install -y -V ${quiet} \+ build-essential \+ cmake3 \+ debhelper\+ devscripts \+ git \+ gtk-doc-tools \+ libboost-filesystem-dev \+ libboost-regex-dev \+ libboost-system-dev \+ libgirepository1.0-dev \+ libglib2.0-doc \+ libjemalloc-dev \+ lsb-release \+ pkg-config && \+ apt-get clean && \+ rm -rf /var/lib/apt/lists/*diff --git a/dev/tasks/linux-packages/apt/ubuntu-xenial/Dockerfile b/dev/tasks/linux-packages/apt/ubuntu-xenial/Dockerfilenew file mode 100644index 0000000000..8448b2856c--- /dev/null+++ b/dev/tasks/linux-packages/apt/ubuntu-xenial/Dockerfile@@ -0,0 +1,48 @@+# 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.++FROM ubuntu:16.04++ENV DEBIAN_FRONTEND noninteractive++ARG DEBUG++RUN \+ quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \+ apt update ${quiet} && \+ apt install -y -V ${quiet} \+ autoconf-archive \+ build-essential \+ cmake \+ debhelper\+ devscripts \+ dh-autoreconf \+ git \+ gtk-doc-tools \+ libboost-filesystem-dev \+ libboost-regex-dev \+ libboost-system-dev \+ libgirepository1.0-dev \+ libglib2.0-doc \+ libjemalloc-dev \+ lsb-release \+ nvidia-cuda-toolkit \+ pkg-config \+ python3-dev \+ python3-numpy && \+ apt clean && \+ rm -rf /var/lib/apt/lists/*diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/changelog b/dev/tasks/linux-packages/debian.ubuntu-trusty/changelognew file mode 100644index 0000000000..ebfe9359a9--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/changelog@@ -0,0 +1,42 @@+apache-arrow (0.9.0-1) unstable; urgency=low++ * New upstream release.++ -- Kouhei Sutou <[email protected]> Fri, 16 Mar 2018 16:56:31 -0000++apache-arrow (0.8.0-2) unstable; urgency=low++ * Fix .typelib path.+ Reported by Mike Sam. Thanks!!!++ -- Kouhei Sutou <[email protected]> Thu, 25 Jan 2018 21:44:11 +0900++apache-arrow (0.8.0-1) unstable; urgency=low++ * New upstream release.++ -- Uwe L. Korn <[email protected]> Sun, 17 Dec 2017 20:24:44 -0000++apache-arrow (0.7.1-1) unstable; urgency=low++ * New upstream release.++ -- Kouhei Sutou <[email protected]> Wed, 27 Sep 2017 13:19:05 -0000++apache-arrow (0.7.0-1) unstable; urgency=low++ * New upstream release.++ -- Wes McKinney <[email protected]> Tue, 12 Sep 2017 22:01:14 -0000++apache-arrow (0.6.0-1) unstable; urgency=low++ * New upstream release.++ -- Kouhei Sutou <[email protected]> Fri, 11 Aug 2017 21:27:51 -0000++apache-arrow (0.6.0.20170802-1) unstable; urgency=low++ * New upstream release.++ -- Kouhei Sutou <[email protected]> Wed, 02 Aug 2017 22:28:18 -0000diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/compat b/dev/tasks/linux-packages/debian.ubuntu-trusty/compatnew file mode 100644index 0000000000..ec635144f6--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/compat@@ -0,0 +1 @@+9diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/control b/dev/tasks/linux-packages/debian.ubuntu-trusty/controlnew file mode 100644index 0000000000..9732ebdcae--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/control@@ -0,0 +1,93 @@+Source: apache-arrow+Section: devel+Priority: optional+Maintainer: Kouhei Sutou <[email protected]>+Build-Depends:+ debhelper (>= 9),+ pkg-config,+ cmake,+ git,+ libboost-system-dev,+ libboost-filesystem-dev,+ libboost-regex-dev,+ libjemalloc-dev,+ libgirepository1.0-dev,+ gtk-doc-tools,+ gobject-introspection+Build-Depends-Indep: libglib2.0-doc+Standards-Version: 3.9.6+Homepage: https://arrow.apache.org/++Package: libarrow0+Section: libs+Architecture: any+Multi-Arch: same+Pre-Depends: ${misc:Pre-Depends}+Depends:+ ${misc:Depends},+ ${shlibs:Depends},+ libjemalloc1+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides library files.++Package: libarrow-dev+Section: libdevel+Architecture: any+Multi-Arch: same+Depends:+ ${misc:Depends},+ libarrow0 (= ${binary:Version})+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides header files.++Package: libarrow-glib0+Section: libs+Architecture: any+Multi-Arch: same+Pre-Depends: ${misc:Pre-Depends}+Depends:+ ${misc:Depends},+ ${shlibs:Depends},+ libarrow0 (= ${binary:Version})+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides library files.++Package: gir1.2-arrow-1.0+Section: introspection+Architecture: any+Multi-Arch: same+Depends:+ ${gir:Depends},+ ${misc:Depends}+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides GObject Introspection typelib files.++Package: libarrow-glib-dev+Section: libdevel+Architecture: any+Multi-Arch: same+Depends:+ ${misc:Depends},+ libglib2.0-dev,+ libarrow-dev (= ${binary:Version}),+ libarrow-glib0 (= ${binary:Version}),+ gir1.2-arrow-1.0 (= ${binary:Version})+Suggests: libarrow-glib-doc+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides header files.++Package: libarrow-glib-doc+Section: doc+Architecture: all+Multi-Arch: foreign+Depends:+ ${misc:Depends}+Recommends: libglib2.0-doc+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides documentations.diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/copyright b/dev/tasks/linux-packages/debian.ubuntu-trusty/copyrightnew file mode 100644index 0000000000..9db0ea76f7--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/copyright@@ -0,0 +1,193 @@+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/+Upstream-Name: Apache Arrow+Upstream-Contact: <[email protected]>+Source: https://dist.apache.org/repos/dist/release/arrow/++Files: *+Copyright: 2016 The Apache Software Foundation+License: Apache-2.0++Files: TODO for "This product includes software from the SFrame project"+Copyright: 2015 Dato, Inc.+ 2009 Carnegie Mellon University.+License: BSD-3-clause++Files: TODO for "This product includes software from the Numpy project"+Copyright: 1995, 1996, 1997 Jim Hugunin, [email protected]+ 2005 Travis E. Oliphant [email protected] Brigham Young University+License: BSD-3-clause++Files: TODO for "This product includes software from the Feather project"+Copyright: TODO+License: Apache-2.0++Files: TODO for "This product includes software from the DyND project"+Copyright: TODO+License: BSD-2-clause++Files: TODO for "This product includes software from the LLVM project"+Copyright: 2003-2007 University of Illinois at Urbana-Champaign.+License: U-OF-I-BSD-LIKE++Files: TODO for "This product includes software from the google-lint project"+Copyright: 2009 Google Inc. All rights reserved.+License: BSD-3-clause++Files: TODO for "This product includes software from the mman-win32 project"+Copyright: 2010 kutuzov.viktor.84+License: MIT++Files: TODO for "This product includes software from the LevelDB project"+Copyright: 2011 The LevelDB Authors. All rights reserved.+License: BSD-3-clause++Files: TODO for "This product includes software from the CMake project"+Copyright: 2001-2009 Kitware, Inc.+ 2012-2014 Continuum Analytics, Inc.+License: BSD-3-clause++Files: TODO for "This product includes software from https://github.com/matthew-brett/multibuild"+Copyright: 2013-2016, Matt Terry and Matthew Brett; all rights reserved.+License: BSD-2-clause++Files: TODO for "This product includes software from the Ibis project"+Copyright: 2015 Cloudera, Inc.+License: Apache-2.0++Files: TODO for "This product includes code from Apache Kudu"+Copyright: 2016 The Apache Software Foundation+License: Apache-2.0++License: Apache-2.0+ 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.+ .+ On Debian systems, the full text of the Apache Software License version 2 can+ be found in the file `/usr/share/common-licenses/Apache-2.0'.++License: BSD-3-clause+ Redistribution and use in source and binary forms, with or without+ modification, are permitted provided that the following conditions+ are met:+ .+ 1. Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.+ 2. Redistributions in binary form must reproduce the above copyright+ notice, this list of conditions and the following disclaimer in the+ documentation and/or other materials provided with the distribution.+ 3. Neither the name of the University nor the names of its contributors+ may be used to endorse or promote products derived from this software+ without specific prior written permission.+ .+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF+ SUCH DAMAGE.++License: BSD-2-clause+ Redistribution and use in source and binary forms, with or without+ modification, are permitted provided that the following conditions+ are met:+ .+ 1) Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.+ .+ 2) Redistributions in binary form must reproduce the above copyright+ notice, this list of conditions and the following disclaimer in the+ documentation and/or other materials provided with the distribution.+ .+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED+ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY+ WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE+ POSSIBILITY OF SUCH DAMAGE.++License: U-OF-I-BSD-LIKE+ ==============================================================================+ LLVM Release License+ ==============================================================================+ University of Illinois/NCSA+ Open Source License+ .+ Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.+ All rights reserved.+ .+ Developed by:+ .+ LLVM Team+ .+ University of Illinois at Urbana-Champaign+ .+ http://llvm.org+ .+ Permission is hereby granted, free of charge, to any person obtaining a copy of+ this software and associated documentation files (the "Software"), to deal with+ the Software without restriction, including without limitation the rights to+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies+ of the Software, and to permit persons to whom the Software is furnished to do+ so, subject to the following conditions:+ .+ * Redistributions of source code must retain the above copyright notice,+ this list of conditions and the following disclaimers.+ .+ * Redistributions in binary form must reproduce the above copyright notice,+ this list of conditions and the following disclaimers in the+ documentation and/or other materials provided with the distribution.+ .+ * Neither the names of the LLVM Team, University of Illinois at+ Urbana-Champaign, nor the names of its contributors may be used to+ endorse or promote products derived from this Software without specific+ prior written permission.+ .+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+ CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE+ SOFTWARE.++License: MIT+ Permission is hereby granted, free of charge, to any person obtaining a copy+ of this software and associated documentation files (the "Software"), to deal+ in the Software without restriction, including without limitation the rights+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+ copies of the Software, and to permit persons to whom the Software is+ furnished to do so, subject to the following conditions:+ .+ The above copyright notice and this permission notice shall be included in+ all copies or substantial portions of the Software.+ .+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+ THE SOFTWARE.diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/gir1.2-arrow-1.0.install b/dev/tasks/linux-packages/debian.ubuntu-trusty/gir1.2-arrow-1.0.installnew file mode 100644index 0000000000..c395f7aca5--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/gir1.2-arrow-1.0.install@@ -0,0 +1 @@+usr/lib/girepository-1.0/diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-dev.install b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-dev.installnew file mode 100644index 0000000000..62de6ce571--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-dev.install@@ -0,0 +1,5 @@+usr/include/arrow/+usr/lib/*/libarrow.a+usr/lib/*/libarrow.so+usr/lib/*/pkgconfig/arrow.pc+usr/lib/*/pkgconfig/arrow-compute.pcdiff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-dev.install b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-dev.installnew file mode 100644index 0000000000..827e4cf31b--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-dev.install@@ -0,0 +1,6 @@+usr/include/arrow-glib/+usr/lib/*/libarrow-glib.a+usr/lib/*/libarrow-glib.so+usr/lib/*/pkgconfig/arrow-glib.pc+usr/share/gir-1.0/+usr/share/arrow-glib/example/diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.doc-base b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.doc-basenew file mode 100644index 0000000000..42bcf3e3b8--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.doc-base@@ -0,0 +1,9 @@+Document: arrow-glib+Title: arrow-glib Reference Manual+Author: Kouhei Sutou+Abstract: Apache Arrow is a data processing library for analysis.+Section: Programming++Format: HTML+Index: /usr/share/doc/libarrow-glib-doc/arrow-glib/index.html+Files: /usr/share/doc/libarrow-glib-doc/arrow-glib/*.htmldiff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.install b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.installnew file mode 100644index 0000000000..7aa63a98fe--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.install@@ -0,0 +1 @@+usr/share/doc/libarrow-glib-doc/arrow-glib/diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.links b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.linksnew file mode 100644index 0000000000..0cf945857e--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib-doc.links@@ -0,0 +1,3 @@+usr/share/doc/libglib2.0-doc/glib usr/share/doc/libarrow-glib-doc/glib+usr/share/doc/libglib2.0-doc/gobject usr/share/doc/libarrow-glib-doc/gobject+usr/share/doc/libarrow-glib-doc/arrow-glib usr/share/gtk-doc/html/arrow-glibdiff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib0.install b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib0.installnew file mode 100644index 0000000000..ec369d1536--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-glib0.install@@ -0,0 +1 @@+usr/lib/*/libarrow-glib.so.*diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-python0.install b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-python0.installnew file mode 100644index 0000000000..eef3e66483--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow-python0.install@@ -0,0 +1 @@+usr/lib/*/libarrow_python.so.*diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow0.install b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow0.installnew file mode 100644index 0000000000..98ef2139cb--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/libarrow0.install@@ -0,0 +1 @@+usr/lib/*/libarrow.so.*diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/patches/series b/dev/tasks/linux-packages/debian.ubuntu-trusty/patches/seriesnew file mode 100644index 0000000000..e69de29bb2diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/rules b/dev/tasks/linux-packages/debian.ubuntu-trusty/rulesnew file mode 100755index 0000000000..783b7a75aa--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/rules@@ -0,0 +1,52 @@+#!/usr/bin/make -f+# -*- makefile-gmake -*-+#+# Uncomment this to turn on verbose mode.+#export DH_VERBOSE=1+# This has to be exported to make some magic below work.+export DH_OPTIONS++BUILD_TYPE=release++%:+ dh $@ --with gir++override_dh_auto_configure:+ dh_auto_configure \+ --sourcedirectory=cpp \+ --builddirectory=cpp_build \+ -- \+ -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \+ -DARROW_BUILD_TESTS=OFF \+ -DARROW_ORC=ON+ dh_auto_configure \+ --sourcedirectory=c_glib \+ --builddirectory=c_glib_build \+ -- \+ --with-arrow-cpp-build-dir=$${PWD}/cpp_build \+ --with-arrow-cpp-build-type=$(BUILD_TYPE) \+ --enable-gtk-doc \+ --with-html-dir=\$${prefix}/share/doc/libarrow-glib-doc++override_dh_auto_build:+ dh_auto_build \+ --sourcedirectory=cpp \+ --builddirectory=cpp_build+ env \+ LD_LIBRARY_PATH=$${PWD}/cpp_build/$(BUILD_TYPE) \+ dh_auto_build \+ --sourcedirectory=c_glib \+ --builddirectory=c_glib_build++override_dh_auto_install:+ dh_auto_install \+ --sourcedirectory=cpp \+ --builddirectory=cpp_build+ dh_auto_install \+ --sourcedirectory=c_glib \+ --builddirectory=c_glib_build+ mv debian/tmp/usr/lib/*/girepository-1.0/ \+ debian/tmp/usr/lib/++# disable 'make check'.+override_dh_auto_test:diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/source/format b/dev/tasks/linux-packages/debian.ubuntu-trusty/source/formatnew file mode 100644index 0000000000..163aaf8d82--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/source/format@@ -0,0 +1 @@+3.0 (quilt)diff --git a/dev/tasks/linux-packages/debian.ubuntu-trusty/watch b/dev/tasks/linux-packages/debian.ubuntu-trusty/watchnew file mode 100644index 0000000000..5cb3f00915--- /dev/null+++ b/dev/tasks/linux-packages/debian.ubuntu-trusty/watch@@ -0,0 +1,2 @@+version=3+https://dist.apache.org/repos/dist/release/arrow/arrow-(.+)/apache-arrow-(.+).tar.gzdiff --git a/dev/tasks/linux-packages/debian/changelog b/dev/tasks/linux-packages/debian/changelognew file mode 100644index 0000000000..9e7a2eea36--- /dev/null+++ b/dev/tasks/linux-packages/debian/changelog@@ -0,0 +1,45 @@+apache-arrow (0.9.0-1) unstable; urgency=low++ * New upstream release.++ -- Kouhei Sutou <[email protected]> Fri, 16 Mar 2018 16:56:31 -0000++apache-arrow (0.8.0-1) unstable; urgency=low++ * New upstream release.++ * Add libarrow-gpu-glib0, libarrow-gpu-glib-dev and gir1.2-arrow-gpu-1.0.++ -- Uwe L. Korn <[email protected]> Sun, 17 Dec 2017 20:24:44 -0000++apache-arrow (0.7.1-2) unstable; urgency=low++ * Add libarrow-gpu0 and libarrow-gpu-dev.++ * Add libarrow-python-dev.++ -- Kouhei Sutou <[email protected]> Sun, 29 Oct 2017 21:59:13 +0900++apache-arrow (0.7.1-1) unstable; urgency=low++ * New upstream release.++ -- Kouhei Sutou <[email protected]> Wed, 27 Sep 2017 13:19:05 -0000++apache-arrow (0.7.0-1) unstable; urgency=low++ * New upstream release.++ -- Wes McKinney <[email protected]> Tue, 12 Sep 2017 22:01:14 -0000++apache-arrow (0.6.0-1) unstable; urgency=low++ * New upstream release.++ -- Kouhei Sutou <[email protected]> Fri, 11 Aug 2017 21:27:51 -0000++apache-arrow (0.6.0.20170802-1) unstable; urgency=low++ * New upstream release.++ -- Kouhei Sutou <[email protected]> Wed, 02 Aug 2017 22:28:18 -0000diff --git a/dev/tasks/linux-packages/debian/compat b/dev/tasks/linux-packages/debian/compatnew file mode 100644index 0000000000..f599e28b8a--- /dev/null+++ b/dev/tasks/linux-packages/debian/compat@@ -0,0 +1 @@+10diff --git a/dev/tasks/linux-packages/debian/control b/dev/tasks/linux-packages/debian/controlnew file mode 100644index 0000000000..2534201f6d--- /dev/null+++ b/dev/tasks/linux-packages/debian/control@@ -0,0 +1,192 @@+Source: apache-arrow+Section: devel+Priority: optional+Maintainer: Kouhei Sutou <[email protected]>+Build-Depends:+ debhelper (>= 9.20160115),+ dh-autoreconf,+ autoconf-archive,+ pkg-config,+ cmake,+ git,+ libboost-system-dev,+ libboost-filesystem-dev,+ libboost-regex-dev,+ libjemalloc-dev,+ python3-dev,+ python3-numpy,+ nvidia-cuda-toolkit,+ libgirepository1.0-dev,+ gtk-doc-tools,+ gobject-introspection+Build-Depends-Indep: libglib2.0-doc+Standards-Version: 3.9.6+Homepage: https://arrow.apache.org/++Package: libarrow0+Section: libs+Architecture: any+Multi-Arch: same+Pre-Depends: ${misc:Pre-Depends}+Depends:+ ${misc:Depends},+ ${shlibs:Depends},+ libjemalloc1+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides library files.++Package: libarrow-python0+Section: libs+Architecture: any+Multi-Arch: same+Pre-Depends: ${misc:Pre-Depends}+Depends:+ ${misc:Depends},+ ${shlibs:Depends},+ libarrow0 (= ${binary:Version}),+ python3,+ python3-numpy+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides library files for Python support.++Package: libarrow-gpu0+Section: libs+Architecture: any+Multi-Arch: same+Pre-Depends: ${misc:Pre-Depends}+Depends:+ ${misc:Depends},+ ${shlibs:Depends},+ libarrow0 (= ${binary:Version}),+ libnvidia-fatbinaryloader,+ libcuda1+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides library files for GPU support.++Package: libarrow-dev+Section: libdevel+Architecture: any+Multi-Arch: same+Depends:+ ${misc:Depends},+ libarrow0 (= ${binary:Version})+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides header files.++Package: libarrow-python-dev+Section: libdevel+Architecture: any+Multi-Arch: same+Depends:+ ${misc:Depends},+ libarrow-dev (= ${binary:Version}),+ libarrow-python0 (= ${binary:Version})+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides header files for Python support.++Package: libarrow-gpu-dev+Section: libdevel+Architecture: any+Multi-Arch: same+Depends:+ ${misc:Depends},+ libarrow-dev (= ${binary:Version}),+ libarrow-gpu0 (= ${binary:Version})+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides header files for GPU support.++Package: libarrow-glib0+Section: libs+Architecture: any+Multi-Arch: same+Pre-Depends: ${misc:Pre-Depends}+Depends:+ ${misc:Depends},+ ${shlibs:Depends},+ libarrow0 (= ${binary:Version})+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides library files.++Package: gir1.2-arrow-1.0+Section: introspection+Architecture: any+Multi-Arch: same+Depends:+ ${gir:Depends},+ ${misc:Depends}+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides GObject Introspection typelib files.++Package: libarrow-glib-dev+Section: libdevel+Architecture: any+Multi-Arch: same+Depends:+ ${misc:Depends},+ libglib2.0-dev,+ libarrow-dev (= ${binary:Version}),+ libarrow-glib0 (= ${binary:Version}),+ gir1.2-arrow-1.0 (= ${binary:Version})+Suggests: libarrow-glib-doc+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides header files.++Package: libarrow-glib-doc+Section: doc+Architecture: all+Multi-Arch: foreign+Depends:+ ${misc:Depends}+Recommends: libglib2.0-doc+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides documentations.++Package: libarrow-gpu-glib0+Section: libs+Architecture: any+Multi-Arch: same+Pre-Depends: ${misc:Pre-Depends}+Depends:+ ${misc:Depends},+ ${shlibs:Depends},+ libarrow-glib0 (= ${binary:Version}),+ libarrow-gpu0 (= ${binary:Version})+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides library files for GPU support.++Package: gir1.2-arrow-gpu-1.0+Section: introspection+Architecture: any+Multi-Arch: same+Depends:+ ${gir:Depends},+ ${misc:Depends}+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides GObject Introspection typelib files for GPU support.++Package: libarrow-gpu-glib-dev+Section: libdevel+Architecture: any+Multi-Arch: same+Depends:+ ${misc:Depends},+ libarrow-dev (= ${binary:Version}),+ libarrow-glib-dev (= ${binary:Version}),+ libarrow-gpu-dev (= ${binary:Version}),+ libarrow-gpu-glib0 (= ${binary:Version}),+ gir1.2-arrow-gpu-1.0 (= ${binary:Version})+Description: Apache Arrow is a data processing library for analysis+ .+ This package provides header files for GPU support.diff --git a/dev/tasks/linux-packages/debian/copyright b/dev/tasks/linux-packages/debian/copyrightnew file mode 100644index 0000000000..9db0ea76f7--- /dev/null+++ b/dev/tasks/linux-packages/debian/copyright@@ -0,0 +1,193 @@+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/+Upstream-Name: Apache Arrow+Upstream-Contact: <[email protected]>+Source: https://dist.apache.org/repos/dist/release/arrow/++Files: *+Copyright: 2016 The Apache Software Foundation+License: Apache-2.0++Files: TODO for "This product includes software from the SFrame project"+Copyright: 2015 Dato, Inc.+ 2009 Carnegie Mellon University.+License: BSD-3-clause++Files: TODO for "This product includes software from the Numpy project"+Copyright: 1995, 1996, 1997 Jim Hugunin, [email protected]+ 2005 Travis E. Oliphant [email protected] Brigham Young University+License: BSD-3-clause++Files: TODO for "This product includes software from the Feather project"+Copyright: TODO+License: Apache-2.0++Files: TODO for "This product includes software from the DyND project"+Copyright: TODO+License: BSD-2-clause++Files: TODO for "This product includes software from the LLVM project"+Copyright: 2003-2007 University of Illinois at Urbana-Champaign.+License: U-OF-I-BSD-LIKE++Files: TODO for "This product includes software from the google-lint project"+Copyright: 2009 Google Inc. All rights reserved.+License: BSD-3-clause++Files: TODO for "This product includes software from the mman-win32 project"+Copyright: 2010 kutuzov.viktor.84+License: MIT++Files: TODO for "This product includes software from the LevelDB project"+Copyright: 2011 The LevelDB Authors. All rights reserved.+License: BSD-3-clause++Files: TODO for "This product includes software from the CMake project"+Copyright: 2001-2009 Kitware, Inc.+ 2012-2014 Continuum Analytics, Inc.+License: BSD-3-clause++Files: TODO for "This product includes software from https://github.com/matthew-brett/multibuild"+Copyright: 2013-2016, Matt Terry and Matthew Brett; all rights reserved.+License: BSD-2-clause++Files: TODO for "This product includes software from the Ibis project"+Copyright: 2015 Cloudera, Inc.+License: Apache-2.0++Files: TODO for "This product includes code from Apache Kudu"+Copyright: 2016 The Apache Software Foundation+License: Apache-2.0++License: Apache-2.0+ 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.+ .+ On Debian systems, the full text of the Apache Software License version 2 can+ be found in the file `/usr/share/common-licenses/Apache-2.0'.++License: BSD-3-clause+ Redistribution and use in source and binary forms, with or without+ modification, are permitted provided that the following conditions+ are met:+ .+ 1. Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.+ 2. Redistributions in binary form must reproduce the above copyright+ notice, this list of conditions and the following disclaimer in the+ documentation and/or other materials provided with the distribution.+ 3. Neither the name of the University nor the names of its contributors+ may be used to endorse or promote products derived from this software+ without specific prior written permission.+ .+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF+ SUCH DAMAGE.++License: BSD-2-clause+ Redistribution and use in source and binary forms, with or without+ modification, are permitted provided that the following conditions+ are met:+ .+ 1) Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.+ .+ 2) Redistributions in binary form must reproduce the above copyright+ notice, this list of conditions and the following disclaimer in the+ documentation and/or other materials provided with the distribution.+ .+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED+ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY+ WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE+ POSSIBILITY OF SUCH DAMAGE.++License: U-OF-I-BSD-LIKE+ ==============================================================================+ LLVM Release License+ ==============================================================================+ University of Illinois/NCSA+ Open Source License+ .+ Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.+ All rights reserved.+ .+ Developed by:+ .+ LLVM Team+ .+ University of Illinois at Urbana-Champaign+ .+ http://llvm.org+ .+ Permission is hereby granted, free of charge, to any person obtaining a copy of+ this software and associated documentation files (the "Software"), to deal with+ the Software without restriction, including without limitation the rights to+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies+ of the Software, and to permit persons to whom the Software is furnished to do+ so, subject to the following conditions:+ .+ * Redistributions of source code must retain the above copyright notice,+ this list of conditions and the following disclaimers.+ .+ * Redistributions in binary form must reproduce the above copyright notice,+ this list of conditions and the following disclaimers in the+ documentation and/or other materials provided with the distribution.+ .+ * Neither the names of the LLVM Team, University of Illinois at+ Urbana-Champaign, nor the names of its contributors may be used to+ endorse or promote products derived from this Software without specific+ prior written permission.+ .+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+ CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE+ SOFTWARE.++License: MIT+ Permission is hereby granted, free of charge, to any person obtaining a copy+ of this software and associated documentation files (the "Software"), to deal+ in the Software without restriction, including without limitation the rights+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+ copies of the Software, and to permit persons to whom the Software is+ furnished to do so, subject to the following conditions:+ .+ The above copyright notice and this permission notice shall be included in+ all copies or substantial portions of the Software.+ .+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+ THE SOFTWARE.diff --git a/dev/tasks/linux-packages/debian/gir1.2-arrow-1.0.install b/dev/tasks/linux-packages/debian/gir1.2-arrow-1.0.installnew file mode 100644index 0000000000..e0197fcd32--- /dev/null+++ b/dev/tasks/linux-packages/debian/gir1.2-arrow-1.0.install@@ -0,0 +1 @@+usr/lib/*/girepository-1.0/Arrow-1.0.typelibdiff --git a/dev/tasks/linux-packages/debian/gir1.2-arrow-gpu-1.0.install b/dev/tasks/linux-packages/debian/gir1.2-arrow-gpu-1.0.installnew file mode 100644index 0000000000..10e0ca983b--- /dev/null+++ b/dev/tasks/linux-packages/debian/gir1.2-arrow-gpu-1.0.install@@ -0,0 +1 @@+usr/lib/*/girepository-1.0/ArrowGPU-1.0.typelibdiff --git a/dev/tasks/linux-packages/debian/libarrow-dev.install b/dev/tasks/linux-packages/debian/libarrow-dev.installnew file mode 100644index 0000000000..62de6ce571--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-dev.install@@ -0,0 +1,5 @@+usr/include/arrow/+usr/lib/*/libarrow.a+usr/lib/*/libarrow.so+usr/lib/*/pkgconfig/arrow.pc+usr/lib/*/pkgconfig/arrow-compute.pcdiff --git a/dev/tasks/linux-packages/debian/libarrow-glib-dev.install b/dev/tasks/linux-packages/debian/libarrow-glib-dev.installnew file mode 100644index 0000000000..e59a1f94d6--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-glib-dev.install@@ -0,0 +1,6 @@+usr/include/arrow-glib/+usr/lib/*/libarrow-glib.a+usr/lib/*/libarrow-glib.so+usr/lib/*/pkgconfig/arrow-glib.pc+usr/share/gir-1.0/Arrow-1.0.gir+usr/share/arrow-glib/example/diff --git a/dev/tasks/linux-packages/debian/libarrow-glib-doc.doc-base b/dev/tasks/linux-packages/debian/libarrow-glib-doc.doc-basenew file mode 100644index 0000000000..42bcf3e3b8--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-glib-doc.doc-base@@ -0,0 +1,9 @@+Document: arrow-glib+Title: arrow-glib Reference Manual+Author: Kouhei Sutou+Abstract: Apache Arrow is a data processing library for analysis.+Section: Programming++Format: HTML+Index: /usr/share/doc/libarrow-glib-doc/arrow-glib/index.html+Files: /usr/share/doc/libarrow-glib-doc/arrow-glib/*.htmldiff --git a/dev/tasks/linux-packages/debian/libarrow-glib-doc.install b/dev/tasks/linux-packages/debian/libarrow-glib-doc.installnew file mode 100644index 0000000000..7aa63a98fe--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-glib-doc.install@@ -0,0 +1 @@+usr/share/doc/libarrow-glib-doc/arrow-glib/diff --git a/dev/tasks/linux-packages/debian/libarrow-glib-doc.links b/dev/tasks/linux-packages/debian/libarrow-glib-doc.linksnew file mode 100644index 0000000000..0cf945857e--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-glib-doc.links@@ -0,0 +1,3 @@+usr/share/doc/libglib2.0-doc/glib usr/share/doc/libarrow-glib-doc/glib+usr/share/doc/libglib2.0-doc/gobject usr/share/doc/libarrow-glib-doc/gobject+usr/share/doc/libarrow-glib-doc/arrow-glib usr/share/gtk-doc/html/arrow-glibdiff --git a/dev/tasks/linux-packages/debian/libarrow-glib0.install b/dev/tasks/linux-packages/debian/libarrow-glib0.installnew file mode 100644index 0000000000..ec369d1536--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-glib0.install@@ -0,0 +1 @@+usr/lib/*/libarrow-glib.so.*diff --git a/dev/tasks/linux-packages/debian/libarrow-gpu-dev.install b/dev/tasks/linux-packages/debian/libarrow-gpu-dev.installnew file mode 100644index 0000000000..1892fb8515--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-gpu-dev.install@@ -0,0 +1,3 @@+usr/lib/*/libarrow_gpu.a+usr/lib/*/libarrow_gpu.so+usr/lib/*/pkgconfig/arrow-gpu.pcdiff --git a/dev/tasks/linux-packages/debian/libarrow-gpu-glib-dev.install b/dev/tasks/linux-packages/debian/libarrow-gpu-glib-dev.installnew file mode 100644index 0000000000..9b3ef8fb25--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-gpu-glib-dev.install@@ -0,0 +1,5 @@+usr/include/arrow-gpu-glib/+usr/lib/*/libarrow-gpu-glib.a+usr/lib/*/libarrow-gpu-glib.so+usr/lib/*/pkgconfig/arrow-gpu-glib.pc+usr/share/gir-1.0/ArrowGPU-1.0.girdiff --git a/dev/tasks/linux-packages/debian/libarrow-gpu-glib0.install b/dev/tasks/linux-packages/debian/libarrow-gpu-glib0.installnew file mode 100644index 0000000000..4d97e5a60e--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-gpu-glib0.install@@ -0,0 +1 @@+usr/lib/*/libarrow-gpu-glib.so.*diff --git a/dev/tasks/linux-packages/debian/libarrow-gpu0.install b/dev/tasks/linux-packages/debian/libarrow-gpu0.installnew file mode 100644index 0000000000..cabd7e47d1--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-gpu0.install@@ -0,0 +1 @@+usr/lib/*/libarrow_gpu.so.*diff --git a/dev/tasks/linux-packages/debian/libarrow-python-dev.install b/dev/tasks/linux-packages/debian/libarrow-python-dev.installnew file mode 100644index 0000000000..7e978de920--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-python-dev.install@@ -0,0 +1,3 @@+usr/lib/*/libarrow_python.a+usr/lib/*/libarrow_python.so+usr/lib/*/pkgconfig/arrow-python.pcdiff --git a/dev/tasks/linux-packages/debian/libarrow-python0.install b/dev/tasks/linux-packages/debian/libarrow-python0.installnew file mode 100644index 0000000000..eef3e66483--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow-python0.install@@ -0,0 +1 @@+usr/lib/*/libarrow_python.so.*diff --git a/dev/tasks/linux-packages/debian/libarrow0.install b/dev/tasks/linux-packages/debian/libarrow0.installnew file mode 100644index 0000000000..98ef2139cb--- /dev/null+++ b/dev/tasks/linux-packages/debian/libarrow0.install@@ -0,0 +1 @@+usr/lib/*/libarrow.so.*diff --git a/dev/tasks/linux-packages/debian/patches/series b/dev/tasks/linux-packages/debian/patches/seriesnew file mode 100644index 0000000000..e69de29bb2diff --git a/dev/tasks/linux-packages/debian/rules b/dev/tasks/linux-packages/debian/rulesnew file mode 100755index 0000000000..5a3c0a31b2--- /dev/null+++ b/dev/tasks/linux-packages/debian/rules@@ -0,0 +1,59 @@+#!/usr/bin/make -f+# -*- makefile-gmake -*-+#+# Uncomment this to turn on verbose mode.+#export DH_VERBOSE=1+# This has to be exported to make some magic below work.+export DH_OPTIONS++BUILD_TYPE=release++%:+ dh $@ --with gir,autoreconf++override_dh_autoreconf:+ dh_autoreconf \+ --sourcedirectory=c_glib++override_dh_auto_configure:+ dh_auto_configure \+ --sourcedirectory=cpp \+ --builddirectory=cpp_build \+ -- \+ -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \+ -DARROW_BUILD_TESTS=OFF \+ -DARROW_PYTHON=ON \+ -DARROW_BOOST_USE_SHARED=ON \+ -DARROW_ORC=ON \+ -DPythonInterp_FIND_VERSION=ON \+ -DPythonInterp_FIND_VERSION_MAJOR=3 \+ -DARROW_GPU=ON+ dh_auto_configure \+ --sourcedirectory=c_glib \+ --builddirectory=c_glib_build \+ -- \+ --with-arrow-cpp-build-dir=$${PWD}/cpp_build \+ --with-arrow-cpp-build-type=$(BUILD_TYPE) \+ --enable-gtk-doc \+ --with-html-dir=\$${prefix}/share/doc/libarrow-glib-doc++override_dh_auto_build:+ dh_auto_build \+ --sourcedirectory=cpp \+ --builddirectory=cpp_build+ env \+ LD_LIBRARY_PATH=$${PWD}/cpp_build/$(BUILD_TYPE) \+ dh_auto_build \+ --sourcedirectory=c_glib \+ --builddirectory=c_glib_build++override_dh_auto_install:+ dh_auto_install \+ --sourcedirectory=cpp \+ --builddirectory=cpp_build+ dh_auto_install \+ --sourcedirectory=c_glib \+ --builddirectory=c_glib_build++# disable 'make check'.+override_dh_auto_test:diff --git a/dev/tasks/linux-packages/debian/source/format b/dev/tasks/linux-packages/debian/source/formatnew file mode 100644index 0000000000..163aaf8d82--- /dev/null+++ b/dev/tasks/linux-packages/debian/source/format@@ -0,0 +1 @@+3.0 (quilt)diff --git a/dev/tasks/linux-packages/debian/watch b/dev/tasks/linux-packages/debian/watchnew file mode 100644index 0000000000..5cb3f00915--- /dev/null+++ b/dev/tasks/linux-packages/debian/watch@@ -0,0 +1,2 @@+version=3+https://dist.apache.org/repos/dist/release/arrow/arrow-(.+)/apache-arrow-(.+).tar.gzdiff --git a/dev/tasks/linux-packages/package-task.rb b/dev/tasks/linux-packages/package-task.rbnew file mode 100644index 0000000000..bb01a024d7--- /dev/null+++ b/dev/tasks/linux-packages/package-task.rb@@ -0,0 +1,316 @@+# 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.++require "open-uri"+require "time"++class PackageTask+ include Rake::DSL++ def initialize(package, version, release_time)+ @package = package+ @version = version+ @release_time = release_time++ @archive_base_name = "#{@package}-#{@version}"+ @archive_name = "#{@archive_base_name}.tar.gz"+ @full_archive_name = File.expand_path(@archive_name)++ @rpm_package = @package+ end++ def define+ define_dist_task+ define_yum_task+ define_apt_task+ define_version_task+ end++ private+ def env_value(name)+ value = ENV[name]+ raise "Specify #{name} environment variable" if value.nil?+ value+ end++ def parallel_build?+ ENV["PARALLEL"] == "yes"+ end++ def debug_build?+ ENV["DEBUG"] != "no"+ end++ def latest_commit_time(git_directory)+ cd(git_directory) do+ return Time.iso8601(`git log -n 1 --format=%aI`.chomp).utc+ end+ end++ def download(url, download_dir)+ base_name = url.split("/").last+ absolute_output_path = File.join(download_dir, base_name)++ unless File.exist?(absolute_output_path)+ mkdir_p(download_dir)+ rake_output_message "Downloading... #{url}"+ open(url) do |downloaded_file|+ File.open(absolute_output_path, "wb") do |output_file|+ output_file.print(downloaded_file.read)+ end+ end+ end++ absolute_output_path+ end++ def run_docker(id)+ docker_tag = "#{@package}-#{id}"+ build_command_line = [+ "docker",+ "build",+ "--tag", docker_tag,+ ]+ run_command_line = [+ "docker",+ "run",+ "--rm",+ "--tty",+ "--volume", "#{Dir.pwd}:/host:rw",+ ]+ if debug_build?+ build_command_line.concat(["--build-arg", "DEBUG=yes"])+ run_command_line.concat(["--env", "DEBUG=yes"])+ end+ build_command_line << id+ run_command_line.concat([docker_tag, "/host/build.sh"])++ sh(*build_command_line)+ sh(*run_command_line)+ end++ def define_dist_task+ define_archive_task+ desc "Create release package"+ task :dist => [@archive_name]+ end++ def define_yum_task+ namespace :yum do+ distribution = "centos"+ yum_dir = "yum"+ repositories_dir = "#{yum_dir}/repositories"++ directory repositories_dir++ desc "Build RPM packages"+ task :build => [@archive_name, repositories_dir] do+ tmp_dir = "#{yum_dir}/tmp"+ rm_rf(tmp_dir)+ mkdir_p(tmp_dir)+ cp(@archive_name, tmp_dir)++ env_sh = "#{yum_dir}/env.sh"+ File.open(env_sh, "w") do |file|+ file.puts(<<-ENV)+SOURCE_ARCHIVE=#{@archive_name}+PACKAGE=#{@rpm_package}+VERSION=#{@version}+ ENV+ end++ tmp_distribution_dir = "#{tmp_dir}/#{distribution}"+ mkdir_p(tmp_distribution_dir)+ spec = "#{tmp_distribution_dir}/#{@rpm_package}.spec"+ spec_in = "#{yum_dir}/#{@rpm_package}.spec.in"+ spec_in_data = File.read(spec_in)+ spec_data = spec_in_data.gsub(/@(.+?)@/) do |matched|+ case $1+ when "PACKAGE"+ @rpm_package+ when "VERSION"+ @version+ else+ matched+ end+ end+ File.open(spec, "w") do |spec_file|+ spec_file.print(spec_data)+ end++ cd(yum_dir) do+ distribution_versions = (ENV["CENTOS_VERSIONS"] || "6,7").split(",")+ threads = []+ distribution_versions.each do |version|+ id = "#{distribution}-#{version}"+ if parallel_build?+ threads << Thread.new(id) do |local_id|+ run_docker(local_id)+ end+ else+ run_docker(id)+ end+ end+ threads.each(&:join)+ end+ end+ end++ desc "Release Yum packages"+ yum_tasks = [+ "yum:build",+ ]+ task :yum => yum_tasks+ end++ def define_apt_task+ namespace :apt do+ apt_dir = "apt"+ repositories_dir = "#{apt_dir}/repositories"++ directory repositories_dir++ desc "Build deb packages"+ task :build => [@archive_name, repositories_dir] do+ tmp_dir = "#{apt_dir}/tmp"+ rm_rf(tmp_dir)+ mkdir_p(tmp_dir)+ cp(@archive_name, tmp_dir)+ Dir.glob("debian*") do |debian_dir|+ cp_r(debian_dir, "#{tmp_dir}/#{debian_dir}")+ end++ env_sh = "#{apt_dir}/env.sh"+ File.open(env_sh, "w") do |file|+ file.puts(<<-ENV)+PACKAGE=#{@package}+VERSION=#{@version}+ ENV+ end++ cd(apt_dir) do+ threads = []+ targets = (ENV["APT_TARGETS"] || "").split(",")+ if targets.empty?+ targets = [+ "debian-stretch",+ "ubuntu-trusty",+ "ubuntu-xenial",+ "ubuntu-artful",+ ]+ end+ targets.each do |target|+ id = target+ if parallel_build?+ threads << Thread.new(id) do |local_id|+ run_docker(local_id)+ end+ else+ run_docker(id)+ end+ end+ threads.each(&:join)+ end+ end+ end++ desc "Release APT repositories"+ apt_tasks = [+ "apt:build",+ ]+ task :apt => apt_tasks+ end++ def define_version_task+ namespace :version do+ desc "Update versions"+ task :update do+ update_debian_changelog+ update_spec+ update_descriptor+ end+ end+ end++ def package_version+ "#{@version}-1"+ end++ def package_changelog_message+ "New upstream release."+ end++ def packager_name+ ENV["DEBFULLNAME"] || ENV["NAME"] || `git config --get user.name`.chomp+ end++ def packager_email+ ENV["DEBEMAIL"] || ENV["EMAIL"] || `git config --get user.email`.chomp+ end++ def update_content(path)+ if File.exist?(path)+ content = File.read(path)+ else+ content = ""+ end+ content = yield(content)+ File.open(path, "w") do |file|+ file.puts(content)+ end+ end++ def update_debian_changelog+ Dir.glob("debian*") do |debian_dir|+ update_content("#{debian_dir}/changelog") do |content|+ <<-CHANGELOG.rstrip+#{@package} (#{package_version}) unstable; urgency=low++ * New upstream release.++ -- #{packager_name} <#{packager_email}> #{@release_time.rfc2822}++#{content}+ CHANGELOG+ end+ end+ end++ def update_spec+ release_time = @release_time.strftime("%a %b %d %Y")+ update_content("yum/#{@rpm_package}.spec.in") do |content|+ content = content.sub(/^(%changelog\n)/, <<-CHANGELOG)+%changelog+* #{release_time} #{packager_name} <#{packager_email}> - #{package_version}+- #{package_changelog_message}++ CHANGELOG+ content = content.sub(/^(Release:\s+)\d+/, "\\11")+ content.rstrip+ end+ end++ def update_descriptor+ Dir.glob("**/descriptor.json") do |descriptor_json|+ update_content(descriptor_json) do |content|+ content = content.sub(/"name": "\d+\.\d+\.\d+.*?"/) do+ "\"name\": \"#{@version}\""+ end+ end+ end+ end+enddiff --git a/dev/tasks/linux-packages/travis.linux.yml b/dev/tasks/linux-packages/travis.linux.ymlnew file mode 100644index 0000000000..afab39471c--- /dev/null+++ b/dev/tasks/linux-packages/travis.linux.yml@@ -0,0 +1,67 @@+# 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.++os: linux+dist: trusty+sudo: required+language: ruby++env:+ global:+ - PLAT={{ PLAT }}+ - BUILD_REF={{ BUILD_REF }}+ - PYARROW_VERSION={{ PYARROW_VERSION }}++matrix:+ include:+ - script:+ - (cd arrow/dev/tasks/linux-packages && travis_wait 40 rake apt:build APT_TARGETS=debian-stretch,ubuntu-trusty,ubuntu-xenial PARALLEL=yes DEBUG=no)+ - script:+ - (cd arrow/dev/tasks/linux-packages && travis_wait 40 rake apt:build APT_TARGETS=ubuntu-artful PARALLEL=yes DEBUG=no)+ - script:+ - (cd arrow/dev/tasks/linux-packages && rake yum:build PARALLEL=yes DEBUG=no)++before_install:+ - sudo apt update -y -qq+ - |+ sudo apt install -y -qq \+ autoconf-archive \+ build-essential \+ cmake \+ debhelper \+ devscripts \+ git \+ gtk-doc-tools \+ libboost-filesystem-dev \+ libboost-regex-dev \+ libboost-system-dev \+ libgirepository1.0-dev \+ libglib2.0-doc \+ libjemalloc-dev \+ lsb-release \+ nvidia-cuda-toolkit \+ pkg-config \+ python3-dev \+ python3-numpy++before_script:+ - git clone -b {{ ARROW_BRANCH }} {{ ARROW_REPO }} arrow+ - git -C arrow checkout {{ ARROW_SHA }}++notifications:+ email:+ - {{ EMAIL }}diff --git a/dev/tasks/linux-packages/yum/arrow.spec.in b/dev/tasks/linux-packages/yum/arrow.spec.innew file mode 100644index 0000000000..65c357efb1--- /dev/null+++ b/dev/tasks/linux-packages/yum/arrow.spec.in@@ -0,0 +1,244 @@+# -*- rpm -*-+#+# 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.++%define _centos_ver %{?centos_ver:%{centos_ver}}%{!?centos_ver:7}++%define use_python %{_centos_ver} >= 6+%define use_glib %{_centos_ver} >= 7++Name: @PACKAGE@+Version: @VERSION@+Release: 1%{?dist}+Summary: Apache Arrow is a data processing library for analysis++Group: Development/Libraries+License: Apache-2.0+URL: https://arrow.apache.org/+Source0: https://dist.apache.org/repos/dist/release/arrow/arrow-%{version}/apache-@PACKAGE@-%{version}.tar.gz++BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)+BuildRequires: pkgconfig+BuildRequires: gcc-c+++BuildRequires: cmake3+BuildRequires: boost-devel+BuildRequires: git+BuildRequires: jemalloc-devel+%if %{use_python}+BuildRequires: python34-devel+BuildRequires: python34-numpy+%endif+%if %{use_glib}+BuildRequires: gtk-doc+BuildRequires: gobject-introspection-devel+%endif++%description+Apache Arrow is a data processing library for analysis.++%prep+%setup -q -n apache-@PACKAGE@-%{version}++%build+build_type=release+mkdir cpp/build+cd cpp/build+%cmake3 .. \+ -DCMAKE_BUILD_TYPE=$build_type \+ -DARROW_ORC=ON \+%if %{use_python}+ -DARROW_PYTHON=ON \+ -DPythonInterp_FIND_VERSION=ON \+ -DPythonInterp_FIND_VERSION_MAJOR=3 \+%endif+%if %{_centos_ver} == 6+ -DARROW_BOOST_VENDORED=ON \+%endif+ -DARROW_ORC=ON \+ -DARROW_BUILD_TESTS=OFF+make %{?_smp_mflags}+cd -++%if %{use_glib}+cd c_glib+%configure \+ --with-arrow-cpp-build-dir=$PWD/../cpp/build \+ --with-arrow-cpp-build-type=$build_type+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool+LD_LIBRARY_PATH=$PWD/arrow-glib/.libs/:$PWD/../cpp/build/$build_type \+ make %{?_smp_mflags}+cd -+%endif++%install+cd cpp/build+make install DESTDIR=$RPM_BUILD_ROOT+cd -++%if %{use_glib}+cd c_glib+make install DESTDIR=$RPM_BUILD_ROOT+rm $RPM_BUILD_ROOT%{_libdir}/*.la+cd -+%endif++%package libs+Summary: Runtime libraries for Apache Arrow C+++Group: System Environment/Libraries+License: Apache-2.0+Requires: boost-system+Requires: boost-filesystem+Requires: boost-regex+Requires: jemalloc++%description libs+This package contains the libraries for Apache Arrow C++.++%files libs+%defattr(-,root,root,-)+%doc README.md LICENSE.txt NOTICE.txt+%{_libdir}/libarrow.so.*++%package devel+Summary: Libraries and header files for Apache Arrow C+++Group: Development/Libraries+License: Apache-2.0+Requires: %{name}-libs = %{version}-%{release}++%description devel+Libraries and header files for Apache Arrow C++.++%files devel+%defattr(-,root,root,-)+%doc README.md LICENSE.txt NOTICE.txt+%{_includedir}/arrow/+%{_libdir}/libarrow.a+%{_libdir}/libarrow.so+%{_libdir}/pkgconfig/arrow.pc+%{_libdir}/pkgconfig/arrow-compute.pc++%if %{use_python}+%package python-libs+Summary: Apache Arrow CPython extensions+Group: System Environment/Libraries+License: Apache-2.0+Requires: arrow-libs = %{version}-%{release}+Requires: python34-numpy++%description python-libs+This package contains the Apache Arrow CPython extensions.++%files python-libs+%defattr(-,root,root,-)+%doc README.md LICENSE.txt NOTICE.txt+%{_libdir}/libarrow_python.so.*++%package python-devel+Summary: Libraries and header files for Apache Arrow CPython extensions+Group: Development/Libraries+License: Apache-2.0+Requires: arrow-devel = %{version}-%{release}+Requires: %{name}-libs = %{version}-%{release}+Requires: python34-devel++%description python-devel+Libraries and header files for Apache Arrow CPython extensions.++%files python-devel+%defattr(-,root,root,-)+%doc README.md LICENSE.txt NOTICE.txt+%{_libdir}/libarrow_python.a+%{_libdir}/libarrow_python.so+%{_libdir}/pkgconfig/arrow-python.pc+%endif++%if %{use_glib}+%package glib-libs+Summary: Runtime libraries for Apache Arrow GLib+Group: System Environment/Libraries+License: Apache-2.0+Requires: arrow-libs = %{version}-%{release}+Requires: glib2++%description glib-libs+This package contains the libraries for Apache Arrow GLib.++%files glib-libs+%defattr(-,root,root,-)+%doc README.md LICENSE.txt NOTICE.txt+%{_libdir}/libarrow-glib.so.*+%{_datadir}/gir-1.0/*.gir++%package glib-devel+Summary: Libraries and header files for Apache Arrow GLib+Group: Development/Libraries+License: Apache-2.0+Requires: arrow-devel = %{version}-%{release}+Requires: %{name}-libs = %{version}-%{release}+Requires: glib2-devel+Requires: gobject-introspection-devel++%description glib-devel+Libraries and header files for Apache Arrow GLib.++%files glib-devel+%defattr(-,root,root,-)+%doc README.md LICENSE.txt NOTICE.txt+%{_includedir}/arrow-glib/+%{_libdir}/libarrow-glib.a+%{_libdir}/libarrow-glib.so+%{_libdir}/pkgconfig/arrow-glib.pc+%{_libdir}/girepository-1.0/*.typelib+%{_datadir}/arrow-glib/example/++%package glib-doc+Summary: Documentation for Apache Arrow GLib+Group: Documentation+License: Apache-2.0+Requires: arrow-devel = %{version}-%{release}+Requires: %{name}-libs = %{version}-%{release}++%description glib-doc+Documentation for Apache Arrow GLib.++%files glib-doc+%defattr(-,root,root,-)+%doc README.md LICENSE.txt NOTICE.txt+%{_docdir}/arrow-glib/+%{_datadir}/gtk-doc/html/arrow-glib/+%endif++%changelog+* Fri Mar 16 2018 Kouhei Sutou <[email protected]> - 0.9.0-1+- New upstream release.++* Sun Dec 17 2017 Uwe Korn <[email protected]> - 0.8.0-1+- New upstream release.++* Wed Sep 27 2017 Kouhei Sutou <[email protected]> - 0.7.1-1+- New upstream release.++* Tue Sep 12 2017 Wes McKinney <[email protected]> - 0.7.0-1+- New upstream release.++* Fri Aug 11 2017 Kouhei Sutou <[email protected]> - 0.6.0-1+- New upstream release.++* Wed Aug 02 2017 Kouhei Sutou <[email protected]> - 0.6.0.20170802-1+- New upstream release.diff --git a/dev/tasks/linux-packages/yum/build.sh b/dev/tasks/linux-packages/yum/build.shnew file mode 100755index 0000000000..fea748be0a--- /dev/null+++ b/dev/tasks/linux-packages/yum/build.sh@@ -0,0 +1,103 @@+#!/bin/sh+# -*- sh-indentation: 2; sh-basic-offset: 2 -*-+#+# 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.++run()+{+ "$@"+ if test $? -ne 0; then+ echo "Failed $@"+ exit 1+ fi+}++rpmbuild_options=++. /host/env.sh++distribution=$(cut -d " " -f 1 /etc/redhat-release | tr "A-Z" "a-z")+if grep -q Linux /etc/redhat-release; then+ distribution_version=$(cut -d " " -f 4 /etc/redhat-release)+else+ distribution_version=$(cut -d " " -f 3 /etc/redhat-release)+fi+distribution_version=$(echo ${distribution_version} | sed -e 's/\..*$//g')++architecture="$(arch)"+case "${architecture}" in+ i*86)+ architecture=i386+ ;;+esac++if [ -x /usr/bin/rpmdev-setuptree ]; then+ rm -rf .rpmmacros+ run rpmdev-setuptree+else+ run cat <<EOM > ~/.rpmmacros+%_topdir ${HOME}/rpmbuild+EOM+ run mkdir -p ~/rpmbuild/SOURCES+ run mkdir -p ~/rpmbuild/SPECS+ run mkdir -p ~/rpmbuild/BUILD+ run mkdir -p ~/rpmbuild/RPMS+ run mkdir -p ~/rpmbuild/SRPMS+fi++repository="/host/repositories/${distribution}/${distribution_version}"+rpm_dir="${repository}/${architecture}/Packages"+srpm_dir="${repository}/source/SRPMS"+run mkdir -p "${rpm_dir}" "${srpm_dir}"++# for debug+# rpmbuild_options="$rpmbuild_options --define 'optflags -O0 -g3'"++cd++if [ -n "${SOURCE_ARCHIVE}" ]; then+ run cp /host/tmp/${SOURCE_ARCHIVE} rpmbuild/SOURCES/+else+ run cp /host/tmp/${PACKAGE}-${VERSION}.* rpmbuild/SOURCES/+fi+run cp \+ /host/tmp/${distribution}/${PACKAGE}.spec \+ rpmbuild/SPECS/++cat <<BUILD > build.sh+#!/bin/bash++rpmbuild -ba ${rpmbuild_options} rpmbuild/SPECS/${PACKAGE}.spec+BUILD+run chmod +x build.sh+if [ "${distribution_version}" = 6 ]; then+ if [ "${DEBUG:-no}" = "yes" ]; then+ run scl enable devtoolset-6 ./build.sh+ else+ run scl enable devtoolset-6 ./build.sh > /dev/null+ fi+else+ if [ "${DEBUG:-no}" = "yes" ]; then+ run ./build.sh+ else+ run ./build.sh > /dev/null+ fi+fi++run mv rpmbuild/RPMS/*/* "${rpm_dir}/"+run mv rpmbuild/SRPMS/* "${srpm_dir}/"diff --git a/dev/tasks/linux-packages/yum/centos-6/Dockerfile b/dev/tasks/linux-packages/yum/centos-6/Dockerfilenew file mode 100644index 0000000000..90bd710963--- /dev/null+++ b/dev/tasks/linux-packages/yum/centos-6/Dockerfile@@ -0,0 +1,62 @@+# 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.++FROM centos:6++ARG DEBUG++ENV \+ SRPM_DOWNLOAD_URL=http://vault.centos.org/7.4.1708/os/Source/SPackages \+ LIBARCHIVE_SRPM_BASE=libarchive-3.1.2-10.el7_2.src.rpm++RUN \+ quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") && \+ yum update -y ${quiet} && \+ yum install -y ${quiet} \+ centos-release-scl \+ epel-release && \+ yum install -y \+ autoconf268 \+ wget \+ yum-utils && \+ yum groupinstall -y ${quiet} "Development Tools" && \+ wget ${quiet} ${SRPM_DOWNLOAD_URL}/${LIBARCHIVE_SRPM_BASE} && \+ yum-builddep -y ${quiet} --nogpgcheck ${LIBARCHIVE_SRPM_BASE} && \+ rpm -i ${quiet} ${LIBARCHIVE_SRPM_BASE} && \+ sed -i'' -e 's/^run_testsuite$/:/g' ~/rpmbuild/SPECS/libarchive.spec && \+ AUTOM4TE=autom4te268 \+ rpmbuild -bb ${quiet} \+ ~/rpmbuild/SPECS/libarchive.spec && \+ yum install -y ${quiet} ~/rpmbuild/RPMS/*/libarchive-3.*.rpm && \+ rm -rf ${LIBARCHIVE_SRPM_BASE} ~/rpmbuild/ && \+ yum install -y ${quiet} \+ boost-devel \+ centos-release-scl \+ cmake3 \+ devtoolset-6 \+ git \+ gobject-introspection-devel \+ gtk-doc \+ jemalloc-devel \+ pkg-config \+ python34 \+ python34-devel \+ python34-numpy \+ rpm-build \+ rpmdevtools \+ tar && \+ yum clean ${quiet} alldiff --git a/dev/tasks/linux-packages/yum/centos-7/Dockerfile b/dev/tasks/linux-packages/yum/centos-7/Dockerfilenew file mode 100644index 0000000000..58058ee20e--- /dev/null+++ b/dev/tasks/linux-packages/yum/centos-7/Dockerfile@@ -0,0 +1,41 @@+# 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.++FROM centos:7++ARG DEBUG++RUN \+ quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") && \+ yum update -y ${quiet} && \+ yum install -y ${quiet} epel-release && \+ yum groupinstall -y ${quiet} "Development Tools" && \+ yum install -y ${quiet} \+ boost-devel \+ cmake3 \+ git \+ gobject-introspection-devel \+ gtk-doc \+ jemalloc-devel \+ pkg-config \+ python34 \+ python34-devel \+ python34-numpy \+ rpm-build \+ rpmdevtools \+ tar && \+ yum clean ${quiet} alldiff --git a/dev/tasks/linux-packages/yum/descriptor.json b/dev/tasks/linux-packages/yum/descriptor.jsonnew file mode 100644index 0000000000..b025b17439--- /dev/null+++ b/dev/tasks/linux-packages/yum/descriptor.json@@ -0,0 +1,22 @@+{+ "package": {+ "name": "Yum",+ "repo": "apache-arrow-yum",+ "subject": "kou",+ "licenses": ["Apache-2.0"],+ "vcs_url": "htttps://github.com/apache/arrow.git"+ },+ "version": {+ "name": "dev"+ },+ "files": [+ {+ "includePattern": "cpp-linux/yum/repositories/(centos)/([^/]+)/([^/]+)/[^/]+/([^/]+\\.rpm)",+ "uploadPattern": "$1/$2/$3/$4",+ "matrixParams": {+ "override": 1+ }+ }+ ],+ "publish": true+}diff --git a/dev/tasks/python-wheels/appveyor.yml b/dev/tasks/python-wheels/appveyor.ymlnew file mode 100644index 0000000000..3bd1804832--- /dev/null+++ b/dev/tasks/python-wheels/appveyor.yml@@ -0,0 +1,58 @@+# 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.++os: Visual Studio 2015++environment:+ matrix:+ - GENERATOR: Visual Studio 14 2015 Win64+ NUMPY: "1.13"+ PYTHON: "3.5"+ ARCH: "64"+ - GENERATOR: Visual Studio 14 2015 Win64+ NUMPY: "1.13"+ PYTHON: "3.6"+ ARCH: "64"+ MSVC_DEFAULT_OPTIONS: ON+ BOOST_ROOT: C:\Libraries\boost_1_63_0+ BOOST_LIBRARYDIR: C:\Libraries\boost_1_63_0\lib64-msvc-14.0+ pyarrow_version: {{ PYARROW_VERSION }}+ pyarrow_ref: {{ BUILD_REF }}+ parquet_cpp_ref: apache-parquet-cpp-1.4.0+ ARROW_SRC: C:\apache-arrow++init:+ - set MINICONDA=C:\Miniconda35-x64+ - set PATH=%MINICONDA%;%MINICONDA%/Scripts;%MINICONDA%/Library/bin;%PATH%+++build_script:+ - mkdir wheels+ - git clone -b {{ ARROW_BRANCH }} {{ ARROW_REPO }} %ARROW_SRC% || exit /B+ - git -C arrow checkout {{ ARROW_SHA }} || exit /B+ - call %ARROW_SRC%\dev\tasks\python-wheels\win-build.bat++after_build:+ xcopy %ARROW_SRC%\python\dist\* wheels\++artifacts:+ - path: wheels\*.whl++notifications:+ - provider: Email+ to:+ - {{ EMAIL }}diff --git a/dev/tasks/python-wheels/osx-build.sh b/dev/tasks/python-wheels/osx-build.shnew file mode 100755index 0000000000..43bad901be--- /dev/null+++ b/dev/tasks/python-wheels/osx-build.sh@@ -0,0 +1,161 @@+#!/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++function build_wheel {+ pip install -U pip+ pip install setuptools_scm+ echo `pwd`+ export PATH="/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH"+ echo CFLAGS=${CFLAGS}+ echo CXXFLAGS=${CXXFLAGS}+ echo LDFLAGS=${LDFLAGS}+ pushd $1++ boost_version="1.65.1"+ boost_directory_name="boost_${boost_version//\./_}"+ boost_tarball_name="${boost_directory_name}.tar.gz"+ wget --no-check-certificate \+ http://downloads.sourceforge.net/project/boost/boost/"${boost_version}"/"${boost_tarball_name}" \+ -O "${boost_tarball_name}"+ tar xf "${boost_tarball_name}"++ arrow_boost="$PWD/arrow_boost"+ arrow_boost_dist="$PWD/arrow_boost_dist"+ mkdir "$arrow_boost" "$arrow_boost_dist"+ pushd "${boost_directory_name}"++ # Arrow is 64-bit-only at the moment+ export CFLAGS="-fPIC -arch x86_64 ${CFLAGS//"-arch i386"/}"+ export CXXFLAGS="-fPIC -arch x86_64 ${CXXFLAGS//"-arch i386"} -std=c++11"++ ./bootstrap.sh+ ./b2 tools/bcp > /dev/null 2>&1+ ./dist/bin/bcp --namespace=arrow_boost --namespace-alias \+ filesystem date_time system regex build algorithm locale format \+ "$arrow_boost" > /dev/null 2>&1++ popd+ pushd "$arrow_boost"+ ./bootstrap.sh+ ./bjam cxxflags="${CXXFLAGS}" \+ linkflags="-std=c++11" \+ cflags="${CFLAGS}" \+ variant=release \+ link=shared \+ --prefix="$arrow_boost_dist" \+ --with-filesystem --with-date_time --with-system --with-regex \+ install > /dev/null 2>&1+ popd++ export THRIFT_HOME=/usr/local+ export THRIFT_VERSION=0.11.0+ wget http://archive.apache.org/dist/thrift/${THRIFT_VERSION}/thrift-${THRIFT_VERSION}.tar.gz+ tar xf thrift-${THRIFT_VERSION}.tar.gz+ pushd thrift-${THRIFT_VERSION}+ mkdir build-tmp+ pushd build-tmp+ cmake -DCMAKE_BUILD_TYPE=release \+ "-DCMAKE_CXX_FLAGS=-fPIC" \+ "-DCMAKE_C_FLAGS=-fPIC" \+ "-DCMAKE_INSTALL_PREFIX=${THRIFT_HOME}" \+ "-DCMAKE_INSTALL_RPATH=${THRIFT_HOME}/lib" \+ "-DBUILD_SHARED_LIBS=OFF" \+ "-DBUILD_TESTING=OFF" \+ "-DWITH_QT4=OFF" \+ "-DWITH_C_GLIB=OFF" \+ "-DWITH_JAVA=OFF" \+ "-DWITH_PYTHON=OFF" \+ "-DWITH_CPP=ON" \+ "-DWITH_STATIC_LIB=ON" \+ "-DWITH_LIBEVENT=OFF" \+ -DBoost_NAMESPACE=arrow_boost \+ -DBOOST_ROOT="$arrow_boost_dist" \+ ..+ make install -j5+ popd+ popd++ export ARROW_HOME=/usr/local+ export PARQUET_HOME=/usr/local+ pip install "cython==0.27.3" "numpy==${NP_TEST_DEP}"+ pushd cpp+ mkdir build+ pushd build+ cmake -DCMAKE_BUILD_TYPE=Release \+ -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \+ -DARROW_BUILD_TESTS=OFF \+ -DARROW_BUILD_SHARED=ON \+ -DARROW_BOOST_USE_SHARED=ON \+ -DARROW_JEMALLOC=OFF \+ -DARROW_PLASMA=ON \+ -DARROW_RPATH_ORIGIN=ON \+ -DARROW_JEMALLOC_USE_SHARED=OFF \+ -DARROW_PYTHON=ON \+ -DARROW_ORC=ON \+ -DBOOST_ROOT="$arrow_boost_dist" \+ -DBoost_NAMESPACE=arrow_boost \+ -DMAKE=make \+ ..+ make -j5+ make install+ popd+ popd++ git clone https://github.com/apache/parquet-cpp.git+ pushd parquet-cpp+ mkdir build+ pushd build+ cmake -DCMAKE_BUILD_TYPE=Release \+ -DCMAKE_INSTALL_PREFIX=$PARQUET_HOME \+ -DPARQUET_VERBOSE_THIRDPARTY_BUILD=ON \+ -DPARQUET_BUILD_TESTS=OFF \+ -DPARQUET_BOOST_USE_SHARED=ON \+ -DBoost_NAMESPACE=arrow_boost \+ -DBOOST_ROOT="$arrow_boost_dist" \+ ..+ make -j5 VERBOSE=1+ make install+ popd+ popd++ unset ARROW_HOME+ unset PARQUET_HOME+ export PYARROW_WITH_PARQUET=1+ export PYARROW_WITH_ORC=1+ export PYARROW_WITH_JEMALLOC=1+ export PYARROW_WITH_PLASMA=1+ export PYARROW_BUNDLE_BOOST=1+ export PYARROW_BUNDLE_ARROW_CPP=1+ export PYARROW_BUILD_TYPE='release'+ export PYARROW_CMAKE_OPTIONS="-DBOOST_ROOT=$arrow_boost_dist"+ export SETUPTOOLS_SCM_PRETEND_VERSION=$PYARROW_VERSION+ pushd python+ python setup.py build_ext \+ --with-plasma --with-orc --with-parquet \+ --bundle-arrow-cpp --bundle-boost --boost-namespace=arrow_boost \+ bdist_wheel+ ls -l dist/+ for wheel in dist/*.whl; do+ unzip -l "$wheel"+ done+ popd+ popd+}diff --git a/dev/tasks/python-wheels/travis.linux.yml b/dev/tasks/python-wheels/travis.linux.ymlnew file mode 100644index 0000000000..8f2435cec4--- /dev/null+++ b/dev/tasks/python-wheels/travis.linux.yml@@ -0,0 +1,50 @@+# 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.++env:+ global:+ - PLAT={{ PLAT }}+ - BUILD_REF={{ BUILD_REF }}+ - PYARROW_VERSION={{ PYARROW_VERSION }}++os: linux+dist: trusty+sudo: required+language: cpp+services:+ - docker++before_script:+ - docker pull quay.io/xhochy/arrow_manylinux1_x86_64_base:latest++script:+ - git clone -b {{ ARROW_BRANCH }} {{ ARROW_REPO }} arrow+ - git -C arrow checkout {{ ARROW_SHA }}+ - mkdir -p dist++ - pushd arrow/python/manylinux1+ - git clone ../../ arrow+ - docker build -t arrow-base-x86_64 -f Dockerfile-x86_64 .+ - docker run --shm-size=2g --rm -e PYARROW_PARALLEL=3+ -e SETUPTOOLS_SCM_PRETEND_VERSION=$PYARROW_VERSION+ -v $PWD:/io arrow-base-x86_64 /io/build_arrow.sh+ - popd++ - sudo mv arrow/python/manylinux1/dist/* dist/++notifications:+ email:+ - {{ EMAIL }}diff --git a/dev/tasks/python-wheels/travis.osx.yml b/dev/tasks/python-wheels/travis.osx.ymlnew file mode 100644index 0000000000..a92e274fab--- /dev/null+++ b/dev/tasks/python-wheels/travis.osx.yml@@ -0,0 +1,82 @@+# 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.++os: osx+sudo: required+language: objective-c++env:+ global:+ - PLAT={{ PLAT }}+ - BUILD_REF={{ BUILD_REF }}+ - PYARROW_VERSION={{ PYARROW_VERSION }}++matrix:+ exclude:+ - python: 3.5+ include:+ - env:+ - MB_PYTHON_VERSION=2.7+ - NP_BUILD_DEP="1.10.1"+ - NP_TEST_DEP="1.10.1"+ - PANDAS_DEP="0.20.3"+ - env:+ - MB_PYTHON_VERSION=3.5+ - NP_BUILD_DEP="1.10.1"+ - NP_TEST_DEP="1.10.1"+ - PANDAS_DEP="0.20.3"+ - env:+ - MB_PYTHON_VERSION=3.6+ - NP_BUILD_DEP="1.11.3"+ - NP_TEST_DEP="1.11.3"+ - PANDAS_DEP="0.20.3"++before_install:+ - git clone https://github.com/matthew-brett/multibuild # TODO pin it+ - git clone -b {{ ARROW_BRANCH }} {{ ARROW_REPO }} arrow++ # Also remove artifacts that depend on Boost+ - brew uninstall boost cgal postgis sfcgal+ - brew update+ - brew upgrade cmake+ - brew install bison flex++ - export CONFIG_PATH=`pwd`/arrow/dev/tasks/python-wheels/osx-build.sh+ - source multibuild/common_utils.sh+ - source multibuild/travis_osx_steps.sh++ - before_install++install:+ - BUILD_DEPENDS="numpy==$NP_BUILD_DEP six cython"+ - TEST_DEPENDS="numpy==$NP_TEST_DEP six pandas==$PANDAS_DEP"++ - mkdir -p dist+ - clean_code arrow $BUILD_REF+ - build_wheel arrow $PLAT+ - mv -v arrow/python/dist/* dist/++script:+ - echo "SCRIPT"+ - pwd++after_success:+ - echo "After success"+ - pwd++notifications:+ email:+ - {{ EMAIL }}diff --git a/dev/tasks/python-wheels/win-build.bat b/dev/tasks/python-wheels/win-build.batnew file mode 100644index 0000000000..d398f8e60b--- /dev/null+++ b/dev/tasks/python-wheels/win-build.bat@@ -0,0 +1,106 @@+@rem Licensed to the Apache Software Foundation (ASF) under one+@rem or more contributor license agreements. See the NOTICE file+@rem distributed with this work for additional information+@rem regarding copyright ownership. The ASF licenses this file+@rem to you under the Apache License, Version 2.0 (the+@rem "License"); you may not use this file except in compliance+@rem with the License. You may obtain a copy of the License at+@rem+@rem http://www.apache.org/licenses/LICENSE-2.0+@rem+@rem Unless required by applicable law or agreed to in writing,+@rem software distributed under the License is distributed on an+@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+@rem KIND, either express or implied. See the License for the+@rem specific language governing permissions and limitations+@rem under the License.++@echo on++conda update --yes --quiet conda++conda create -n arrow -q -y python=%PYTHON% ^+ six pytest setuptools numpy=%NUMPY% pandas cython++conda install -n arrow -q -y -c conda-forge ^+ git flatbuffers rapidjson ^+ cmake ^+ boost-cpp thrift-cpp ^+ gflags snappy zlib brotli zstd lz4-c++call activate arrow++pushd %ARROW_SRC%++@rem fix up symlinks+git config core.symlinks true+git reset --hard || exit /B+git checkout "%pyarrow_ref%" || exit /B++popd++set ARROW_HOME=%CONDA_PREFIX%\Library+set PARQUET_HOME=%CONDA_PREFIX%\Library+set ARROW_BUILD_TOOLCHAIN=%CONDA_PREFIX%\Library+set PARQUET_BUILD_TOOLCHAIN=%CONDA_PREFIX%\Library++echo %ARROW_HOME%++@rem Build and test Arrow C++ libraries+mkdir %ARROW_SRC%\cpp\build+pushd %ARROW_SRC%\cpp\build++cmake -G "%GENERATOR%" ^+ -DCMAKE_INSTALL_PREFIX=%ARROW_HOME% ^+ -DARROW_BOOST_USE_SHARED=OFF ^+ -DARROW_BUILD_TESTS=OFF ^+ -DCMAKE_BUILD_TYPE=Release ^+ -DARROW_CXXFLAGS="/MP" ^+ -DARROW_PYTHON=ON ^+ .. || exit /B+cmake --build . --target INSTALL --config Release || exit /B++@rem Needed so python-test.exe works+set PYTHONPATH=%CONDA_PREFIX%\Lib;%CONDA_PREFIX%\Lib\site-packages;%CONDA_PREFIX%\python35.zip;%CONDA_PREFIX%\DLLs;%CONDA_PREFIX%+ctest -VV || exit /B+popd++@rem Build parquet-cpp+git clone https://github.com/apache/parquet-cpp.git || exit /B+pushd parquet-cpp+git checkout "%parquet_cpp_ref%"+popd++mkdir parquet-cpp\build+pushd parquet-cpp\build++cmake -G "%GENERATOR%" ^+ -DCMAKE_INSTALL_PREFIX=%PARQUET_HOME% ^+ -DCMAKE_BUILD_TYPE=Release ^+ -DPARQUET_BOOST_USE_SHARED=OFF ^+ -DPARQUET_BUILD_TESTS=OFF .. || exit /B+cmake --build . --target INSTALL --config Release || exit /B+popd++@rem Build and import pyarrow+set PYTHONPATH=++pushd %ARROW_SRC%\python+set PYARROW_BUILD_TYPE=Release+set SETUPTOOLS_SCM_PRETEND_VERSION=%pyarrow_version%++python setup.py build_ext ^+ --with-parquet ^+ --with-static-boost ^+ --bundle-arrow-cpp ^+ bdist_wheel || exit /B+popd++@rem test the wheel+call deactivate+conda create -n wheel-test -q -y python=%PYTHON% ^+ numpy=%NUMPY% pandas+call activate wheel-test++pip install --no-index --find-links=%ARROW_SRC%\python\dist\ pyarrow+python -c "import pyarrow; import pyarrow.parquet"diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.ymlnew file mode 100644index 0000000000..890c00edd3--- /dev/null+++ b/dev/tasks/tasks.yml@@ -0,0 +1,51 @@+# 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.++tasks:+ # conda packages+ - name: conda-linux+ platform: linux+ template: conda-recipes/travis.linux.yml+ params:+ - name: conda-osx+ platform: osx+ template: conda-recipes/travis.osx.yml+ params:+ - name: conda-win+ platform: win+ template: conda-recipes/appveyor.yml+ params:++ # python wheels+ - name: python-wheel-linux+ platform: linux+ template: python-wheels/travis.linux.yml+ params:+ - name: python-wheel-osx+ platform: osx+ template: python-wheels/travis.osx.yml+ params:+ - name: python-wheel-win+ platform: win+ template: python-wheels/appveyor.yml+ params:++ # linux packages+ - name: linux-packages+ platform: linux+ template: linux-packages/travis.linux.yml+ params: