Skip to content

Commit

Permalink
pyo3 0.20.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ijl committed Feb 23, 2024
1 parent 5067ead commit a8f3b38
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
CFLAGS: "-O2"
LDFLAGS: "-Wl,--as-needed"
CARGO_UNSTABLE_SPARSE_REGISTRY: "true"
UNSAFE_PYO3_SKIP_VERSION_CHECK: "1"
steps:
- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain ${{ matrix.profile.rust }} --profile minimal -y

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
LDFLAGS: "-O2 -fstrict-aliasing -emit-llvm -flto=full -fuse-ld=lld -Wl,--as-needed -Wl,-plugin-opt=also-emit-llvm"
RUSTFLAGS: "-C linker=clang -C linker-plugin-lto -C lto=fat -C link-arg=-fuse-ld=lld -Z mir-opt-level=4 -Z virtual-function-elimination -D warnings"
CARGO_UNSTABLE_SPARSE_REGISTRY: "true"
UNSAFE_PYO3_SKIP_VERSION_CHECK: "1"
container:
image: quay.io/pypa/manylinux_2_28_x86_64:latest
options: --user 0
Expand Down Expand Up @@ -142,6 +143,7 @@ jobs:
LDFLAGS: "-O2 -flto -Wl,--as-needed"
RUSTFLAGS: "-C target-feature=-crt-static -Z mir-opt-level=4"
CARGO_UNSTABLE_SPARSE_REGISTRY: "true"
UNSAFE_PYO3_SKIP_VERSION_CHECK: "1"
with:
rust-toolchain: nightly-2024-02-13
rustup-components: rust-src
Expand Down Expand Up @@ -238,6 +240,7 @@ jobs:
LDFLAGS: "${{ matrix.target.cflags }} -Wl,--as-needed"
CARGO_UNSTABLE_SPARSE_REGISTRY: "true"
RUSTFLAGS: "${{ matrix.target.rustflags }}"
UNSAFE_PYO3_SKIP_VERSION_CHECK: "1"
with:
target: ${{ matrix.target.target }}
rust-toolchain: nightly-2024-02-13
Expand Down
8 changes: 4 additions & 4 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 @@ -56,7 +56,7 @@ encoding_rs = { version = "0.8", default_features = false }
itoa = { version = "1", default_features = false }
itoap = { version = "1", features = ["std", "simd"] }
once_cell = { version = "1", default_features = false, features = ["race"] }
pyo3-ffi = { version = "^0.20.2", default_features = false, features = ["extension-module"]}
pyo3-ffi = { version = "^0.20.3", default_features = false, features = ["extension-module"]}
ryu = { version = "1", default_features = false }
serde = { version = "1", default_features = false }
serde_json = { version = "1", default_features = false, features = ["std", "float_roundtrip"] }
Expand All @@ -65,7 +65,7 @@ smallvec = { version = "^1.11", default_features = false, features = ["union", "

[build-dependencies]
cc = { version = "1" }
pyo3-build-config = { version = "^0.20.2" }
pyo3-build-config = { version = "^0.20.3" }
version_check = { version = "0.9" }

[profile.dev]
Expand Down
1 change: 1 addition & 0 deletions ci/azure-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ steps:
CFLAGS_aarch64_apple_darwin: "-O2 -fstrict-aliasing -flto=full -mcpu=apple-m1 -mtune=generic"
RUSTFLAGS: "-C lto=fat -Z mir-opt-level=4 -Z virtual-function-elimination -D warnings"
CARGO_UNSTABLE_SPARSE_REGISTRY: "true"
UNSAFE_PYO3_SKIP_VERSION_CHECK: "1"
displayName: build universal2

- bash: pip install target/wheels/orjson*universal2.whl
Expand Down
1 change: 1 addition & 0 deletions ci/azure-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ steps:
displayName: build
env:
RUSTFLAGS: "-Z mir-opt-level=4"
UNSAFE_PYO3_SKIP_VERSION_CHECK: "1"
- script: python.exe -m pip install orjson --no-index --find-links=D:\a\1\s\target\wheels
displayName: install
- script: python.exe -m pytest -s -rxX -v test
Expand Down
2 changes: 2 additions & 0 deletions script/develop
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

rm -f target/wheels/*

export UNSAFE_PYO3_SKIP_VERSION_CHECK=1;

export CC="${CC:-clang}"
export LD="${LD:-lld}"

Expand Down

0 comments on commit a8f3b38

Please sign in to comment.