Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: pin zope.interface<7 #4429

Merged
merged 3 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading