Skip to content

Commit

Permalink
cargo update, nightly-2021-10-01
Browse files Browse the repository at this point in the history
  • Loading branch information
ijl committed Oct 1, 2021
1 parent f4bc1e3 commit 623a524
Show file tree
Hide file tree
Showing 13 changed files with 62 additions and 46 deletions.
48 changes: 24 additions & 24 deletions Cargo.lock

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

9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ encoding_rs = { version = "0.8", default_features = false }
inlinable_string = { version = "0.1" }
itoa = { version = "0.4", default_features = false }
once_cell = { version = "1", default_features = false }
pyo3 = { version = "^0.14.2", default_features = false, features = ["extension-module"]}
pyo3 = { version = "^0.14.5", default_features = false, features = ["extension-module"]}
ryu = { version = "1", default_features = false }
serde = { version = "1", default_features = false }
serde_json = { version = "^1.0.66", default_features = false, features = ["std", "float_roundtrip"] }
serde_json = { version = "^1.0.68", default_features = false, features = ["std", "float_roundtrip"] }
simdutf8 = { version = "0.1", default_features = false, features = ["std"] }
smallvec = { version = "^1.6", default_features = false, features = ["union", "write"] }
smallvec = { version = "^1.7", default_features = false, features = ["union", "write"] }

[profile.release]
codegen-units = 1
Expand All @@ -83,3 +83,6 @@ incremental = false
lto = "thin"
opt-level = 3
panic = "abort"

[profile.release.build-override]
opt-level = 0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ maturin build --no-sdist --release --strip --cargo-extra-args="--features=unstab

To build on the stable channel, do not specify `--features=unstable-simd`.

The project's own CI tests against `nightly-2021-08-17` and stable 1.54. It
The project's own CI tests against `nightly-2021-10-01` and stable 1.54. It
is prudent to pin the nightly version because that channel can introduce
breaking changes.

Expand Down
13 changes: 13 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use std::process::Command;

fn main() {
let out = Command::new("python")
.args(&["-c", "import sys; print(sys.version_info[1])"])
.output()
.expect("python version did not print");
let version = u8::from_str_radix(String::from_utf8_lossy(&out.stdout).trim(), 10)
.expect("python version was not parsed");
for each in 8..(version + 1) {
println!("cargo:rustc-cfg=Py_3_{}", each);
}
}
2 changes: 1 addition & 1 deletion ci/azure-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ steps:
displayName: rustup
- bash: PATH=$(path) rustup default $(toolchain)
displayName: ensure toolchain
- bash: PATH=$(path) $(interpreter) -m pip install --user --upgrade pip maturin==0.11.2
- bash: PATH=$(path) $(interpreter) -m pip install --user --upgrade pip maturin==0.11.4
displayName: build dependencies
- bash: PATH=$(path) $(interpreter) -m pip install --user -r test/requirements.txt -r integration/requirements.txt
displayName: test dependencies
Expand Down
2 changes: 1 addition & 1 deletion ci/azure-linux-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ steps:
displayName: rustup
- bash: PATH=$(path) rustup default $(toolchain)
displayName: ensure toolchain
- bash: PATH=$(path) $(interpreter) -m pip install --user --upgrade pip maturin==0.11.2 auditwheel
- bash: PATH=$(path) $(interpreter) -m pip install --user --upgrade pip maturin==0.11.4 auditwheel
displayName: build dependencies
- bash: PATH=$(path) maturin build --no-sdist --release --strip $(extra) --compatibility $(manylinux) --interpreter $(interpreter)
env:
Expand Down
2 changes: 1 addition & 1 deletion ci/azure-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ steps:
displayName: rustup
- bash: rustup default $(toolchain)
displayName: ensure toolchain
- bash: pip install --upgrade pip maturin==0.11.2
- bash: pip install --upgrade pip maturin==0.11.4
displayName: build dependencies
- bash: pip install -r test/requirements.txt -r integration/requirements.txt
displayName: test dependencies
Expand Down
4 changes: 2 additions & 2 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pr:
- '*'

variables:
toolchain: nightly-2021-08-17
toolchain: nightly-2021-10-01

