-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Dev version hard to check #19419
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
Comments
likely #18971 will fix that? |
I hope so! |
This is because the |
We may want to switch to |
On the call, we decided that it's probably a good idea to switch to this form for 3.5.0/master, but we don't have a strong preference. It would be best to confirm that this works for downstream libraries first. So this would change from: This should always satisfy Does that sound good for Astropy, @pllim? |
Hello. Thanks for the replies! We don't really use from packaging.version import Version
import matplotlib
import pytest
MATPLOTLIB_LT_3_5 = Version(matplotlib.__version__) < Version('3.5')
@pytest.mark.skipif(MATPLOTLIB_LT_3_5, reason="new feature")
def test_something():
# blah blah I think the new scheme will work nicely for us. Thanks! 🙇♀️ |
Hello.
astropy
tests against the dev version of matplotlib by installinggit+https://github.com/matplotlib/matplotlib.git#egg=matplotlib
(see https://github.com/astropy/astropy/blob/13c4faa2ef41624f0f454f16ded57043c2b1c4ec/tox.ini#L84). Unfortunately, this gives a dev version that is hard to check.Example log using latest stable: https://github.com/astropy/astropy/runs/1807399647?check_suite_focus=true (
Matplotlib: 3.3.4
)Example log using dev: https://github.com/astropy/astropy/runs/1807399544?check_suite_focus=true (
Matplotlib: 3.3.2+2259.g30546931d
)As a result, I am not sure how to check if a given Matplotlib version is dev or not:
Any advise would be really appreciated. Thanks!
xref astropy/astropy#11267
The text was updated successfully, but these errors were encountered: