diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..29010bfa --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,52 @@ +name: CI + +on: + push: + branches: + - main + tags: + - v* + pull_request: + branches: + - main + +jobs: + build-and-push-package: + runs-on: ubuntu-latest + + steps: + - name: Check Out Repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Set up FFmpeg + uses: FedericoCarboni/setup-ffmpeg@v2 + + - name: Install Additional requirements + run: | + sudo apt-get -y install portaudio19-dev wget + shell: bash + + - name: Install Client Requirements + run: pip install -r requirements/client.txt + + - name: Install Server Requirements + run: pip install -r requirements/server.txt + + - name: Install Wheel for build + run: pip install wheel twine + + - name: Build wheel + run: | + python setup.py sdist bdist_wheel + + - name: Push package on Test PyPI + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.py b/setup.py index 1b23d242..3801c873 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,7 @@ import pathlib from setuptools import find_packages, setup +from whisper_live.__version__ import __version__ + # The directory containing this file HERE = pathlib.Path(__file__).parent @@ -9,7 +11,7 @@ # This call to setup() does all the work setup(name="whisper-live", - version="0.0.6", + version=__version__, description="A nearly-live implementation of OpenAI's Whisper.", long_description=README, long_description_content_type="text/markdown", @@ -19,9 +21,15 @@ author_email="vineet.suryan@collabora.com", license="MIT", classifiers=[ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Topic :: Scientific/Engineering :: Artificial Intelligence", ], packages=find_packages( exclude=("examples", @@ -41,4 +49,6 @@ "ffmpeg-python", "scipy", "websocket-client", - ]) \ No newline at end of file + ], + python_requires=">=3.8" +) \ No newline at end of file diff --git a/whisper_live/__version__.py b/whisper_live/__version__.py new file mode 100644 index 00000000..10ce742b --- /dev/null +++ b/whisper_live/__version__.py @@ -0,0 +1 @@ +__version__="0.0.7" \ No newline at end of file