-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST/DOC: Test for and document incompatibility with openpyxl 2.0.0 and later #7214
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
Conversation
ver = _versiontuple(openpyxl.__version__) | ||
if ver < _versiontuple(start_ver) or _versiontuple(stop_ver) <= ver: | ||
return False | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use LooseVersion for this much easier
look in pandas/init for how to use it
@neirbowj pls squash down to 1 commit |
this is failing the 3.4 build (which has 2.03 of openpyxl). https://travis-ci.org/pydata/pandas/jobs/25839724 I think you might need to leave openpyxl in the engine map by just have its value of then you can skip tests when the writer is something like that |
@jreback So "Allowed Failures" aren't really? ;-) The problem is not the writer registration, it looks like it's the version detection. I suspect that the too-old |
they are just so the testing doesn't take too long they r testing 3.4 and numpy 1.9 the 3.4 tests current versions of a lot of the deps (all the other deps are fixed) so shouldn't fail |
So... |
ok this all looks fine should the warning be a UserWaarning? pls squash to a single commit and can merge this also pls open an issue for the actual modifications needed to support > 2.0 |
maybe an ImportWarning ? |
|
ahh ok that's fine then |
* Detect whether a compatible version is installed * Skip openpyxl unit tests instead of failing * Inhibit registration of `openpyxl` engine in `ExcelWriter` * Raise `UserWarning` * Document limitation as a known issue * Resolve issue #7169
looking good |
TST/DOC: Test for and document incompatibility with openpyxl 2.0.0 and later
@neirbowj thanks! |
This just failed, seems odd, right? https://travis-ci.org/jreback/pandas/jobs/25910838 |
Yes, that does seem odd. I'm looking into it now. |
I restarted the test and it DID recur though it is NOT present in master atm; maybe had trouble installing the library....weird |
The commit in this PR is not an ancestor of your |
Let users down easy if v0.14.0 remains incompatible with openpyxl 2.0.0 and later
closes #7169 .