Skip to content

Commit

Permalink
Use importlib.metadata (pygal requires 3.8+)
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Nov 21, 2023
1 parent c65f2c0 commit fefae86
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pygal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import traceback
import warnings

from importlib_metadata import entry_points
from importlib.metadata import entry_points

from pygal import maps
from pygal.config import Config
Expand Down
2 changes: 1 addition & 1 deletion pygal/test/test_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with pygal. If not, see <http://www.gnu.org/licenses/>.
"""Map plugins tests are imported here"""

from importlib_metadata import entry_points
from importlib.metadata import entry_points

# Load plugins tests
for entry in entry_points(group="pygal.test.test_maps"):
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ deps =
lxml
pyquery
cairosvg
importlib_metadata

setenv =
COVERAGE_FILE=.cov-{envname}
Expand Down

0 comments on commit fefae86

Please sign in to comment.