From 6669f2b773bde6843305553f7044c39298b5f8af Mon Sep 17 00:00:00 2001 From: dvonthenen Date: Tue, 28 Nov 2023 12:18:24 -0800 Subject: [PATCH] CD Release Fixes --- deepgram/__init__.py | 2 +- pyproject.toml | 3 +-- setup.py | 57 +++++++++++++++++++++++--------------------- 3 files changed, 32 insertions(+), 30 deletions(-) diff --git a/deepgram/__init__.py b/deepgram/__init__.py index ddee19b1..91009932 100644 --- a/deepgram/__init__.py +++ b/deepgram/__init__.py @@ -3,7 +3,7 @@ # SPDX-License-Identifier: MIT # version -__version__ = '3.0.0' +__version__ = '0.0.0' # entry point for the deepgram python sdk from .client import DeepgramClient, DeepgramApiKeyError diff --git a/pyproject.toml b/pyproject.toml index 5634373d..4f29a908 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,8 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "deepgram-sdk" -dynamic = ["version", "readme", "license", "description", "authors", "keywords", "classifiers", "dependencies"] +dynamic = ["version", "description", "readme", "license", "authors", "keywords", "classifiers", "dependencies"] [tool.setuptools.dynamic] version = {attr = "deepgram.__version__"} -readme = {file = "README.md"} diff --git a/setup.py b/setup.py index ca151b8f..0a36449f 100644 --- a/setup.py +++ b/setup.py @@ -2,36 +2,39 @@ # Use of this source code is governed by a MIT license that can be found in the LICENSE file. # SPDX-License-Identifier: MIT -import setuptools +from setuptools import setup, find_packages import os.path -with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md'), encoding="utf8") as file: - long_description = file.read() +with open("README.md", "r", encoding="utf-8") as fh: + LONG_DESCRIPTION = fh.read() -setuptools.setup( - name='deepgram-sdk', - description='The official Python SDK for the Deepgram automated speech recognition platform.', - long_description=long_description, - long_description_content_type='text/markdown', - license='MIT', - url='https://github.com/deepgram/deepgram-python-sdk', - author='Luca Todd', - author_email='luca.todd@deepgram.com', - classifiers=[ - 'Intended Audience :: Developers', - 'Programming Language :: Python :: 3', - ], - keywords='deepgram speech-to-text', - packages=setuptools.find_packages(), +DESCRIPTION = "The official Python SDK for the Deepgram automated speech recognition platform." + +setup( + name="deepgram-sdk", + author="Deepgram", + author_email="devrel@deepgram.com", + url="https://github.com/deepgram/deepgram-python-sdk", + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + long_description_content_type="text/markdown", + license="MIT", + packages=find_packages(), install_requires=[ - 'httpx', - 'websockets', - 'typing-extensions; python_version < "3.8.0"', - 'dataclasses-json', - 'dataclasses', - 'typing_extensions', - 'python-dotenv', - 'asyncio', - 'aiohttp' + "httpx", + "websockets", + "typing-extensions; python_version < '3.8.0'", + "dataclasses-json", + "dataclasses", + "typing_extensions", + "python-dotenv", + "asyncio", + "aiohttp" + ], + keywords=["deepgram", "deepgram speech-to-text"], + classifiers=[ + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", ], )