Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 0 additions & 86 deletions .appveyor.yml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Build + Deploy

on:
push:
branches: [main]
tags: ["v*.*.*"]
pull_request:
branches: [main]
release:
types:
- published

jobs:
build_sdist:
name: Build sdist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Build sdist
run: pipx run --spec build pyproject-build --sdist
- name: Check sdist metadata
run: pipx run twine check dist/*.tar.gz
- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz

build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest", "windows-2016" ]
env:
CIBW_ARCHS_LINUX: x86_64
CIBW_ARCHS_MACOS: x86_64 universal2
# Building for one python version is enough, since this is a
# ctypes-based 'universal binary wheel' (py3-none-*) not
# linked to a specific python version or implementation.
CIBW_BUILD: "cp39-*"
# Increase pip debugging output
CIBW_BUILD_VERBOSITY: 1
# Increase delocate-wheel debugging output
# CIBW_REPAIR_WHEEL_COMMAND_MACOS: delocate-listdeps {wheel} && delocate-wheel -vv --require-archs {delocate_archs} -w {dest_dir} {wheel}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Set up msbuild (Windows-only)
uses: microsoft/[email protected]
if: startsWith(matrix.os, 'windows')
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build wheels
run: pipx run cibuildwheel --output-dir dist
- uses: actions/upload-artifact@v2
with:
path: dist/*.whl

deploy:
name: Upload if release
needs: [build_sdist, build_wheels]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "multibuild"]
path = multibuild
url = https://github.com/matthew-brett/multibuild/
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

Loading