Skip to content

Commit

Permalink
push to PYPI
Browse files Browse the repository at this point in the history
  • Loading branch information
PraaneshSelvaraj committed Mar 9, 2024
1 parent 1ac201f commit f5e8de3
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/python-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

on: push

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/'
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/speech-engine
permissions:
id-token: write

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from setuptools import setup, find_packages
from speech_engine import __version__

setup(
name='speech_engine',
version='0.0.2',
version=__version__,
author='Praanesh',
author_email='praaneshselvaraj2003@gmail.com',
description='Python package for synthesizing text into speech',
Expand Down
4 changes: 3 additions & 1 deletion speech_engine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from .exceptions import FileExtensionError, InvalidTokenError
from .tts_google import TTS_Google
from .tts_witai import TTS_Witai
from .tts_witai import TTS_Witai

__version__ = "0.0.3"

0 comments on commit f5e8de3

Please sign in to comment.