Skip to content

Commit

Permalink
Support matplotlib 3.2, 3.3 and python 3.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaomy3832 committed Jan 22, 2021
1 parent a7614ec commit 1cea944
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion easypyplot/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ def setup():
if ver >= (1, 5):
matplotlib.testing.setup()
# Style name has changed over matplotlib versions.
if ver >= (2, 0):
# See changes from <matplotlib repo>/lib/matplotlib/testing/conftest.py:mpl_test_settings()
if ver >= (3, 2):
matplotlib.style.use(['classic', '_classic_test_patch'])
elif ver >= (2, 0):
matplotlib.style.use('_classic_test')
elif ver >= (1, 5):
matplotlib.style.use('classic')
Expand Down
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ envlist =
cov-init,
py{27,34}-mpl{13,14,15,20,21,22},
py{35}-mpl{14,15,20,21,22,30},
py{36}-mpl{20,21,22,30,31},
py{37}-mpl{22,30,31},
py{36}-mpl{20,21,22,30,31,32,33},
py{37}-mpl{22,30,31,32,33},
py{38}-mpl{32,33},
cov-end

[testenv]
Expand All @@ -24,6 +25,8 @@ deps =
mpl22: matplotlib>=2.2,<2.3
mpl30: matplotlib>=3.0,<3.1
mpl31: matplotlib>=3.1,<3.2
mpl32: matplotlib>=3.2,<3.3
mpl33: matplotlib>=3.3,<3.4

install_command =
; pip cannot handle the correct install order between matplotlib and numpy,
Expand Down

0 comments on commit 1cea944

Please sign in to comment.