parameters: interpreter: '' target: '' toolchain: '' steps: - script: | curl https://win.rustup.rs/x86_64 -o rustup-init.exe rustup-init.exe -y --default-host $(target) --default-toolchain $(toolchain) --profile minimal set PATH=%PATH%;%USERPROFILE%\.cargo\bin 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.12.19,<0.13" wheel displayName: build dependencies - script: python.exe -m pip install -r test\requirements.txt -r integration\requirements.txt displayName: test dependencies - script: maturin.exe build --no-sdist --release --strip --interpreter $(interpreter) displayName: build - 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 displayName: pytest - script: python.exe -m pip uninstall -y numpy displayName: remove optional packages - script: python.exe -m pytest -s -rxX -v test displayName: pytest without optional packages - script: python.exe integration\thread displayName: thread - bash: ./ci/deploy /d/a/1/s/target/wheels/*.whl displayName: deploy env: MATURIN_PASSWORD: $(TWINE_PASSWORD) MATURIN_USERNAME: $(TWINE_USERNAME)