Skip to content

Commit a924dd4

Browse files
authored
Fix release v2.99 (#413)
1 parent 5843629 commit a924dd4

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

.github/workflows/python_publish.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- name: Install dependencies
7676
run: |
7777
pip install --upgrade pip
78-
pip install build twine
78+
pip install build
7979
8080
- name: Clean previous builds
8181
run: |
@@ -84,21 +84,32 @@ jobs:
8484
- name: Build package
8585
run: |
8686
python -m build
87-
python -m twine check --strict dist/*
87+
pipx run twine check --strict dist/*
88+
89+
- name: Upload dist
90+
uses: actions/upload-artifact@v4
91+
with:
92+
name: dist
93+
path: dist
8894

8995
deploy:
9096
needs: [build]
9197
runs-on: ubuntu-latest
92-
if: github.event_name == 'release' && github.event.action == 'created' # Only on release creation
98+
environment:
99+
name: "pypi"
100+
url: https://pypi.org/p/pyttsx3
101+
permissions:
102+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
103+
# if: github.event_name == 'release' && github.event.action == 'created' # Only on release creation
93104

94105
steps:
95-
- uses: actions/checkout@v4
96-
- name: Set up Python
97-
uses: actions/setup-python@v5
106+
- name: Download dist
107+
uses: actions/download-artifact@v4
98108
with:
99-
python-version: '3.x'
100-
109+
name: dist
110+
path: dist
111+
- run: pipx run twine check --strict dist/*
101112
- name: Publish package distributions to PyPI
102113
uses: pypa/gh-action-pypi-publish@release/v1
103-
with:
104-
password: ${{ secrets.PYPI_PASSWORD }}
114+
# with:
115+
# password: ${{ secrets.PYPI_PASSWORD }}

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ requires = [ "setuptools>=61.2" ]
55

66
[project]
77
name = "pyttsx3"
8-
version = "2.98"
8+
version = "2.99"
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."
1010
readme = "README.md"
11+
license = "MPL-2.0"
1112
keywords = [
1213
"gtts",
1314
"ivona",
@@ -29,7 +30,6 @@ classifiers = [
2930
"Intended Audience :: End Users/Desktop",
3031
"Intended Audience :: Information Technology",
3132
"Intended Audience :: System Administrators",
32-
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
3333
"Operating System :: MacOS :: MacOS X",
3434
"Operating System :: Microsoft :: Windows",
3535
"Operating System :: POSIX",

0 commit comments

Comments
 (0)