Define version information in version.py

This commit is contained in:
rany2
2023-01-09 21:17:25 +02:00
parent d95b5d339f
commit c4f91377a4
3 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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"

4
src/edge_tts/version.py Normal file
View File

@@ -0,0 +1,4 @@
"""Edge TTS version information."""
__version__ = "6.1.0"
__version_info__ = tuple(int(num) for num in __version__.split("."))