From c9ddbadb12dde4c0bf8a735bfe1ce1bf4c91af7e Mon Sep 17 00:00:00 2001 From: James Betker Date: Sat, 26 Feb 2022 20:21:34 -0700 Subject: [PATCH] Update distribution --- LICENSE => LICENSE.txt | 0 __init__.py | 2 ++ setup.cfg | 2 ++ setup.py | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 37 insertions(+) rename LICENSE => LICENSE.txt (100%) create mode 100644 __init__.py create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..d227189 --- /dev/null +++ b/__init__.py @@ -0,0 +1,2 @@ +from api import Transcriber +from utils import load_wav_to_torch, load_audio diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..224a779 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..45dd4fb --- /dev/null +++ b/setup.py @@ -0,0 +1,33 @@ +import setuptools + +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() + +setuptools.setup( + name="ocotillo", + packages=["."], + version="1.0.1", + author="James", + author_email="james@adamant.ai", + description="A simple & fast speech transcription toolkit", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/neonbjb/ocotillo", + project_urls={}, + install_requires=[ + 'tqdm', + 'scipy', + 'torch>=1.8', + 'torchaudio>0.9', + 'audio2numpy', + 'transformers', + 'tokenizers', + ], + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + ], + download_url = 'https://github.com/neonbjb/ocotillo/archive/refs/tags/1.0.0.tar.gz', + python_requires=">=3.6", +) \ No newline at end of file