use asyncio.run and update requirements to py3.7

This commit is contained in:
rany
2021-06-06 01:35:09 +03:00
parent 23abad46be
commit 01f95a7e90
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
[metadata]
name = edge-tts
version = 0.0.4
version = 0.0.5
author = rany
author_email = ranygh@riseup.net
description = Microsoft Edge's TTS
@@ -19,7 +19,7 @@ package_dir=
= src
packages = find:
scripts = bin/edge-playback
python_requires = >=3.6
python_requires = >=3.7
install_requires =
requests
websockets>=9.1

View File

@@ -151,7 +151,7 @@ def terminator(signo, stack_frame): sys.exit()
def main():
signal.signal(signal.SIGINT, terminator)
signal.signal(signal.SIGTERM, terminator)
asyncio.get_event_loop().run_until_complete(_main())
asyncio.run(_main())
if __name__ == "__main__":
main()