This commit is contained in:
makaveli10
2023-10-13 17:21:48 +08:00
parent 84122de339
commit 06189ab37c
2 changed files with 56 additions and 1 deletions
+47
View File
@@ -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 }}
+9 -1
View File
@@ -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",
])
],
python_requires=">=3.8"
)