Skip to content

Commit ba93835

Browse files
authored
ci: pin zope.interface<7 (#4429)
* ci: pin `zope.interface<7` * ci: explicit `cargo careful` setup * ci: build `cargo-careful` from source while waiting for updated binary
1 parent 0a185cd commit ba93835

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ jobs:
349349
- uses: dtolnay/rust-toolchain@nightly
350350
with:
351351
components: rust-src
352-
- uses: taiki-e/install-action@cargo-careful
352+
# FIXME: workaround https://github.com/RalfJung/cargo-careful/issues/36
353+
# - uses: taiki-e/install-action@cargo-careful
354+
- run: cargo install cargo-careful
353355
- run: python -m pip install --upgrade pip && pip install nox
354356
- run: nox -s test-rust -- careful skip-full
355357
env:

noxfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@ def _run_cargo_test(
869869
) -> None:
870870
command = ["cargo"]
871871
if "careful" in session.posargs:
872+
# do explicit setup so failures in setup can be seen
873+
_run_cargo(session, "careful", "setup")
872874
command.append("careful")
873875
command.extend(("test", "--no-fail-fast"))
874876
if "release" in session.posargs:

pytests/noxfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ def test(session: nox.Session):
1212

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

2020
try_install_binary("numpy", ">=1.16")
21+
# https://github.com/zopefoundation/zope.interface/issues/316
22+
# - is a dependency of gevent
23+
try_install_binary("zope.interface", "<7")
2124
try_install_binary("gevent", ">=22.10.2")
2225
ignored_paths = []
2326
if sys.version_info < (3, 10):

0 commit comments

Comments
 (0)