Skip to content

Commit

Permalink
Fix devdeps figure tests and getting the wrong filename (#7330)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Dec 6, 2023
1 parent 4208722 commit db26642
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sunpy/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ def get_hash_library_name():
Generate the hash library name for this env.
"""
import mpl_animators
version = mpl_animators.__version__
animators_version = "dev" if "+" in version else version.replace('.', '')

animators_version = "dev" if (("dev" in mpl_animators.__version__) or ("rc" in mpl_animators.__version__)) else mpl_animators.__version__.replace('.', '')
ft2_version = f"{mpl.ft2font.__freetype_version__.replace('.', '')}"
mpl_version = "dev" if ("+" in mpl.__version__) or ("rc" in mpl.__version__) else mpl.__version__.replace('.', '')
astropy_version = "dev" if "dev" in astropy.__version__ else astropy.__version__.replace('.', '')
mpl_version = "dev" if (("dev" in mpl.__version__) or ("rc" in mpl.__version__)) else mpl.__version__.replace('.', '')
astropy_version = "dev" if (("dev" in astropy.__version__) or ("rc" in astropy.__version__)) else astropy.__version__.replace('.', '')
return f"figure_hashes_mpl_{mpl_version}_ft_{ft2_version}_astropy_{astropy_version}_animators_{animators_version}.json"


Expand Down

0 comments on commit db26642

Please sign in to comment.