Skip to content
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
31 changes: 21 additions & 10 deletions .github/workflows/python_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade pip
pip install build twine
pip install build

- name: Clean previous builds
run: |
Expand All @@ -84,21 +84,32 @@ jobs:
- name: Build package
run: |
python -m build
python -m twine check --strict dist/*
pipx run twine check --strict dist/*

- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: dist
path: dist

deploy:
needs: [build]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'created' # Only on release creation
environment:
name: "pypi"
url: https://pypi.org/p/pyttsx3
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
# if: github.event_name == 'release' && github.event.action == 'created' # Only on release creation

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Download dist
uses: actions/download-artifact@v4
with:
python-version: '3.x'

name: dist
path: dist
- run: pipx run twine check --strict dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_PASSWORD }}
# with:
# password: ${{ secrets.PYPI_PASSWORD }}
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ requires = [ "setuptools>=61.2" ]

[project]
name = "pyttsx3"
version = "2.98"
version = "2.99"
description = "Text to Speech (TTS) library for Python 3. Works without internet connection or delay. Supports multiple TTS engines, including Sapi5, nsss, and espeak."
readme = "README.md"
license = "MPL-2.0"
keywords = [
"gtts",
"ivona",
Expand All @@ -29,7 +30,6 @@ classifiers = [
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
Expand Down
Loading