Skip to content

Commit

Permalink
ci: pin zope.interface<7 (PyO3#4429)
Browse files Browse the repository at this point in the history
* ci: pin `zope.interface<7`

* ci: explicit `cargo careful` setup

* ci: build `cargo-careful` from source while waiting for updated binary
  • Loading branch information
davidhewitt authored Aug 9, 2024
1 parent 0a185cd commit ba93835
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- uses: taiki-e/install-action@cargo-careful
# FIXME: workaround https://github.com/RalfJung/cargo-careful/issues/36
# - uses: taiki-e/install-action@cargo-careful
- run: cargo install cargo-careful
- run: python -m pip install --upgrade pip && pip install nox
- run: nox -s test-rust -- careful skip-full
env:
Expand Down
2 changes: 2 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,8 @@ def _run_cargo_test(
) -> None:
command = ["cargo"]
if "careful" in session.posargs:
# do explicit setup so failures in setup can be seen
_run_cargo(session, "careful", "setup")
command.append("careful")
command.extend(("test", "--no-fail-fast"))
if "release" in session.posargs:
Expand Down
5 changes: 4 additions & 1 deletion pytests/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ def test(session: nox.Session):

def try_install_binary(package: str, constraint: str):
try:
session.install(f"--only-binary={package}", f"{package}{constraint}")
session.install("--only-binary=:all:", f"{package}{constraint}")
except CommandFailed:
# No binary wheel available on this platform
pass

try_install_binary("numpy", ">=1.16")
# https://github.com/zopefoundation/zope.interface/issues/316
# - is a dependency of gevent
try_install_binary("zope.interface", "<7")
try_install_binary("gevent", ">=22.10.2")
ignored_paths = []
if sys.version_info < (3, 10):
Expand Down

0 comments on commit ba93835

Please sign in to comment.