Merge pull request #55 from makaveli10/git_workflow_pip_upload

Git workflow pip upload.
This commit is contained in:
Marcus Edel
2023-10-13 11:00:22 -04:00
committed by GitHub
3 changed files with 65 additions and 2 deletions
+52
View File
@@ -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 }}
+12 -2
View File
@@ -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 @@ README = (HERE / "README.md").read_text()
# 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 @@ 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",
@@ -41,4 +49,6 @@ setup(name="whisper-live",
"ffmpeg-python",
"scipy",
"websocket-client",
])
],
python_requires=">=3.8"
)
+1
View File
@@ -0,0 +1 @@
__version__="0.0.7"