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
15 changes: 6 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ python_requires = >= 3.6
[options.packages.find]
where = src

[bdist_wheel]
py-limited-api = cp36

[tool:pytest]
testpaths = tests
filterwarnings =
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
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):
Expand Down