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: 4 additions & 11 deletions .github/workflows/build-aioquic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,6 @@ jobs:
cp310-manylinux_riscv64 cp311-manylinux_riscv64 cp312-manylinux_riscv64
cp313-manylinux_riscv64 cp314-manylinux_riscv64
CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }}
# _crypto links libcrypto; the riscv64 image ships only the runtime
# .so, not the headers. auditwheel then vendors libcrypto (Apache-2.0)
# into the wheel without a licence, so stage one.
CIBW_BEFORE_ALL_LINUX: >-
dnf -y install openssl-devel &&
cp /usr/share/licenses/openssl-libs/LICENSE.txt {project}/LICENSE.openssl
# cryptography has no riscv64 wheel on public PyPI; PIP_ONLY_BINARY
# stops pip from picking a newer PyPI-only sdist release (which
# fails: its Rust backend has no riscv64 rustup target) over the
Expand All @@ -98,18 +92,17 @@ jobs:
CIBW_TEST_REQUIRES: cryptography<50
CIBW_TEST_COMMAND: python -m unittest discover -t {project} -s {project}/tests

- name: Check the wheel ships both extensions and both licences
- name: Check the wheel ships the extension and the licence
run: |
python3 - wheelhouse/*.whl <<'EOF'
import sys, zipfile
for whl in sys.argv[1:]:
names = zipfile.ZipFile(whl).namelist()
for mod in ("_buffer", "_crypto"):
assert any(n.startswith(f"aioquic/{mod}.") and n.endswith(".so")
for n in names), (whl, mod)
assert any(n.startswith("aioquic/_buffer.") and n.endswith(".so")
for n in names), whl
licences = {n.rsplit("/", 1)[1]
for n in names if ".dist-info/licenses/" in n} - {""}
assert licences == {"LICENSE", "LICENSE.openssl"}, (whl, licences)
assert licences == {"LICENSE"}, (whl, licences)
print(whl, "ok")
EOF

Expand Down
5 changes: 5 additions & 0 deletions docs/packages/aioquic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ versions:
- filename: aioquic-1.3.0-cp310-abi3-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl
sha256: ecdccc3cc4bb0538edb59c66d996a36afeb05f422ce1f8af7aa25cb3ad8bf066
requires-python: '>=3.10'
- version: 1.4.0
- version: 1.5.0
- version: 1.6.0
- version: 1.6.1
- version: 1.7.0
Loading