Skip to content

Commit

Permalink
Upgrade pyo3 to 0.15 and build wheels for Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Nov 6, 2021
1 parent efa1513 commit 2dfd8ad
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 39 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
target: [x64, x86]
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
target: [x86_64, i686]
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -159,6 +159,7 @@ jobs:
{ version: '3.7', abi: 'cp37-cp37m' },
{ version: '3.8', abi: 'cp38-cp38' },
{ version: '3.9', abi: 'cp39-cp39' },
{ version: '3.10', abi: 'cp310-cp310' },
]
target: [aarch64, armv7, s390x, ppc64le, ppc64]
steps:
Expand All @@ -184,16 +185,17 @@ jobs:
--volume "${PWD}/dist:/artifacts"
install: |
apt-get update
apt-get install -y --no-install-recommends python3 python3-pip software-properties-common
apt-get install -y --no-install-recommends python3 python3-venv software-properties-common
add-apt-repository ppa:deadsnakes/ppa
apt-get update
apt-get install -y python3.6 python3.7 python3.9
apt-get install -y curl python3.6-venv python3.7-venv python3.9-venv python3.10-venv
run: |
ls -lrth /artifacts
PYTHON=python${{ matrix.python.version }}
$PYTHON -m pip install -U pip
$PYTHON -m pip install cramjam --no-index --find-links /artifacts --force-reinstall
$PYTHON -c 'import cramjam'
$PYTHON -m venv venv
venv/bin/pip install -U pip
venv/bin/pip install cramjam --no-index --find-links /artifacts --force-reinstall
venv/bin/python -c 'import cramjam'
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
Expand Down
55 changes: 27 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ codegen-units = 1
opt-level = 3

[dependencies]
pyo3 = { version = "0.14.1", default-features = false, features = ["macros"] }
pyo3 = { version = "0.15", default-features = false, features = ["macros"] }
snap = "^1"
brotli2 = "^0.3"
bzip2 = "^0.4"
lz4 = "^1"
flate2 = "^1"
zstd = "0.9.0+zstd.1.5.0"
numpy = "0.14.0"
numpy = "0.15"

[dependencies.mimalloc]
version = "0.1.24"
Expand Down
2 changes: 1 addition & 1 deletion benchmark-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ pytest-benchmark==3.2.3
python-snappy==0.5.4
lz4==3.1.0
brotlipy==0.7.0
zstd==1.4.5.1
zstd==1.5.0.2
numpy
memory-profiler

0 comments on commit 2dfd8ad

Please sign in to comment.