You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2018/07/14 07:12:48 UTC

[arrow] branch master updated: ARROW-2836: [Packaging] Expand build matrices to multiple tasks

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new b4e3017  ARROW-2836: [Packaging] Expand build matrices to multiple tasks
b4e3017 is described below

commit b4e3017558fbb124a4e8dd88fa4741fd7776f3d1
Author: Krisztián Szűcs <sz...@gmail.com>
AuthorDate: Sat Jul 14 16:12:14 2018 +0900

    ARROW-2836: [Packaging] Expand build matrices to multiple tasks
    
    Author: Krisztián Szűcs <sz...@gmail.com>
    Author: Kouhei Sutou <ko...@clear-code.com>
    
    Closes #2259 from kszucs/taskpp and squashes the following commits:
    
    7938cfc6 [Kouhei Sutou] [Packaging] Ensure recreating GTK-Doc related build files
    54416235 [Kouhei Sutou] [Packaging] Fix a form
    e0408c1f [Kouhei Sutou] [Packaging] Fix a form
    5bb29577 [Kouhei Sutou] [Packaging] Fix forms
    bc401a73 [Kouhei Sutou] [Packaging] update available task names
    a74b0e6c [Kouhei Sutou] [Packaging] linux-packages is invalid
    e96ae455 [Kouhei Sutou] [Packaging] pip doesn't have -y option
    74dbf1cf [Kouhei Sutou] [Packaging] Stop to use travis_wait
    b299c6ff [Krisztián Szűcs] couple of comments; little readme update
    fc923b3f [Krisztián Szűcs] update package signing to conform the changes
    a8875c0d [Krisztián Szűcs] enable deb parallel builds
    c1de236b [Krisztián Szűcs] query tasks artifacts in job status
    8ca72b95 [Kouhei Sutou] [Packaging] Fill artifacts for Ubuntu 17.10 and 18.04
    784e85a1 [Kouhei Sutou] [Packaging] Stop to suppress build log
    a1320ea3 [Kouhei Sutou] [deb] Add missing Protocol Buffers related packages to Ubuntu 17.10
    58924734 [Krisztián Szűcs] list expected linux package artifacts for el6, el7, xenial, trusty
    fb7d62b2 [Krisztián Szűcs] package format parameter for linux tasks
    bd233ae8 [Krisztián Szűcs] fix deploy tags in templates
    e391f3a5 [Krisztián Szűcs] fox osx rpaths for boost
    6b735aff [Krisztián Szűcs] re-export env variables for osx wheels
    e8fc1d50 [Krisztián Szűcs] linux tasks
    b7c71e04 [Krisztián Szűcs] fix validation order
    7cf0e9ca [Krisztián Szűcs] remove build matricies from ci configurations; expand to multiple tasks instead
---
 c_glib/Makefile.am                                 |   1 +
 c_glib/autogen.sh                                  |   2 +-
 dev/tasks/README.md                                |  18 +-
 dev/tasks/conda-recipes/appveyor.yml               |  40 ++-
 dev/tasks/conda-recipes/travis.linux.yml           |  52 ++--
 dev/tasks/conda-recipes/travis.osx.yml             |  70 ++---
 dev/tasks/crossbow.py                              | 192 ++++++-------
 .../linux-packages/apt/ubuntu-artful/Dockerfile    |   3 +
 dev/tasks/linux-packages/debian/rules              |   3 +-
 dev/tasks/linux-packages/travis.linux.yml          |  62 ++--
 dev/tasks/python-wheels/appveyor.yml               |  21 +-
 dev/tasks/python-wheels/osx-build.sh               |  67 ++++-
 dev/tasks/python-wheels/travis.linux.yml           |  11 +-
 dev/tasks/python-wheels/travis.osx.yml             |  31 +-
 dev/tasks/python-wheels/win-build.bat              |   6 +-
 dev/tasks/tasks.yml                                | 317 +++++++++++++++++----
 16 files changed, 542 insertions(+), 354 deletions(-)

diff --git a/c_glib/Makefile.am b/c_glib/Makefile.am
index 4cc70e5..92190e4 100644
--- a/c_glib/Makefile.am
+++ b/c_glib/Makefile.am
@@ -26,6 +26,7 @@ SUBDIRS =					\
 
 EXTRA_DIST =					\
 	README.md				\
+	autogen.sh				\
 	meson.build				\
 	meson_options.txt			\
 	test
diff --git a/c_glib/autogen.sh b/c_glib/autogen.sh
index d1e4df8..eeca380 100755
--- a/c_glib/autogen.sh
+++ b/c_glib/autogen.sh
@@ -23,4 +23,4 @@ set -e
 mkdir -p m4
 
 gtkdocize --copy
-autoreconf --install
+autoreconf --install --force
diff --git a/dev/tasks/README.md b/dev/tasks/README.md
index ecf690b..d7f0afa 100644
--- a/dev/tasks/README.md
+++ b/dev/tasks/README.md
@@ -85,7 +85,7 @@ submission. The tasks are defined in `tasks.yml`
 
    ```bash
    # pygit2 requires libgit2: http://www.pygit2.org/install.html
-   pip install -y jinja2 pygit2 click ruamel.yaml setuptools_scm github3.py python-gnupg
+   pip install jinja2 pygit2 click ruamel.yaml setuptools_scm github3.py python-gnupg
    ```
 
 7. Try running it:
@@ -127,7 +127,7 @@ The script does the following:
    to build conda recipes on linux it will create a new branch:
    `crossbow@build-<id>-conda-linux`.
 3. Pushes the modified branches to GitHub which triggers the builds.
-   For authentication it uses github oauth tokens described in the install
+   For authentication it uses GitHub OAuth tokens described in the install
    section.
 
 
@@ -150,14 +150,14 @@ The script accepts a pattern as a first argument to narrow the build scope:
 Run multiple builds:
 
 ```bash
-$ python crossbow.py submit linux-packages conda-linux wheel-win
+$ python crossbow.py submit debian-stretch conda-linux-py36 wheel-win-py36
 Repository: https://github.com/kszucs/arrow@tasks
 Commit SHA: 810a718836bb3a8cefc053055600bdcc440e6702
 Version: 0.9.1.dev48+g810a7188.d20180414
 Pushed branches:
- - linux-packages
- - conda-linux
- - wheel-win
+ - debian-stretch
+ - conda-linux-py36
+ - wheel-win-py36
 ```
 
 Just render without applying or committing the changes:
@@ -166,14 +166,14 @@ Just render without applying or committing the changes:
 $ python crossbow.py submit --dry-run task_name
 ```
 
-Run only `conda` package builds but on all platforms:
+Run only `conda` package builds and a Linux one:
 
 ```bash
-$ python crossbow.py submit conda-win conda-osx conda-linux
+$ python crossbow.py submit -g conda centos-7
 ```
 
 Run `wheel` builds:
 
 ```bash
