fix: make pyarrow an optional dependency post-3.20.0 yanked release#1879
fix: make pyarrow an optional dependency post-3.20.0 yanked release#1879
pyarrow an optional dependency post-3.20.0 yanked release#1879Conversation
|
We appear to have two conflicting versions of The Line 40: Later when we reference Line 125: we are implicitly referencing version But in Line 30: QUESTION: should those two match? |
No. They should not.
There is a comment explaining exactly this. See: #933 Requiring the correct version of pyarrow to be installed broke some environments where pyarrow was stuck on an older version. We need to be robust to this failure mode. |
|
See: https://pip.pypa.io/en/stable/user_guide/#constraints-files for more information on constraints files. When applied, it affects what version of a package is installed but it doesn't affect packages that aren't included because of a transitive dependency of the package being installed. |
|
Thanks @tswast
|
|
That's correct. Note that we are installing |
pyarrow an optional dependency againpyarrow an optional dependency post-3.20.0 yanked release
shollyman
left a comment
There was a problem hiding this comment.
Generally, looks like a good unwinding of the behavior changes and test configurations. I did add one question around test philosophy that may be outside the scope of this PR specifically.
| pyarrow is not None, | ||
| reason="pyarrow is installed, but this test needs it not to be", | ||
| ) | ||
| def test_try_import_raises_error_w_no_pyarrow(): |
There was a problem hiding this comment.
Is there a way of asserting that a test like this was run at least once across multiple sessions? Without that, we could still potentially swallow this signal if the precondition is never met.
There was a problem hiding this comment.
Coverage should catch that. We check coverage on test files as well as the core library.
Partial rollback of 0ac6e9b
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #1877 🦕