File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 8181 additional_dependencies :
8282 - pytest
8383 - types-setuptools
84- - types-pkg_resources
8584 - types-mock
8685 exclude : >
8786 (?x)^(
Original file line number Diff line number Diff line change 77 from ansi2html ._version import __version__ # mypy: disable
88except ImportError : # pragma: no branch
99 try :
10- import pkg_resources
11-
12- __version__ = pkg_resources .get_distribution ("ansi2html" ).version
13- except Exception : # pylint: disable=broad-except
14- # this is the fallback SemVer version picked by setuptools_scm when tag
15- # information is not available.
16- __version__ = "0.1.dev1"
10+ from importlib .metadata import version
11+ except ImportError :
12+ from importlib_metadata import version
13+ __version__ = version ("ansi2html" )
1714
1815__all__ = ("Ansi2HTMLConverter" , "__version__" )
You can’t perform that action at this time.
0 commit comments