Skip to content

Commit c8f5339

Browse files
committed
maturin
1 parent 2b29831 commit c8f5339

6 files changed

Lines changed: 11 additions & 17 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ include = [
2727
name = "orjson"
2828
crate-type = ["cdylib"]
2929

30-
[package.metadata.pyo3-pack]
30+
[package.metadata.maturin]
3131
classifier = [
3232
"Development Status :: 5 - Production/Stable",
3333
"Intended Audience :: Developers",

build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ rm -f target/wheels/*
44

55
export RUSTFLAGS="-C target-feature=+sse2 $RUSTFLAGS"
66

7-
pyo3-pack build --no-sdist -i python3 --release "$@"
7+
maturin build --no-sdist -i python3 --release "$@"
88

99
pip install --force $(find target/wheels -name "*cp3*")

ci/azure-posix.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ parameters:
33
target: ''
44

55
steps:
6-
- bash: pip install --upgrade pip wheel pyo3-pack mypy twine
6+
- bash: pip install --upgrade pip wheel maturin mypy twine
77
displayName: build dependencies
8-
- bash: pip install --upgrade --pre pyo3-pack
9-
displayName: pyo3-pack beta
108
- bash: pip install -r test/requirements.txt
119
displayName: test dependencies
1210
- bash: pip install -r integration/requirements.txt
1311
displayName: integration dependencies
14-
- bash: PATH=$HOME/.cargo/bin:$PATH RUSTFLAGS="-C target-feature=+sse2" pyo3-pack build --release --strip --interpreter $(interpreter) --target $(target)
12+
- bash: PATH=$HOME/.cargo/bin:$PATH RUSTFLAGS="-C target-feature=+sse2" maturin build --release --strip --interpreter $(interpreter) --target $(target)
1513
displayName: build
1614
- bash: pip install target/wheels/orjson*.whl
1715
displayName: install

ci/azure-sdist.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ parameters:
33
target: ''
44

55
steps:
6-
- bash: pip install --upgrade pip wheel twine
6+
- bash: pip install --upgrade pip wheel twine maturin
77
displayName: build dependencies
8-
- bash: pip install --upgrade --pre pyo3-pack
9-
displayName: pyo3-pack beta
108
- bash: pip install -r test/requirements.txt
119
displayName: test dependencies
1210
- bash: pip install -r integration/requirements.txt
1311
displayName: integration dependencies
14-
- bash: pyo3-pack sdist
12+
- bash: maturin sdist
1513
displayName: package sdist
1614
- bash: pip install target/wheels/orjson*.tar.gz
1715
displayName: install

ci/azure-win.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ steps:
1010
rustup default nightly
1111
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
1212
displayName: rustup
13-
- script: python.exe -m pip install --upgrade pip wheel twine
13+
- script: python.exe -m pip install --upgrade pip wheel twine maturin
1414
displayName: build dependencies
15-
- script: python.exe -m pip install --upgrade --pre pyo3-pack
16-
displayName: pyo3-pack beta
1715
- script: python.exe -m pip install -r test\requirements.txt
1816
displayName: test dependencies
19-
- script: pyo3-pack.exe build --release --strip --interpreter $(interpreter) --target $(target)
17+
- script: maturin.exe build --release --strip --interpreter $(interpreter) --target $(target)
2018
env:
2119
RUSTFLAGS: "-C target-feature=+sse2"
2220
displayName: build

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[build-system]
2-
build-backend = "pyo3_pack"
3-
requires = ["pyo3-pack>=0.7.0.beta11,<0.8"]
2+
build-backend = "maturin"
3+
requires = ["maturin>=0.7.2,<0.8"]
44

5-
[tool.pyo3-pack]
5+
[tool.maturin]
66
manylinux = "off"
77
rustc-extra-args = "-C target-feature=+sse2"
88
strip = "on"

0 commit comments

Comments
 (0)