Skip to content

Commit

Permalink
Fix musllinux build (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ousret authored Jun 18, 2023
1 parent 3f86bfa commit d402aca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,10 @@ jobs:
CIBW_BUILD_FRONTEND: build
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_ENVIRONMENT: AIOQUIC_SKIP_TESTS=ipv6,loss
CIBW_SKIP: "*-musllinux*"
CIBW_BUILD: cp39-* pp39-* pp38-*
CIBW_TEST_COMMAND: python -m unittest discover -t {project} -s {project}/tests
# there are no wheels for cryptography on these platforms
CIBW_TEST_SKIP: "*-{manylinux_i686,win32} pp*"
CIBW_TEST_SKIP: "*-{manylinux_i686,win32} pp* *-musllinux*"
run: |
pip install cibuildwheel
cibuildwheel --output-dir dist
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Important changes/improvements are:
- Mitigated deprecated match_hostname.
- Mimic load_default_certs SSL context from native Python.
- Remove the need for OpenSSL development headers.
- Many, many more pre-built wheel for your convenience! Including PyPy 3.8 and 3.9 and musl linux distributions.

``qh3`` is a library for the QUIC network protocol in Python. It features
a minimal TLS 1.3 implementation, a QUIC stack and an HTTP/3 stack.
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,11 @@ select = [

[tool.setuptools.dynamic]
version = {attr = "qh3.__version__"}

# neat trick to add bsd compat headers only in musllinux images
[tool.cibuildwheel.linux]
before-all = "echo"

[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-all = "apk add bsd-compat-headers"

0 comments on commit d402aca

Please sign in to comment.