jobs:

Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
pool:
vmImage: windows-2019
variables:
interpreter: C:\hostedtoolcache\windows\Python\3.9.6\x64\python.exe
interpreter: C:\hostedtoolcache\windows\Python\3.9.7\x64\python.exe
target: x86_64-pc-windows-msvc
steps:
- task: UsePythonVersion@0
Expand Down
2 changes: 1 addition & 1 deletion ci/azure-sdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:
displayName: rustup
- bash: PATH=$(path) rustup default $(toolchain)
displayName: ensure toolchain
- bash: PATH=$(path) $(interpreter) -m pip install --user --upgrade pip maturin==0.11.2
- bash: PATH=$(path) $(interpreter) -m pip install --user --upgrade pip maturin==0.11.4
displayName: build dependencies
- bash: PATH=$(path) $(interpreter) -m pip install --user -r test/requirements.txt -r integration/requirements.txt
displayName: test dependencies
Expand Down
2 changes: 1 addition & 1 deletion ci/azure-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ steps:
rustup default $(toolchain)
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
displayName: rustup
- script: python.exe -m pip install --upgrade pip maturin==0.11.2
- script: python.exe -m pip install --upgrade pip maturin==0.11.4
displayName: build dependencies
- script: python.exe -m pip install -r test\requirements.txt -r integration\requirements.txt
displayName: test dependencies
Expand Down
16 changes: 8 additions & 8 deletions ci/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ steps:
MATURIN_PASSWORD:
from_secret: twine_password
commands:
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-08-17 --profile minimal -y
- python3.10 -m pip install --user --upgrade pip maturin==0.11.2
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-10-01 --profile minimal -y
- python3.10 -m pip install --user --upgrade pip maturin==0.11.4
- maturin build --no-sdist --release --strip --compatibility 2_24 --cargo-extra-args="--features=unstable-simd" --interpreter python3.10
- python3.10 -m pip install --user target/wheels/orjson*.whl
- python3.10 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
Expand All @@ -38,8 +38,8 @@ steps:
MATURIN_PASSWORD:
from_secret: twine_password
commands:
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-08-17 --profile minimal -y
- python3.9 -m pip install --user --upgrade pip maturin==0.11.2
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-10-01 --profile minimal -y
- python3.9 -m pip install --user --upgrade pip maturin==0.11.4
- maturin build --no-sdist --release --strip --compatibility 2_24 --cargo-extra-args="--features=unstable-simd" --interpreter python3.9
- python3.9 -m pip install --user target/wheels/orjson*.whl
- python3.9 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
Expand All @@ -62,8 +62,8 @@ steps:
MATURIN_PASSWORD:
from_secret: twine_password
commands:
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-08-17 --profile minimal -y
- python3.8 -m pip install --user --upgrade pip maturin==0.11.2
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-10-01 --profile minimal -y
- python3.8 -m pip install --user --upgrade pip maturin==0.11.4
- maturin build --no-sdist --release --strip --compatibility 2_24 --cargo-extra-args="--features=unstable-simd" --interpreter python3.8
- python3.8 -m pip install --user target/wheels/orjson*.whl
- python3.8 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
Expand All @@ -86,8 +86,8 @@ steps:
MATURIN_PASSWORD:
from_secret: twine_password
commands:
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-08-17 --profile minimal -y
- python3.7 -m pip install --user --upgrade pip maturin==0.11.2
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-10-01 --profile minimal -y
- python3.7 -m pip install --user --upgrade pip maturin==0.11.4
- maturin build --no-sdist --release --strip --compatibility 2_24 --cargo-extra-args="--features=unstable-simd" --interpreter python3.7
- python3.7 -m pip install --user target/wheels/orjson*.whl
- python3.7 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ repository = "https://github.com/ijl/orjson"

[build-system]
build-backend = "maturin"
requires = ["maturin>=0.11.2,<0.12"]
requires = ["maturin>=0.11.4,<0.12"]

[tool.maturin]
sdist-include = ["Cargo.lock"]
strip = true

[tool.black]
line-length = 88
target-version = ['py36', 'py37', 'py38']
target-version = ['py37', 'py38', 'py39']
include = '\.pyi?$'
2 changes: 1 addition & 1 deletion test/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_object_same_key_unclear_values(self):
"""
object_same_key_unclear_values.json
"""
self._pass_transform("object_same_key_unclear_values.json", b'{"a":0}')
self._pass_transform("object_same_key_unclear_values.json", b'{"a":-0.0}')

def test_string_1_escaped_invalid_codepoint(self):
"""
Expand Down

0 comments on commit 623a524

Please sign in to comment.