diff --git a/.github/workflows/build-convex.yml b/.github/workflows/build-convex.yml index 1f0d162d5fcb..d71752e26b68 100644 --- a/.github/workflows/build-convex.yml +++ b/.github/workflows/build-convex.yml @@ -83,11 +83,19 @@ jobs: dnf -y install perl && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y CIBW_ENVIRONMENT_LINUX: 'PATH="$PATH:$HOME/.cargo/bin"' - CIBW_TEST_REQUIRES: pytest requests - CIBW_TEST_SOURCES: tests + # 0.8.0 stopped shipping tests/ in its tags (0.7.0 had test_simple.py, + # test_values.py and test_version.py), and cibuildwheel errors out on a + # missing test source, so run what those did without the network: the + # extension is compiled, the Rust and Python clients construct, and the + # package version matches the distribution metadata. CIBW_TEST_COMMAND: >- - python -c "import _convex._convex as m; assert m.__file__.endswith('.so'), m.__file__" - && python -m pytest -v tests + python -c "import importlib.metadata as md, _convex._convex as m, convex; + from _convex import PyConvexClient; + assert m.__file__.endswith('.so'), m.__file__; + assert convex.__version__ == md.version('convex'), convex.__version__; + PyConvexClient('https://made-up-animal.convex.cloud', convex.__version__); + convex.ConvexClient('https://made-up-animal.convex.cloud'); + print('ok', convex.__version__)" with: output-dir: wheelhouse/ diff --git a/docs/packages/convex.yaml b/docs/packages/convex.yaml index 3b431329c64c..b2a0d5d130d1 100644 --- a/docs/packages/convex.yaml +++ b/docs/packages/convex.yaml @@ -8,3 +8,5 @@ versions: - filename: convex-0.7.0-cp39-abi3-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl sha256: e35316428521ae044259f5166a16158af3755aedc81092b923c8dcc1f2f870e9 requires-python: '>=3.9' +- version: 0.8.0 +- version: 0.8.1