]> git.proxmox.com Git - ceph.git/blob - ceph/src/arrow/dev/tasks/python-wheels/github.windows.yml
import quincy 17.2.0
[ceph.git] / ceph / src / arrow / dev / tasks / python-wheels / github.windows.yml
1 # Licensed to the Apache Software Foundation (ASF) under one
2 # or more contributor license agreements. See the NOTICE file
3 # distributed with this work for additional information
4 # regarding copyright ownership. The ASF licenses this file
5 # to you under the Apache License, Version 2.0 (the
6 # "License"); you may not use this file except in compliance
7 # with the License. You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing,
12 # software distributed under the License is distributed on an
13 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 # KIND, either express or implied. See the License for the
15 # specific language governing permissions and limitations
16 # under the License.
17
18 {% import 'macros.jinja' as macros with context %}
19
20 {{ macros.github_header() }}
21
22 jobs:
23 build:
24 name: "Build wheel for Windows"
25 runs-on: windows-2019
26 env:
27 # archery uses this environment variable
28 PYTHON: "{{ python_version }}"
29 # this is a private repository at the moment (mostly because of licensing
30 # consideration of windows images with visual studio), but anyone can
31 # recreate the image by manually building it via:
32 # `archery build python-wheel-windows-vs2017`
33 # note that we don't run docker build since there wouldn't be a cache hit
34 # and rebuilding the dependencies takes a fair amount of time
35 REPO: ghcr.io/ursacomputing/arrow
36 # prefer the docker cli over docker-compose
37 ARCHERY_USE_DOCKER_CLI: 1
38
39 steps:
40 {{ macros.github_checkout_arrow()|indent }}
41 {{ macros.github_login_ghcr()|indent }}
42 {{ macros.github_install_archery()|indent }}
43
44 - name: Build wheel
45 shell: cmd
46 run: archery docker run --no-build -e SETUPTOOLS_SCM_PRETEND_VERSION={{ arrow.no_rc_version }} python-wheel-windows-vs2017
47
48 # Two layers of the official python 3.6 windows image are not available for download.
49 # Docker pull returns with unexpected status resolving reader: 403 Forbidden.
50 # See https://issues.apache.org/jira/browse/ARROW-14424
51 {% if python_version != "3.6" %}
52 - name: Test wheel
53 shell: cmd
54 run: archery docker run python-wheel-windows-test
55 {% endif %}
56
57 {{ macros.github_upload_releases("arrow/python/dist/*.whl")|indent }}
58 {{ macros.github_upload_gemfury("arrow/python/dist/*.whl")|indent }}