diff --git a/setup.cfg b/setup.cfg index 86ccc0d..a527644 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = edge-tts -version = 6.1.0 +version = attr: edge_tts.version.__version__ author = rany author_email = ranygh@riseup.net description = Microsoft Edge's TTS diff --git a/src/edge_tts/__init__.py b/src/edge_tts/__init__.py index b345f9d..f545f0a 100644 --- a/src/edge_tts/__init__.py +++ b/src/edge_tts/__init__.py @@ -6,6 +6,7 @@ from . import exceptions from .communicate import Communicate from .list_voices import VoicesManager, list_voices from .submaker import SubMaker +from .version import __version__ __all__ = [ "Communicate", @@ -14,4 +15,3 @@ __all__ = [ "exceptions", "list_voices", ] -__version__ = "6.1" diff --git a/src/edge_tts/version.py b/src/edge_tts/version.py new file mode 100644 index 0000000..c637d90 --- /dev/null +++ b/src/edge_tts/version.py @@ -0,0 +1,4 @@ +"""Edge TTS version information.""" + +__version__ = "6.1.0" +__version_info__ = tuple(int(num) for num in __version__.split("."))