diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..76ab2df --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + publish: + 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 and Publish Package to PyPI + run: | + python setup.py sdist bdist_wheel + twine upload --repository-url https://upload.pypi.org/legacy/ dist/* + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} diff --git a/setup.py b/setup.py index 64cdccf..c60bcd0 100644 --- a/setup.py +++ b/setup.py @@ -21,9 +21,15 @@ setup(name="whisper-live", 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", @@ -43,4 +49,6 @@ setup(name="whisper-live", "ffmpeg-python", "scipy", "websocket-client", - ]) \ No newline at end of file + ], + python_requires=">=3.8" +) \ No newline at end of file