File tree 4 files changed +9
-12
lines changed
4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 2
2
importlib_resources NEWS
3
3
==========================
4
4
5
- v2 .0.2
5
+ v3 .0.0
6
6
======
7
7
8
+ * Package no longer exposes ``importlib_resources.__version__ ``.
9
+ Users that wish to inspect the version of ``importlib_resources ``
10
+ should instead invoke ``.version('importlib_resources') `` from
11
+ ``importlib-metadata `` (
12
+ `stdlib <https://docs.python.org/3/library/importlib.metadata.html >`_
13
+ or `backport <https://pypi.org/project/importlib-metadata >`_)
14
+ directly. This change eliminates the dependency on
15
+ ``importlib_metadata ``. Closes #100.
8
16
* Package now always includes its data. Closes #93.
9
17
* Declare hidden imports for PyInstaller. Closes #101.
10
18
Original file line number Diff line number Diff line change 2
2
3
3
import sys
4
4
5
- from ._compat import metadata
6
5
from ._common import (
7
6
as_file , files ,
8
7
)
52
51
read_text ,
53
52
)
54
53
del __all__ [:3 ]
55
-
56
-
57
- __version__ = metadata .version ('importlib_resources' )
Original file line number Diff line number Diff line change @@ -36,12 +36,6 @@ class ABC(object): # type: ignore
36
36
FileNotFoundError = OSError # type: ignore
37
37
38
38
39
- try :
40
- from importlib import metadata
41
- except ImportError :
42
- import importlib_metadata as metadata # type: ignore
43
-
44
-
45
39
try :
46
40
from zipfile import Path as ZipPath # type: ignore
47
41
except ImportError :
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ install_requires =
23
23
typing; python_version < '3.5'
24
24
zipp >= 0.4; python_version < '3.8'
25
25
singledispatch; python_version < '3.4'
26
- importlib_metadata; python_version < '3.8'
27
26
contextlib2; python_version < '3'
28
27
setup_requires = setuptools_scm[toml] >= 3.4.1
29
28
You can’t perform that action at this time.
0 commit comments