From 9d6b6234f52b30677ba085e80b93407842040e2e Mon Sep 17 00:00:00 2001 From: David vonThenen <12752197+dvonthenen@users.noreply.github.com> Date: Tue, 2 Jan 2024 14:04:00 -0800 Subject: [PATCH] Enforce Python Version (3.10+) With Deps --- pyproject.toml | 2 +- setup.py | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ee5c1357..fa5f918d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ version = {attr = "deepgram.__version__"} # poetry configuration [tool.poetry] name = "deepgram" -version = "3.0.0" +version = "3.X.Y" # Please update this to the version you are using description = "The official Python SDK for the Deepgram automated speech recognition platform." authors = ["Deepgram DevRel "] license = "MIT" diff --git a/setup.py b/setup.py index aa94e09e..92ee5e99 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,10 @@ from setuptools import setup, find_packages import os.path +import sys + +if sys.version_info < (3, 10): + sys.exit("Sorry, Python < 3.10 is not supported") with open("README.md", "r", encoding="utf-8") as fh: LONG_DESCRIPTION = fh.read() @@ -23,14 +27,13 @@ license="MIT", packages=find_packages(), install_requires=[ - "httpx", - "websockets", - "dataclasses-json", - "typing_extensions", - "python-dotenv", - "asyncio", - "aiohttp", - "verboselogs", + "httpx>=0.25.2", + "websockets>=12.0", + "dataclasses-json>=0.6.3", + "typing_extensions>=4.9.0", + "asyncio>=3.4.3", + "aiohttp>=3.9.1", + "verboselogs>=1.7", ], keywords=["deepgram", "deepgram speech-to-text"], classifiers=[