From c23621d3cf5c9ff5946d050916d86f8cce543634 Mon Sep 17 00:00:00 2001 From: messense Date: Tue, 13 Jul 2021 20:28:42 +0800 Subject: [PATCH] Upgrade pyo3 to 0.14.1 (#62) * Upgrade pyo3 to 0.14.1 * Only build universal2 wheels for Python 3.8+ Apple Silicon Mac only supports Python 3.8 and later anyway. --- .github/workflows/CI.yml | 2 ++ Cargo.toml | 6 +++--- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0e27b070..086720f6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,10 +41,12 @@ jobs: run: | pip install cramjam --no-index --find-links dist --force-reinstall - name: Build wheels - universal2 + if: ${{ matrix.python-version >= '3.8' }} uses: messense/maturin-action@v1 with: args: -i python --release --universal2 --out dist --no-sdist - name: Install built wheel - universal2 + if: ${{ matrix.python-version >= '3.8' }} run: | pip install cramjam --no-index --find-links dist --force-reinstall - name: Python UnitTest diff --git a/Cargo.toml b/Cargo.toml index 36452916..af8c02c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,13 +22,13 @@ codegen-units = 1 opt-level = 3 [dependencies] -pyo3 = { version = "0.13.2", default-features = false, features = ["macros"] } +pyo3 = { version = "0.14.1", default-features = false, features = ["macros"] } snap = "^1" brotli2 = "^0.3" lz4 = "^1" flate2 = "^1" -zstd = "0.6.1+zstd.1.4.9" -numpy = "0.13.0" +zstd = "0.9.0+zstd.1.5.0" +numpy = "0.14.0" [dependencies.mimalloc] version = "0.1.24" diff --git a/pyproject.toml b/pyproject.toml index 90cb176e..d709df22 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["maturin"] +requires = ["maturin>=0.11,<0.12"] build-backend = "maturin"