summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-02-07 00:05:26 -0800
committerDavid Lord <davidism@gmail.com>2021-02-09 08:59:29 -0800
commitb982d71d2adac3115a900dd66807dbd68583876b (patch)
tree057301db8d2fc8647719f8fbf828121070069695
parent682effc5e67750122054925a18cdc50105c3b3ff (diff)
downloadmarkupsafe-b982d71d2adac3115a900dd66807dbd68583876b.tar.gz
use latest wheel and cibuildwheel features
use limited api to build one wheel for 3.6+ use cibuildwheel action build mac universal2 wheel
-rw-r--r--.github/workflows/build.yaml15
-rw-r--r--setup.cfg3
-rw-r--r--setup.py6
3 files changed, 14 insertions, 10 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 5089d72..06678a8 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -14,21 +14,18 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
- env:
- CIBW_SKIP: 'cp27-* cp35-* pp*'
- CIBW_ARCHS_LINUX: auto aarch64
steps:
+ - uses: actions/checkout@v2
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v1
with:
platforms: arm64
- - uses: actions/checkout@v2
- - uses: actions/setup-python@v2
- with:
- python-version: '3.9'
- - run: pip install cibuildwheel
- - run: cibuildwheel
+ - uses: joerick/cibuildwheel@v1.9.0
+ env:
+ CIBW_BUILD: cp36-* cp39-macosx_universal2
+ CIBW_ARCHS_LINUX: auto aarch64
+ CIBW_ARCHS_MACOS: auto universal2
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse
diff --git a/setup.cfg b/setup.cfg
index 59c0533..2d19bc5 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -34,6 +34,9 @@ python_requires = >= 3.6
[options.packages.find]
where = src
+[bdist_wheel]
+py-limited-api = cp36
+
[tool:pytest]
testpaths = tests
filterwarnings =
diff --git a/setup.py b/setup.py
index c6ee5bf..4fe2828 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,11 @@ from setuptools import Extension
from setuptools import setup
from setuptools.command.build_ext import build_ext
-ext_modules = [Extension("markupsafe._speedups", ["src/markupsafe/_speedups.c"])]
+ext_modules = [
+ Extension(
+ "markupsafe._speedups", ["src/markupsafe/_speedups.c"], py_limited_api=True
+ )
+]
class BuildFailed(Exception):