37 lines
950 B
YAML
37 lines
950 B
YAML
# As written, this configuration will build your wheels on every
|
|
# commit, but will only push to PyPI on tagged commits.
|
|
|
|
language: python
|
|
|
|
jobs:
|
|
include:
|
|
# perform a linux build
|
|
- services: docker
|
|
# and a mac build
|
|
- os: osx
|
|
language: shell
|
|
# and a windows build
|
|
- os: windows
|
|
language: shell
|
|
before_install:
|
|
- choco upgrade python -y --version 3.8.6
|
|
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
|
|
# make sure it's on PATH as 'python3'
|
|
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
|
|
|
|
install:
|
|
- python3 -m pip install cibuildwheel==1.11.0
|
|
|
|
script:
|
|
# build the wheels, put them into './wheelhouse'
|
|
- python3 -m cibuildwheel --output-dir wheelhouse
|
|
|
|
deploy:
|
|
provider: pypi
|
|
username: "__token__"
|
|
skip_cleanup: true
|
|
on:
|
|
tags: true
|
|
password:
|
|
secure: "" # Set to an encrypted API token. See https://docs.travis-ci.com/user/deployment/pypi/
|