Skip to content

Commit 987512b

Browse files
authored
Merge pull request #48 from python-project-templates/tkp/rs3
Install rustup in all envs
2 parents c09a46e + 1750e3e commit 987512b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

rust/pyproject.toml.jinja

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,22 @@ ignore = [
8484
]
8585
8686
[tool.cibuildwheel]
87-
before-build = "rustup show"
87+
before-build = "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y && rustup show"
8888
build = "cp39-*"
8989
skip = "*musllinux*"
9090
test-command = "pytest -vvv {project}/{{module}}/tests"
9191
test-requires = ["pytest", "pytest-cov", "pytest-sugar", "pytest-xdist"]
9292
9393
[tool.cibuildwheel.linux]
94-
before-build = "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y && rustup show"
9594
environment = {PATH="$HOME/.cargo/bin:$PATH", CARGO_TERM_COLOR="always"}
9695
archs = "x86_64"
9796
9897
[tool.cibuildwheel.macos]
98+
environment = {PATH="$HOME/.cargo/bin:$PATH", CARGO_TERM_COLOR="always", MACOS_DEPLOYMENT_TARGET=11.0}
9999
archs = "x86_64 arm64"
100-
environment = {MACOS_DEPLOYMENT_TARGET=11.0}
101100
102101
[tool.cibuildwheel.windows]
103-
environment = {PATH="$UserProfile\\.cargo\bin;$PATH"}
102+
environment = {PATH="$UserProfile\\.cargo\bin;$PATH", CARGO_TERM_COLOR="always"}
104103
archs = "AMD64 x86"
105104
106105
[tool.coverage.run]

0 commit comments

Comments
 (0)