File: drop-python3-importlib-metadata.patch

package info (click to toggle)
python-pygal 3.1.0-0.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 664 kB
  • sloc: python: 7,385; makefile: 8
file content (32 lines) | stat: -rw-r--r-- 985 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- a/pygal/__init__.py
+++ b/pygal/__init__.py
@@ -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
--- a/pygal/test/test_maps.py
+++ b/pygal/test/test_maps.py
@@ -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"):
--- a/setup.py
+++ b/setup.py
@@ -63,7 +63,6 @@
     keywords=[
         "svg", "chart", "graph", "diagram", "plot", "histogram", "kiviat"],
     setup_requires=['pytest-runner'],
-    install_requires=['importlib-metadata'],  # TODO: remove this (see #545, #546)
     package_data={'pygal': ['css/*', 'graph/maps/*.svg']},
     extras_require={
         'lxml': ['lxml'],