From ed3509c2b43151da43fc58c88eafd6408e837247 Mon Sep 17 00:00:00 2001 From: picoliu Date: Wed, 5 Feb 2025 17:14:43 -0800 Subject: [PATCH] Update python support (#764) --- .github/workflows/python-demos.yml | 2 +- .github/workflows/python.yml | 2 +- binding/python/README.md | 2 +- binding/python/setup.py | 4 ++-- demo/python/README.md | 2 +- demo/python/requirements.txt | 2 +- demo/python/setup.py | 9 ++++++--- 7 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-demos.yml b/.github/workflows/python-demos.yml index 66002af6..6ca891ab 100644 --- a/.github/workflows/python-demos.yml +++ b/.github/workflows/python-demos.yml @@ -26,7 +26,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] include: - os: ubuntu-latest platform: linux diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 637cfbaa..d6aef0a1 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -48,7 +48,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v3 diff --git a/binding/python/README.md b/binding/python/README.md index c3605cd5..5d34daff 100644 --- a/binding/python/README.md +++ b/binding/python/README.md @@ -29,7 +29,7 @@ Rhino is: ## Compatibility -- Python 3.8+ +- Python 3.9+ - Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64, arm64), and Raspberry Pi (Zero, 3, 4, 5). ## Installation diff --git a/binding/python/setup.py b/binding/python/setup.py index 44a47333..dfb54dcd 100644 --- a/binding/python/setup.py +++ b/binding/python/setup.py @@ -46,7 +46,7 @@ setuptools.setup( name="pvrhino", - version="3.0.4", + version="3.0.5", author="Picovoice", author_email="hello@picovoice.ai", description="Rhino Speech-to-Intent engine.", @@ -63,6 +63,6 @@ "Programming Language :: Python :: 3", "Topic :: Multimedia :: Sound/Audio :: Speech" ], - python_requires='>=3.8', + python_requires='>=3.9', keywords="Speech-to-Intent, voice commands, voice control, speech recognition, natural language understanding" ) diff --git a/demo/python/README.md b/demo/python/README.md index 8cd4331e..818424fb 100644 --- a/demo/python/README.md +++ b/demo/python/README.md @@ -34,7 +34,7 @@ Rhino is: ## Compatibility -- Python 3.8+ +- Python 3.9+ - Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64, arm64), and Raspberry Pi (Zero, 3, 4, 5). ## Installation diff --git a/demo/python/requirements.txt b/demo/python/requirements.txt index 3d608d34..092b6ae7 100644 --- a/demo/python/requirements.txt +++ b/demo/python/requirements.txt @@ -1,2 +1,2 @@ -pvrhino==3.0.4 +pvrhino==3.0.5 pvrecorder==1.2.4 diff --git a/demo/python/setup.py b/demo/python/setup.py index d47cfcee..f64d7e22 100644 --- a/demo/python/setup.py +++ b/demo/python/setup.py @@ -26,9 +26,12 @@ with open(os.path.join(os.path.dirname(__file__), 'README.md'), 'r') as f: long_description = f.read() +with open(os.path.join(os.path.dirname(__file__), "requirements.txt"), "r") as f: + dependencies = f.read().strip().splitlines() + setuptools.setup( name="pvrhinodemo", - version="3.0.4", + version="3.0.5", author="Picovoice", author_email="hello@picovoice.ai", description="Rhino Speech-to-Intent engine demos.", @@ -36,7 +39,7 @@ long_description_content_type="text/markdown", url="https://github.com/Picovoice/rhino", packages=["pvrhinodemo"], - install_requires=["pvrhino==3.0.4", "pvrecorder==1.2.4"], + install_requires=dependencies, include_package_data=True, classifiers=[ "Development Status :: 5 - Production/Stable", @@ -52,6 +55,6 @@ 'rhino_demo_mic=pvrhinodemo.rhino_demo_mic:main', ], ), - python_requires='>=3.8', + python_requires='>=3.9', keywords="Speech-to-Intent, voice commands, voice control, speech recognition, natural language understanding" )