-$ python crossbow.py submit wheel-osx wheel-linux wheel-win
+$ python crossbow.py submit --group wheel
 ```
diff --git a/dev/tasks/conda-recipes/appveyor.yml b/dev/tasks/conda-recipes/appveyor.yml
index 664c0b2..40436a6 100644
--- a/dev/tasks/conda-recipes/appveyor.yml
+++ b/dev/tasks/conda-recipes/appveyor.yml
@@ -17,37 +17,31 @@
 
 environment:
   ARROW_VERSION: {{ arrow.version }}
-  matrix:
-    - CONFIG: variants\win_c_compilervs2015cxx_compilervs2015python3.5.yaml
-      CONDA_INSTALL_LOCN: C:\\Miniconda35-x64
-
-    - CONFIG: variants\win_c_compilervs2015cxx_compilervs2015python3.6.yaml
-      CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
 
 # We always use a 64-bit machine, but can build x86 distributions
 # with the TARGET_ARCH variable.
 platform:
-    - x64
+  - x64
 
 install:
-    # Cywing's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.)
-    - cmd: rmdir C:\cygwin /s /q
+  # Cywing's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.)
+  - 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
+  # Add path, activate `conda` and update conda.
+  - cmd: call {{ conda_install_location }}\Scripts\activate.bat
+  - cmd: conda.exe update --yes --quiet conda
 
-    - cmd: set PYTHONUNBUFFERED=1
+  - 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
+  # 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-ci-setup=1
-    - cmd: run_conda_forge_build_setup
+  # Configure the VM.
+  - cmd: conda.exe install -n root --quiet --yes conda-forge-ci-setup=1
+  - cmd: run_conda_forge_build_setup
 
 # Skip .NET project specific build phase.
 build: off
@@ -56,7 +50,7 @@ test_script:
   - git clone -b {{ arrow.branch }} {{ arrow.remote }} arrow || exit /B
   - git -C arrow checkout {{ arrow.head }} || exit /B
   - pushd arrow\dev\tasks\conda-recipes
-  - conda.exe build --output-folder . -m %CONFIG% parquet-cpp arrow-cpp pyarrow
+  - conda.exe build --output-folder . -m {{ variant_config_file }} parquet-cpp arrow-cpp pyarrow
   - pushd win-64
   - for %%f in (*.tar.bz2) do (
       set %%g=%%~nf
@@ -68,7 +62,7 @@ artifacts:
   - path: arrow\dev\tasks\conda-recipes\win-64\*.tar.bz2
 
 deploy:
-  release: {{ job.branch }}
+  release: {{ task.tag }}
   provider: GitHub
   auth_token: "%CROSSBOW_GITHUB_TOKEN%"
   artifact: /.*\.tar\.bz2/
diff --git a/dev/tasks/conda-recipes/travis.linux.yml b/dev/tasks/conda-recipes/travis.linux.yml
index 7686c4f..dcf0c42 100644
--- a/dev/tasks/conda-recipes/travis.linux.yml
+++ b/dev/tasks/conda-recipes/travis.linux.yml
@@ -21,48 +21,38 @@ os: linux
 dist: trusty
 
 env:
-  matrix:
-    - CONFIG=variants/linux_python2.7.yaml
-    - CONFIG=variants/linux_python3.5.yaml
-    - CONFIG=variants/linux_python3.6.yaml
   global:
-    - TRAVIS_TAG={{ job.branch }}
+    - TRAVIS_TAG={{ task.tag }}
     - ARROW_VERSION={{ arrow.version }}
     - PYTHONUNBUFFERED=1
 
 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
+  # 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-build
+  # 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-build
 
 script:
   - git clone -b {{ arrow.branch }} {{ arrow.remote }} arrow
   - git -C arrow checkout {{ arrow.head }}
   - pushd arrow/dev/tasks/conda-recipes
-  - conda build --output-folder . -m $CONFIG parquet-cpp arrow-cpp pyarrow
-  - pushd linux-64
-  - |
-    for file in *.tar.bz2; do
-      mv "$file" "$(basename "$file" .tar.bz2)-linux-64.tar.bz2"
-    done
-    popd
+  - conda build --output-folder . -m {{ variant_config_file }} parquet-cpp arrow-cpp pyarrow
 
 deploy:
   provider: releases
diff --git a/dev/tasks/conda-recipes/travis.osx.yml b/dev/tasks/conda-recipes/travis.osx.yml
index dc94668..d92c19d 100644
--- a/dev/tasks/conda-recipes/travis.osx.yml
+++ b/dev/tasks/conda-recipes/travis.osx.yml
@@ -21,60 +21,48 @@ os: osx
 osx_image: xcode6.4
 
 env:
-  matrix:
-    - CONFIG=variants/osx_python2.7.yaml
-    - CONFIG=variants/osx_python3.5.yaml
-    - CONFIG=variants/osx_python3.6.yaml
   global:
-    - TRAVIS_TAG={{ job.branch }}
+    - TRAVIS_TAG={{ task.tag }}
     - ARROW_VERSION={{ arrow.version }}
     - PYTHONUNBUFFERED=1
 
 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
+  # 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-ci-setup=1
-      source run_conda_forge_build_setup
+  # 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
 
-# conda install --yes --quiet conda-build
+  # 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-ci-setup=1
+    source run_conda_forge_build_setup
 
 script:
   - git clone -b {{ arrow.branch }} {{ arrow.remote }} arrow
   - git -C arrow checkout {{ arrow.head }}
   - pushd arrow/dev/tasks/conda-recipes
-  - conda build --output-folder . -m $CONFIG parquet-cpp arrow-cpp pyarrow
-  - pushd osx-64
-  - |
-    for file in *.tar.bz2; do
-      mv "$file" "$(basename "$file" .tar.bz2)-osx-64.tar.bz2"
-    done
-    popd
+  - conda build --output-folder . -m {{ variant_config_file }} parquet-cpp arrow-cpp pyarrow
 
 deploy:
   provider: releases
diff --git a/dev/tasks/crossbow.py b/dev/tasks/crossbow.py
index 3b71358..0578e15 100755
--- a/dev/tasks/crossbow.py
+++ b/dev/tasks/crossbow.py
@@ -27,7 +27,6 @@ import github3
 
 from io import StringIO
 from pathlib import Path
-from datetime import date
 from textwrap import dedent
 from jinja2 import Template, StrictUndefined
 from setuptools_scm import get_version
@@ -201,8 +200,10 @@ class Queue(Repo):
         return yaml.load(buffer)
 
     def put(self, job, prefix='build'):
+        # TODO(kszucs): more verbose error handling
         assert isinstance(job, Job)
         assert job.branch is None
+        assert len(job.tasks) > 0
 
         # auto increment and set next job id, e.g. build-85
         job.branch = self._next_job_id(prefix)
@@ -212,23 +213,21 @@ class Queue(Repo):
             task.branch = '{}-{}'.format(job.branch, task_name)
             files = task.render_files(job=job, arrow=job.target)
             branch = self.create_branch(task.branch, files=files)
+            self.create_tag(task.tag, branch.target)
             task.commit = str(branch.target)
 
-        # create job's branch
-        branch = self.create_branch(job.branch, files=job.render_files())
-        self.create_tag(job.branch, branch.target)
-
-        return branch
+        # create job's branch with its description
+        return self.create_branch(job.branch, files=job.render_files())
 
     def github_statuses(self, job):
         repo = self.as_github_repo()
         return {name: repo.commit(task.commit).status()
                 for name, task in job.tasks.items()}
 
-    def github_assets(self, job):
+    def github_assets(self, task):
         repo = self.as_github_repo()
         try:
-            release = repo.release_from_tag(job.branch)
+            release = repo.release_from_tag(task.tag)
         except github3.exceptions.NotFoundError:
             return {}
         else:
@@ -264,8 +263,8 @@ class Target(object):
         self.version = version
 
     @classmethod
-    def from_repo(cls, repo_path):
-        repo = Repo(repo_path)
+    def from_repo(cls, repo):
+        assert isinstance(repo, Repo)
         version = get_version(repo.path, local_scheme=lambda v: '')
         return cls(head=str(repo.head.target),
                    email=repo.email,
@@ -297,10 +296,14 @@ class Task(object):
     def render_files(self, **extra_params):
         path = CWD / self.template
         template = Template(path.read_text(), undefined=StrictUndefined)
-        rendered = template.render(**self.params, **extra_params)
+        rendered = template.render(task=self, **self.params, **extra_params)
         return {self.filename: rendered}
 
     @property
+    def tag(self):
+        return self.branch
+
+    @property
     def ci(self):
         if self.platform == 'win':
             return 'appveyor'
@@ -357,81 +360,77 @@ DEFAULT_QUEUE_PATH = CWD.parents[2] / 'crossbow'
 
 
 @click.group()
-def crossbow():
-    pass
-
-
-def github_token_validation_callback(ctx, param, value):
-    if value is None:
+@click.option('--github-token', '-t', default=None,
+              help='OAuth token for GitHub authentication')
+@click.option('--arrow-path', '-a',
+              type=click.Path(exists=True), default=DEFAULT_ARROW_PATH,
+              help='Arrow\'s repository path. Defaults to the repository of '
+                   'this script')
+@click.option('--queue-path', '-q',
+              type=click.Path(exists=True), default=DEFAULT_QUEUE_PATH,
+              help='The repository path used for scheduling the tasks. '
+                   'Defaults to crossbow directory placed next to arrow')
+@click.pass_context
+def crossbow(ctx, github_token, arrow_path, queue_path):
+    if github_token is None:
         raise click.ClickException(
             'Could not determine GitHub token. Please set the '
             'CROSSBOW_GITHUB_TOKEN environment variable to a '
-            'valid github access token or pass one to --github-token.'
+            'valid GitHub access token or pass one to --github-token.'
         )
-    return value
 
+    ctx.obj['arrow'] = Repo(Path(arrow_path))
+    ctx.obj['queue'] = Queue(Path(queue_path), github_token=github_token)
 
-github_token = click.option(
-    '--github-token',
-    default=None,
-    envvar='CROSSBOW_GITHUB_TOKEN',
-    help='OAuth token for Github authentication',
-    callback=github_token_validation_callback,
-)
 
-
-def config_path_validation_callback(ctx, param, value):
-    with Path(value).open() as fp:
+def load_tasks_from_config(config_path, task_names, group_names):
+    with Path(config_path).open() as fp:
         config = yaml.load(fp)
-    task_names = ctx.params['task_names']
+
+    valid_groups = set(config['groups'].keys())
+    requested_groups = set(group_names)
+    invalid_groups = requested_groups - valid_groups
+    if invalid_groups:
+        raise click.ClickException('Invalid group(s) {!r}. Must be one of {!r}'
+                                   .format(invalid_groups, valid_groups))
+
     valid_tasks = set(config['tasks'].keys())
-    invalid_tasks = {task for task in task_names if task not in valid_tasks}
+    requested_tasks = set(
+        sum([config['groups'][g] for g in group_names], list(task_names))
+    )
+    invalid_tasks = requested_tasks - valid_tasks
     if invalid_tasks:
-        raise click.ClickException(
-            'Invalid task(s) {!r}. Must be one of {!r}'.format(
-                invalid_tasks,
-                valid_tasks
-            )
-        )
-    return value
+        raise click.ClickException('Invalid task(s) {!r}. Must be one of {!r}'
+                                   .format(invalid_tasks, valid_tasks))
+
+    return {t: config['tasks'][t] for t in requested_tasks}
 
 
 @crossbow.command()
-@click.argument('task-names', nargs=-1, required=True)
+@click.argument('task', nargs=-1, required=False)
+@click.option('--group', '-g', multiple=True,
+              help='Submit task groups as defined in task.yml')
 @click.option('--job-prefix', default='build',
               help='Arbitrary prefix for branch names, e.g. nightly')
-@click.option('--config-path', default=DEFAULT_CONFIG_PATH,
-              type=click.Path(exists=True),
-              callback=config_path_validation_callback,
+@click.option('--config-path', '-c',
+              type=click.Path(exists=True), default=DEFAULT_CONFIG_PATH,
               help='Task configuration yml. Defaults to tasks.yml')
 @click.option('--dry-run/--push', default=False,
               help='Just display the rendered CI configurations without '
                    'submitting them')
-@click.option('--arrow-path', default=DEFAULT_ARROW_PATH,
-              help='Arrow\'s repository path. Defaults to the repository of '
-                   'this script')
-@click.option('--queue-path', default=DEFAULT_QUEUE_PATH,
-              help='The repository path used for scheduling the tasks. '
-                   'Defaults to crossbow directory placed next to arrow')
-@github_token
-def submit(task_names, job_prefix, config_path, dry_run, arrow_path,
-           queue_path, github_token):
-    queue = Queue(queue_path, github_token=github_token)
-    target = Target.from_repo(arrow_path)
-
-    with Path(config_path).open() as fp:
-        config = yaml.load(fp)
+@click.pass_context
+def submit(ctx, task, group, job_prefix, config_path, dry_run):
+    queue, arrow = ctx.obj['queue'], ctx.obj['arrow']
+    target = Target.from_repo(arrow)
 
-    today = date.today().strftime('%Y%m%d')
+    # task and group variables are lists, containing multiple values
     tasks = {}
-    for task_name in task_names:
-        task = config['tasks'][task_name]
-        # replace version number and current date in artifact names
-        artifacts = task.pop('artifacts', None) or []
-        artifacts = [fname.format(version=target.version, date=today)
-                     for fname in artifacts]
-        # create task instance from configuration
-        tasks[task_name] = Task(**task, artifacts=artifacts)
+    task_configs = load_tasks_from_config(config_path, task, group)
+    for name, task in task_configs.items():
+        # replace version number and create task instance from configuration
+        artifacts = task.pop('artifacts', None) or []  # because of yaml
+        artifacts = [fn.format(version=target.version) for fn in artifacts]
+        tasks[name] = Task(**task, artifacts=artifacts)
 
     # create job instance, doesn't mutate git data yet
     job = Job(target=target, tasks=tasks)
@@ -457,25 +456,22 @@ def submit(task_names, job_prefix, config_path, dry_run, arrow_path,
 
 @crossbow.command()
 @click.argument('job-name', required=True)
-@click.option('--queue-path', default=DEFAULT_QUEUE_PATH,
-              help='The repository path used for scheduling the tasks. '
-                   'Defaults to crossbow directory placed next to arrow')
-@github_token
-def status(job_name, queue_path, github_token):
-    queue = Queue(queue_path, github_token=github_token)
+@click.pass_context
+def status(ctx, job_name):
+    queue, arrow = ctx.obj['queue'], ctx.obj['arrow']
     queue.fetch()
 
-    tpl = '[{:>7}] {:<24} {:>45}'
+    tpl = '[{:>7}] {:<49} {:>20}'
     header = tpl.format('status', 'branch', 'artifacts')
     click.echo(header)
     click.echo('-' * len(header))
 
     job = queue.get(job_name)
-    assets = queue.github_assets(job)
     statuses = queue.github_statuses(job)
 
     for task_name, task in job.tasks.items():
         status = statuses[task_name]
+        assets = queue.github_assets(task)
 
         uploaded = 'uploaded {} / {}'.format(
             sum(a in assets for a in task.artifacts),
@@ -502,51 +498,55 @@ def status(job_name, queue_path, github_token):
 @click.option('--gpg-homedir', default=None,
               help=('Full pathname to directory containing the public and '
                     'private keyrings. Default is whatever GnuPG defaults to'))
-@click.option('--target-dir', default=DEFAULT_ARROW_PATH / 'pkgs',
+@click.option('--target-dir', default=DEFAULT_ARROW_PATH / 'packages',
               help='Directory to download the build artifacts')
-@click.option('--queue-path', default=DEFAULT_QUEUE_PATH,
-              help='The repository path used for scheduling the tasks. '
-                   'Defaults to crossbow directory placed next to arrow')
-@github_token
-def sign(job_name, gpg_homedir, target_dir, queue_path, github_token):
+@click.pass_context
+def sign(ctx, job_name, gpg_homedir, target_dir):
     """Download and sign build artifacts from github releases"""
-
     import gnupg
     gpg = gnupg.GPG(gnupghome=gpg_homedir)
 
-    # initialize and fetch the queue repository
-    queue = Queue(queue_path, github_token=github_token)
+    # fetch the queue repository
+    queue = ctx.obj['queue']
     queue.fetch()
 
     # query the job's artifacts
     job = queue.get(job_name)
-    assets = queue.github_assets(job)
 
-    click.echo('Downloading and signing assets...')
-    target_dir = Path(target_dir).absolute()
-    target_dir.mkdir(exist_ok=True)
+    target_dir = Path(target_dir).absolute() / job_name
+    target_dir.mkdir(parents=True, exist_ok=True)
+    click.echo('Download {}\'s artifacts to {}'.format(job_name, target_dir))
 
-    tpl = '[{:>8}] '
+    tpl = '{:<10} {:>68}'
     for task_name, task in job.tasks.items():
+        assets = queue.github_assets(task)
+        artifact_dir = target_dir / task_name
+        artifact_dir.mkdir(exist_ok=True)
+
+        click.echo('\nDownloading and signing assets for task {}'
+                    .format(task_name))
+        click.echo('-' * 79)
+
         for artifact in task.artifacts:
             if artifact not in assets:
-                msg = click.style(tpl.format('MISSING'), fg=COLORS['missing'])
-                click.echo(msg + artifact)
+                msg = click.style('[{:>8}]'.format('MISSING'),
+                                  fg=COLORS['missing'])
+                click.echo(tpl.format(msg, artifact))
                 continue
 
             # download artifact
-            target_path = target_dir / artifact
-            assets[artifact].download(target_path)
+            artifact_path = artifact_dir / artifact
+            assets[artifact].download(artifact_path)
 
             # sign the artifact
-            with target_path.open('rb') as fp:
-                signature_path = Path(str(target_path) + '.sig')
+            with artifact_path.open('rb') as fp:
+                signature_path = Path(str(artifact_path) + '.sig')
                 gpg.sign_file(fp, detach=True, clearsign=False,
                               output=str(signature_path))
 
-            msg = click.style(tpl.format('SIGNED'), fg=COLORS['ok'])
-            click.echo(msg + artifact)
+            msg = click.style('[{:>8}]'.format('SIGNED'), fg=COLORS['ok'])
+            click.echo(tpl.format(msg, artifact))
 
 
 if __name__ == '__main__':
-    crossbow(auto_envvar_prefix='CROSSBOW')
+    crossbow(obj={}, auto_envvar_prefix='CROSSBOW')
diff --git a/dev/tasks/linux-packages/apt/ubuntu-artful/Dockerfile b/dev/tasks/linux-packages/apt/ubuntu-artful/Dockerfile
index d953000..a5ba85a 100644
--- a/dev/tasks/linux-packages/apt/ubuntu-artful/Dockerfile
+++ b/dev/tasks/linux-packages/apt/ubuntu-artful/Dockerfile
@@ -38,9 +38,12 @@ RUN \
     libgirepository1.0-dev \
     libglib2.0-doc \
     libjemalloc-dev \
+    libprotobuf-dev \
+    libprotoc-dev \
     lsb-release \
     nvidia-cuda-toolkit \
     pkg-config \
+    protobuf-compiler \
     python3-dev \
     python3-numpy && \
   apt clean && \
diff --git a/dev/tasks/linux-packages/debian/rules b/dev/tasks/linux-packages/debian/rules
index 956ef2d..72e0fa5 100755
--- a/dev/tasks/linux-packages/debian/rules
+++ b/dev/tasks/linux-packages/debian/rules
@@ -15,7 +15,8 @@ BUILD_TYPE=release
 
 override_dh_autoreconf:
 	dh_autoreconf \
-	  --sourcedirectory=c_glib
+	  --sourcedirectory=c_glib \
+	  ./autogen.sh
 
 override_dh_auto_configure:
 	dh_auto_configure \
diff --git a/dev/tasks/linux-packages/travis.linux.yml b/dev/tasks/linux-packages/travis.linux.yml
index b151a30..1f9bbb5 100644
--- a/dev/tasks/linux-packages/travis.linux.yml
+++ b/dev/tasks/linux-packages/travis.linux.yml
@@ -23,55 +23,10 @@ language: ruby
 env:
   global:
     - PLAT=x86_64
-    - TRAVIS_TAG={{ job.branch }}
+    - TRAVIS_TAG={{ task.tag }}
     - BUILD_REF={{ arrow.head }}
     - ARROW_VERSION={{ arrow.version }}
 
-matrix:
-  include:
-    - script:
-        - pushd arrow/dev/tasks/linux-packages
-        - |
-          rake version:update && travis_wait 60 rake apt:build \
-              APT_TARGETS=debian-stretch,ubuntu-trusty,ubuntu-xenial \
-              PARALLEL=yes \
-              DEBUG=no
-      deploy:
-        provider: releases
-        api_key: $CROSSBOW_GITHUB_TOKEN
-        file_glob: true
-        file: "**/*.deb"
-        skip_cleanup: true
-        on:
-          tags: true
-    - script:
-        - pushd arrow/dev/tasks/linux-packages
-        - |
-          rake version:update && travis_wait 60 rake apt:build \
-              APT_TARGETS=ubuntu-artful,ubuntu-bionic \
-              PARALLEL=yes \
-              DEBUG=no
-      # TODO(kszucs) resolve artifact naming conflict with other debian pkgs
-      # deploy:
-      #   provider: releases
-      #   api_key: $CROSSBOW_GITHUB_TOKEN
-      #   file_glob: true
-      #   file: "**/*.deb"
-      #   skip_cleanup: true
-      #   on:
-      #     tags: true
-    - script:
-        - pushd arrow/dev/tasks/linux-packages
-        - rake version:update && rake yum:build PARALLEL=yes DEBUG=no
-      deploy:
-        provider: releases
-        api_key: $CROSSBOW_GITHUB_TOKEN
-        file_glob: true
-        file: "**/*.rpm"
-        skip_cleanup: true
-        on:
-          tags: true
-
 before_install:
   - sudo apt update -y -qq
   - |
@@ -99,6 +54,21 @@ before_script:
   - git clone -b {{ arrow.branch }} {{ arrow.remote }} arrow
   - git -C arrow checkout {{ arrow.head }}
 
+script:
+  - pushd arrow/dev/tasks/linux-packages
+  - rake version:update
+  - rake dist
+  - {{ build_command }}
+
+deploy:
+  provider: releases
+  api_key: $CROSSBOW_GITHUB_TOKEN
+  file_glob: true
+  file: "**/*.{{ package_format }}"
+  skip_cleanup: true
+  on:
+    tags: true
+
 notifications:
   email:
     - {{ job.email }}
diff --git a/dev/tasks/python-wheels/appveyor.yml b/dev/tasks/python-wheels/appveyor.yml
index 83ebe60..fc0fb5b 100644
--- a/dev/tasks/python-wheels/appveyor.yml
+++ b/dev/tasks/python-wheels/appveyor.yml
@@ -18,22 +18,17 @@
 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"
+  ARCH: "64"
+  GENERATOR: Visual Studio 14 2015 Win64
+  NUMPY: "{{ numpy_version }}"
+  PYTHON: "{{ python_version }}"
   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: {{ arrow.version }}
-  pyarrow_ref: {{ arrow.head }}
-  parquet_cpp_ref: apache-parquet-cpp-1.4.0
   ARROW_SRC: C:\apache-arrow
+  PYARROW_VERSION: {{ arrow.version }}
+  PYARROW_REF: {{ arrow.head }}
+  PARQUET_CPP_REF: apache-parquet-cpp-1.4.0
 
 init:
   - set MINICONDA=C:\Miniconda35-x64
@@ -52,7 +47,7 @@ artifacts:
   - path: wheels\*.whl
 
 deploy:
-  release: {{ job.branch }}
+  release: {{ task.tag }}
   provider: GitHub
   auth_token: "%CROSSBOW_GITHUB_TOKEN%"
   artifact: /.*\.whl/
diff --git a/dev/tasks/python-wheels/osx-build.sh b/dev/tasks/python-wheels/osx-build.sh
index 43bad90..7bb1db1 100755
--- a/dev/tasks/python-wheels/osx-build.sh
+++ b/dev/tasks/python-wheels/osx-build.sh
@@ -22,11 +22,16 @@ set -e
 function build_wheel {
     pip install -U pip
     pip install setuptools_scm
-    echo `pwd`
+
+    # Include brew installed versions of flex and bison.
+    # We need them to build Thrift. The ones that come with Xcode are too old.
     export PATH="/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH"
+
+    echo `pwd`
     echo CFLAGS=${CFLAGS}
     echo CXXFLAGS=${CXXFLAGS}
     echo LDFLAGS=${LDFLAGS}
+
     pushd $1
 
     boost_version="1.65.1"
@@ -40,19 +45,24 @@ function build_wheel {
     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"
 
+    # Build Boost's bcp tool to create a custom namespaced boost build.
+    # Using this build, we can dynamically link our own boost build and
+    # don't need to fear any clashes with system / thirdparty provided versions
+    # of Boost.
+    pushd "${boost_directory_name}"
     ./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
-
+        "$arrow_boost" > /dev/null 2>&1
     popd
+
+    # Now build our custom namespaced Boost version.
     pushd "$arrow_boost"
     ./bootstrap.sh
     ./bjam cxxflags="${CXXFLAGS}" \
@@ -65,7 +75,27 @@ function build_wheel {
         install > /dev/null 2>&1
     popd
 
-    export THRIFT_HOME=/usr/local
+    # The boost libraries don't set an explicit install name and we have not
+    # yet found the correct option on `bjam` to set the install name to the
+    # one we desire.
+    #
+    # Set it to @rpath/<binary_name> so that they are search in the same
+    # directory as the library that loaded them.
+    pushd "${arrow_boost_dist}"/lib
+      for dylib in *.dylib; do
+        install_name_tool -id @rpath/${dylib} ${dylib}
+      done
+      # Manually adjust libarrow_boost_filesystem.dylib which also references
+      # libarrow_boost_system.dylib. It's reference should be to the
+      # libarrow_boost_system.dylib with an @rpath prefix so that it also
+      # searches for it in the local folder.
+      install_name_tool -change libarrow_boost_system.dylib @rpath/libarrow_boost_system.dylib libarrow_boost_filesystem.dylib
+    popd
+
+    # We build a custom version of thrift instead of using the one that comes
+    # with brew as we also want it to use our namespaced version of Boost.
+    # TODO(PARQUET-1262): Use the external project facilities of parquet-cpp.
+    export THRIFT_HOME=`pwd`/thift-dist
     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
@@ -93,8 +123,12 @@ function build_wheel {
     popd
     popd
 
-    export ARROW_HOME=/usr/local
-    export PARQUET_HOME=/usr/local
+    # Now we can start with the actual build of Arrow and Parquet.
+    # We pin NumPy to an old version here as the NumPy version one builds
+    # with is the oldest supported one. Thanks to NumPy's guarantees our Arrow
+    # build will also work with newer NumPy versions.
+    export ARROW_HOME=`pwd`/arrow-dist
+    export PARQUET_HOME=`pwd`/arrow-dist
     pip install "cython==0.27.3" "numpy==${NP_TEST_DEP}"
     pushd cpp
     mkdir build
@@ -104,10 +138,9 @@ function build_wheel {
           -DARROW_BUILD_TESTS=OFF \
           -DARROW_BUILD_SHARED=ON \
           -DARROW_BOOST_USE_SHARED=ON \
-          -DARROW_JEMALLOC=OFF \
+          -DARROW_JEMALLOC=ON \
           -DARROW_PLASMA=ON \
           -DARROW_RPATH_ORIGIN=ON \
-          -DARROW_JEMALLOC_USE_SHARED=OFF \
           -DARROW_PYTHON=ON \
           -DARROW_ORC=ON \
           -DBOOST_ROOT="$arrow_boost_dist" \
@@ -136,8 +169,13 @@ function build_wheel {
     popd
     popd
 
+    # Unset the HOME variables and use pkg-config to discover the previously
+    # built binaries. By using pkg-config, we also are able to discover the
+    # ABI and SO versions of the dynamic libraries.
+    export PKG_CONFIG_PATH=${ARROW_HOME}/lib/pkgconfig:${PARQUET_HOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
     unset ARROW_HOME
     unset PARQUET_HOME
+
     export PYARROW_WITH_PARQUET=1
     export PYARROW_WITH_ORC=1
     export PYARROW_WITH_JEMALLOC=1
@@ -153,9 +191,18 @@ function build_wheel {
            --bundle-arrow-cpp --bundle-boost --boost-namespace=arrow_boost \
            bdist_wheel
     ls -l dist/
+
+    # Do a test installation of the built wheel and change into another
+    # directory to ensure our import tests later on pick up the wheel and
+    # not the binaries from the build directory.
     for wheel in dist/*.whl; do
-	unzip -l "$wheel"
+      pip install "$wheel"
     done
+    mkdir -p tmp
+    pushd tmp
+    python -c "import pyarrow"
+    python -c "import pyarrow.parquet"
+    popd
     popd
     popd
 }
diff --git a/dev/tasks/python-wheels/travis.linux.yml b/dev/tasks/python-wheels/travis.linux.yml
index 3f4e6e4..bdc4f02 100644
--- a/dev/tasks/python-wheels/travis.linux.yml
+++ b/dev/tasks/python-wheels/travis.linux.yml
@@ -17,8 +17,9 @@
 env:
   global:
     - PLAT=x86_64
-    - TRAVIS_TAG={{ job.branch }}
+    - TRAVIS_TAG={{ task.tag }}
     - BUILD_REF={{ arrow.head }}
+    - PYTHON_VERSION={{ python_version }}
     - PYARROW_VERSION={{ arrow.version }}
 
 os: linux
@@ -39,9 +40,11 @@ script:
   - 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
+  - docker run --shm-size=2g --rm
+      -e SETUPTOOLS_SCM_PRETEND_VERSION=$PYARROW_VERSION
+      -e PYTHON_VERSIONS=$PYTHON_VERSION
+      -v $PWD:/io arrow-base-x86_64
+      /io/build_arrow.sh
   - popd
 
   - sudo mv arrow/python/manylinux1/dist/* dist/
diff --git a/dev/tasks/python-wheels/travis.osx.yml b/dev/tasks/python-wheels/travis.osx.yml
index 10928c4..d8a107b 100644
--- a/dev/tasks/python-wheels/travis.osx.yml
+++ b/dev/tasks/python-wheels/travis.osx.yml
@@ -19,39 +19,22 @@ language: generic
 os: osx
 osx_image: xcode8.3
 
-sudo: required
-
 env:
   global:
     - PLAT=x86_64
-    - TRAVIS_TAG={{ job.branch }}
+    - TRAVIS_TAG={{ task.tag }}
     - BUILD_REF={{ arrow.head }}
     - PYARROW_VERSION={{ arrow.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"
+    - MACOSX_DEPLOYMENT_TARGET="10.9"
+    - MB_PYTHON_VERSION={{ python_version }}
+    - NP_BUILD_DEP="{{ numpy_version }}"
+    - NP_TEST_DEP="{{ numpy_version }}"
+    - PANDAS_DEP="{{ pandas_version }}"
 
 before_install:
   - git clone https://github.com/matthew-brett/multibuild # TODO pin it
   - git clone -b {{ arrow.branch }} {{ arrow.remote }} arrow
-  - git -C arrow checkout {{ arrow.head }}  
+  - git -C arrow checkout {{ arrow.head }}
 
   # Also remove artifacts that depend on Boost
   - brew uninstall boost cgal postgis sfcgal
diff --git a/dev/tasks/python-wheels/win-build.bat b/dev/tasks/python-wheels/win-build.bat
index d398f8e..37d0b64 100644
--- a/dev/tasks/python-wheels/win-build.bat
+++ b/dev/tasks/python-wheels/win-build.bat
@@ -35,7 +35,7 @@ pushd %ARROW_SRC%
 @rem fix up symlinks
 git config core.symlinks true
 git reset --hard || exit /B
-git checkout "%pyarrow_ref%" || exit /B
+git checkout "%PYARROW_REF%" || exit /B
 
 popd
 
@@ -68,7 +68,7 @@ popd
 @rem Build parquet-cpp
 git clone https://github.com/apache/parquet-cpp.git || exit /B
 pushd parquet-cpp
-git checkout "%parquet_cpp_ref%"
+git checkout "%PARQUET_CPP_REF%"
 popd
 
 mkdir parquet-cpp\build
@@ -87,7 +87,7 @@ set PYTHONPATH=
 
 pushd %ARROW_SRC%\python
 set PYARROW_BUILD_TYPE=Release
-set SETUPTOOLS_SCM_PRETEND_VERSION=%pyarrow_version%
+set SETUPTOOLS_SCM_PRETEND_VERSION=%PYARROW_VERSION%
 
 python setup.py build_ext ^
        --with-parquet ^
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index 683833e..03d4de0 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -15,81 +15,224 @@
 # specific language governing permissions and limitations
 # under the License.
 
+groups:
+  # these groups are just for convenience
+  # makes it easier to submit related tasks
+  conda:
+    - conda-linux-py27
+    - conda-linux-py35
+    - conda-linux-py36
+    - conda-osx-py27
+    - conda-osx-py35
+    - conda-osx-py36
+    - conda-win-py35
+    - conda-win-py36
+  wheel:
+    - wheel-linux-cp27m
+    - wheel-linux-cp27mu
+    - wheel-linux-cp35m
+    - wheel-linux-cp36m
+  linux:
+    - debian-stretch
+    - ubuntu-trusty
+    - ubuntu-xenial
+    - ubuntu-artful
+    - ubuntu-bionic
+    - centos-6
+    - centos-7
+
 tasks:
   # arbitrary_task_name:
   #   platform: osx|linux|win
   #   template: path of jinja2 templated yml
   #   params: optional extra parameters
   #   artifacts: list of expected release asset filenames,
-  #     version and date variables can be used in the artifact's name, e.g.
-  #     - pyarrow-{version}-{date}-py36_0-linux-64.tar.bz2
+  #     version variable can be used in the artifact's name, e.g.
+  #     - pyarrow-{version}-py36_0-linux-64.tar.bz2
+
+  ############################## Conda Linux ##################################
 
-  # conda packages
-  conda-linux:
+  conda-linux-py27:
     platform: linux
     template: conda-recipes/travis.linux.yml
+    params:
+      variant_config_file: variants/linux_python2.7.yaml
     artifacts:
-      - arrow-cpp-{version}-py27_0-linux-64.tar.bz2
-      - arrow-cpp-{version}-py35_0-linux-64.tar.bz2
-      - arrow-cpp-{version}-py36_0-linux-64.tar.bz2
-      - pyarrow-{version}-py27_0-linux-64.tar.bz2
-      - pyarrow-{version}-py35_0-linux-64.tar.bz2
-      - pyarrow-{version}-py36_0-linux-64.tar.bz2
-      - parquet-cpp-1.4.0-0-linux-64.tar.bz2
+      - arrow-cpp-{version}-py27_0.tar.bz2
+      - pyarrow-{version}-py27_0.tar.bz2
+      - parquet-cpp-1.4.0-0.tar.bz2  # don't upload?
 
-  conda-osx:
+  conda-linux-py35:
+    platform: linux
+    template: conda-recipes/travis.linux.yml
+    params:
+      variant_config_file: variants/linux_python3.5.yaml
+    artifacts:
+      - arrow-cpp-{version}-py35_0.tar.bz2
+      - pyarrow-{version}-py35_0.tar.bz2
+      - parquet-cpp-1.4.0-0.tar.bz2  # don't upload?
+
+  conda-linux-py36:
+    platform: linux
+    template: conda-recipes/travis.linux.yml
+    params:
+      variant_config_file: variants/linux_python3.6.yaml
+    artifacts:
+      - arrow-cpp-{version}-py36_0.tar.bz2
+      - pyarrow-{version}-py36_0.tar.bz2
+      - parquet-cpp-1.4.0-0.tar.bz2  # don't upload?
+
+  ############################## Conda OSX ####################################
+
+  conda-osx-py27:
     platform: osx
     template: conda-recipes/travis.osx.yml
+    params:
+      variant_config_file: variants/osx_python2.7.yaml
     artifacts:
       - arrow-cpp-{version}-py27_0-osx-64.tar.bz2
-      - arrow-cpp-{version}-py35_0-osx-64.tar.bz2
-      - arrow-cpp-{version}-py36_0-osx-64.tar.bz2
       - pyarrow-{version}-py27_0-osx-64.tar.bz2
-      - pyarrow-{version}-py35_0-osx-64.tar.bz2
-      - pyarrow-{version}-py36_0-osx-64.tar.bz2
       - parquet-cpp-1.4.0-0-osx-64.tar.bz2
 
-  conda-win:
+  conda-osx-py35:
+    platform: osx
+    template: conda-recipes/travis.osx.yml
+    params:
+      variant_config_file: variants/osx_python3.5.yaml
+    artifacts:
+      - arrow-cpp-{version}-py35_0.tar.bz2
+      - pyarrow-{version}-py35_0.tar.bz2
+      - parquet-cpp-1.4.0-0.tar.bz2
+
+  conda-osx-py36:
+    platform: osx
+    template: conda-recipes/travis.osx.yml
+    params:
+      variant_config_file: variants/osx_python3.6.yaml
+    artifacts:
+      - arrow-cpp-{version}-py36_0.tar.bz2
+      - pyarrow-{version}-py36_0.tar.bz2
+      - parquet-cpp-1.4.0-0.tar.bz2
+
+  ############################## Conda Windows ################################
+
+  conda-win-py35:
     platform: win
     template: conda-recipes/appveyor.yml
+    params:
+      conda_install_location: C:\\Miniconda35-x64
+      variant_config_file: variants\win_c_compilervs2015cxx_compilervs2015python3.5.yaml
     artifacts:
       - arrow-cpp-{version}-py35_vc14_0.tar.bz2
-      - arrow-cpp-{version}-py36_vc14_0.tar.bz2
       - pyarrow-{version}-py35_vc14_0.tar.bz2
+      - parquet-cpp-1.4.0-vc14_0.tar.bz2
+
+  conda-win-py36:
+    platform: win
+    template: conda-recipes/appveyor.yml
+    params:
+      conda_install_location: C:\\Miniconda36-x64
+      variant_config_file: variants\win_c_compilervs2015cxx_compilervs2015python3.6.yaml
+    artifacts:
+      - arrow-cpp-{version}-py36_vc14_0.tar.bz2
       - pyarrow-{version}-py36_vc14_0.tar.bz2
       - parquet-cpp-1.4.0-vc14_0.tar.bz2
 
-  # python wheels
-  wheel-linux:
+  ############################## Wheel Linux ##################################
+
+  wheel-linux-cp27m:
     platform: linux
     template: python-wheels/travis.linux.yml
+    params:
+      python_version: 2.7,16
     artifacts:
       - pyarrow-{version}-cp27-cp27m-manylinux1_x86_64.whl
+
+  wheel-linux-cp27mu:
+    platform: linux
+    template: python-wheels/travis.linux.yml
+    params:
+      python_version: 2.7,32
+    artifacts:
       - pyarrow-{version}-cp27-cp27mu-manylinux1_x86_64.whl
+
+  wheel-linux-cp35m:
+    platform: linux
+    template: python-wheels/travis.linux.yml
+    params:
+      python_version: 3.5,16
+    artifacts:
       - pyarrow-{version}-cp35-cp35m-manylinux1_x86_64.whl
+
+  wheel-linux-cp36m:
+    platform: linux
+    template: python-wheels/travis.linux.yml
+    params:
+      python_version: 3.6,16
+    artifacts:
       - pyarrow-{version}-cp36-cp36m-manylinux1_x86_64.whl
 
-  wheel-osx:
+  ############################## Wheel OSX ####################################
+
+  wheel-osx-cp27m:
     platform: osx
     template: python-wheels/travis.osx.yml
+    params:
+      numpy_version: 1.10.1
+      pandas_version: 0.20.3
+      python_version: 2.7
     artifacts:
       - pyarrow-{version}-cp27-cp27m-macosx_10_6_intel.whl
+
+  wheel-osx-cp35m:
+    platform: osx
+    template: python-wheels/travis.osx.yml
+    params:
+      numpy_version: 1.10.1
+      pandas_version: 0.20.3
+      python_version: 3.5
+    artifacts:
       - pyarrow-{version}-cp35-cp35m-macosx_10_6_intel.whl
+
+  wheel-osx-cp36m:
+    platform: osx
+    template: python-wheels/travis.osx.yml
+    params:
+      numpy_version: 1.11.3
+      pandas_version: 0.20.3
+      python_version: 3.6
+    artifacts:
       - pyarrow-{version}-cp36-cp36m-macosx_10_6_intel.whl
 
-  wheel-win:
+  ############################## Wheel Windows ################################
+
+  wheel-win-cp35m:
     platform: win
     template: python-wheels/appveyor.yml
+    params:
+      numpy_version: 1.13
+      python_version: 3.5
     artifacts:
       - pyarrow-{version}-cp35-cp35m-win_amd64.whl
+
+  wheel-win-cp36m:
+    platform: win
+    template: python-wheels/appveyor.yml
+    params:
+      numpy_version: 1.13
+      python_version: 3.5
+    artifacts:
       - pyarrow-{version}-cp36-cp36m-win_amd64.whl
 
-  # linux packages
-  linux-packages:
+  ############################## Linux PKGS ####################################
+
+  debian-stretch:
     platform: linux
     template: linux-packages/travis.linux.yml
+    params:
+      build_command: rake apt:build APT_TARGETS=debian-stretch
+      package_format: deb
     artifacts:
-      # DEB: debian-stretch, ubuntu-trusty
       - gir1.2-arrow-1.0_{version}-1_amd64.deb
       - gir1.2-arrow-gpu-1.0_{version}-1_amd64.deb
       - libarrow-dev_{version}-1_amd64.deb
@@ -109,40 +252,110 @@ tasks:
       - libarrow0-dbgsym_{version}-1_amd64.deb
       - libarrow0_{version}-1_amd64.deb
 
-      # TODO(kszucs) resolve naming conflict with other deb pkgs
-      # DEB: ubuntu-xenial,ubuntu-artful
-      # - gir1.2-arrow-1.0_{version}-1_amd64.deb
-      # - gir1.2-arrow-gpu-1.0_{version}-1_amd64.deb
-      # - libarrow-dev_{version}-1_amd64.deb
-      # - libarrow-glib-dev_{version}-1_amd64.deb
-      # - libarrow-glib-doc_{version}-1_all.deb
-      # - libarrow-glib0-dbgsym_{version}-1_amd64.deb
-      # - libarrow-glib0_{version}-1_amd64.deb
-      # - libarrow-gpu-dev_{version}-1_amd64.deb
-      # - libarrow-gpu-glib-dev_{version}-1_amd64.deb
-      # - libarrow-gpu-glib0-dbgsym_{version}-1_amd64.deb
-      # - libarrow-gpu-glib0_{version}-1_amd64.deb
-      # - libarrow-gpu0-dbgsym_{version}-1_amd64.deb
-      # - libarrow-gpu0_{version}-1_amd64.deb
-      # - libarrow-python-dev_{version}-1_amd64.deb
-      # - libarrow-python0-dbgsym_{version}-1_amd64.deb
-      # - libarrow-python0_{version}-1_amd64.deb
-      # - libarrow0-dbgsym_{version}-1_amd64.deb
-      # - libarrow0_{version}-1_amd64.deb
-
-      # YUM
+  ubuntu-trusty:
+    platform: linux
+    template: linux-packages/travis.linux.yml
+    params:
+      build_command: rake apt:build APT_TARGETS=ubuntu-trusty
+      package_format: deb
+    artifacts:
+      - gir1.2-arrow-1.0_{version}-1_amd64.deb
+      - libarrow-dev_{version}-1_amd64.deb
+      - libarrow-glib-dev_{version}-1_amd64.deb
+      - libarrow-glib-doc_{version}-1_all.deb
+      - libarrow-glib0_{version}-1_amd64.deb
+      - libarrow0_{version}-1_amd64.deb
+
+  ubuntu-xenial:
+    platform: linux
+    template: linux-packages/travis.linux.yml
+    params:
+      build_command: rake apt:build APT_TARGETS=ubuntu-xenial
+      package_format: deb
+    artifacts:
+      - gir1.2-arrow-1.0_{version}-1_amd64.deb
+      - gir1.2-arrow-gpu-1.0_{version}-1_amd64.deb
+      - libarrow-dev_{version}-1_amd64.deb
+      - libarrow-glib-dev_{version}-1_amd64.deb
+      - libarrow-glib-doc_{version}-1_all.deb
+      - libarrow-glib0_{version}-1_amd64.deb
+      - libarrow-gpu-dev_{version}-1_amd64.deb
+      - libarrow-gpu-glib-dev_{version}-1_amd64.deb
+      - libarrow-gpu-glib0_{version}-1_amd64.deb
+      - libarrow-gpu0_{version}-1_amd64.deb
+      - libarrow-python-dev_{version}-1_amd64.deb
+      - libarrow-python0_{version}-1_amd64.deb
+      - libarrow0_{version}-1_amd64.deb
+
+  ubuntu-artful:
+    platform: linux
+    template: linux-packages/travis.linux.yml
+    params:
+      build_command: rake apt:build APT_TARGETS=ubuntu-artful
+      package_format: deb
+    artifacts:
+      - gir1.2-arrow-1.0_{version}-1_amd64.deb
+      - gir1.2-arrow-gpu-1.0_{version}-1_amd64.deb
+      - libarrow-dev_{version}-1_amd64.deb
+      - libarrow-glib-dev_{version}-1_amd64.deb
+      - libarrow-glib-doc_{version}-1_all.deb
+      - libarrow-glib0_{version}-1_amd64.deb
+      - libarrow-gpu-dev_{version}-1_amd64.deb
+      - libarrow-gpu-glib-dev_{version}-1_amd64.deb
+      - libarrow-gpu-glib0_{version}-1_amd64.deb
+      - libarrow-gpu0_{version}-1_amd64.deb
+      - libarrow-python-dev_{version}-1_amd64.deb
+      - libarrow-python0_{version}-1_amd64.deb
+      - libarrow0_{version}-1_amd64.deb
+
+  ubuntu-bionic:
+    platform: linux
+    template: linux-packages/travis.linux.yml
+    params:
+      build_command: rake apt:build APT_TARGETS=ubuntu-bionic
+      package_format: deb
+    artifacts:
+      - gir1.2-arrow-1.0_{version}-1_amd64.deb
+      - gir1.2-arrow-gpu-1.0_{version}-1_amd64.deb
+      - libarrow-dev_{version}-1_amd64.deb
+      - libarrow-glib-dev_{version}-1_amd64.deb
+      - libarrow-glib-doc_{version}-1_all.deb
+      - libarrow-glib0_{version}-1_amd64.deb
+      - libarrow-gpu-dev_{version}-1_amd64.deb
+      - libarrow-gpu-glib-dev_{version}-1_amd64.deb
+      - libarrow-gpu-glib0_{version}-1_amd64.deb
+      - libarrow-gpu0_{version}-1_amd64.deb
+      - libarrow-python-dev_{version}-1_amd64.deb
+      - libarrow-python0_{version}-1_amd64.deb
+      - libarrow0_{version}-1_amd64.deb
+
+  centos-6:
+    platform: linux
+    template: linux-packages/travis.linux.yml
+    params:
+      build_command: rake yum:build CENTOS_VERSIONS=6
+      package_format: rpm
+    artifacts:
       - arrow-{version}-1.el6.src.rpm
-      - arrow-{version}-1.el7.src.rpm
       - arrow-debuginfo-{version}-1.el6.x86_64.rpm
-      - arrow-debuginfo-{version}-1.el7.x86_64.rpm
       - arrow-devel-{version}-1.el6.x86_64.rpm
+      - arrow-libs-{version}-1.el6.x86_64.rpm
+      - arrow-python-devel-{version}-1.el6.x86_64.rpm
+      - arrow-python-libs-{version}-1.el6.x86_64.rpm
+
+  centos-7:
+    platform: linux
+    template: linux-packages/travis.linux.yml
+    params:
+      build_command: rake yum:build CENTOS_VERSIONS=7
+      package_format: rpm
+    artifacts:
+      - arrow-{version}-1.el7.src.rpm
+      - arrow-debuginfo-{version}-1.el7.x86_64.rpm
       - arrow-devel-{version}-1.el7.x86_64.rpm
       - arrow-glib-devel-{version}-1.el7.x86_64.rpm
       - arrow-glib-doc-{version}-1.el7.x86_64.rpm
       - arrow-glib-libs-{version}-1.el7.x86_64.rpm
-      - arrow-libs-{version}-1.el6.x86_64.rpm
       - arrow-libs-{version}-1.el7.x86_64.rpm
-      - arrow-python-devel-{version}-1.el6.x86_64.rpm
       - arrow-python-devel-{version}-1.el7.x86_64.rpm
-      - arrow-python-libs-{version}-1.el6.x86_64.rpm
       - arrow-python-libs-{version}-1.el7.x86_64.rpm