File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ v5.0.0
2+ ======
3+
4+ * Module no longer exposes a ``__version__ `` attribute. Instead
5+ to query the version installed, use
6+ `importlib.metadata <https://docs.python.org/3/library/importlib.metadata.html >`_
7+ or `its backport <https://pypi.org/project/importlib_metadata >`_
8+ to query::
9+
10+ importlib.metadata.version('inflect')
11+
112v4.1.1
213======
314
Original file line number Diff line number Diff line change 5353from typing import Dict , Union
5454
5555
56- try :
57- from importlib import metadata # type: ignore
58- except ImportError :
59- import importlib_metadata as metadata # type: ignore
60-
61-
6256class UnknownClassicalModeError (Exception ):
6357 pass
6458
@@ -87,12 +81,6 @@ class BadGenderError(Exception):
8781 pass
8882
8983
90- try :
91- __version__ = metadata .version ("inflect" ) # type: ignore
92- except Exception :
93- __version__ = "unknown"
94-
95-
9684STDOUT_ON = False
9785
9886
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ include_package_data = true
2525py_modules = inflect
2626python_requires = >=3.6
2727install_requires =
28- importlib_metadata; python_version < "3.8"
2928setup_requires = setuptools_scm[toml] >= 3.4.1
3029keywords = plural inflect participle
3130
You can’t perform that action at this time.
0 commit comments