Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git workflow pip upload #55

Merged
merged 4 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 }}
14 changes: 12 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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",
Expand All @@ -19,9 +21,15 @@
author_email="[email protected]",
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",
Expand All @@ -41,4 +49,6 @@
"ffmpeg-python",
"scipy",
"websocket-client",
])
],
python_requires=">=3.8"
)
1 change: 1 addition & 0 deletions whisper_live/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__="0.0.7"
Loading