From c4f91377a4d9169f8741aaedf2ab68ea4fba2f9e Mon Sep 17 00:00:00 2001 From: rany2 Date: Mon, 9 Jan 2023 21:17:25 +0200 Subject: [PATCH] Define version information in version.py --- setup.cfg | 2 +- src/edge_tts/__init__.py | 2 +- src/edge_tts/version.py | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 src/edge_tts/version.py 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("."))