From 86456b1abdd5367f5302fd7a92adce1207665243 Mon Sep 17 00:00:00 2001 From: picoliu Date: Wed, 5 Feb 2025 17:13:52 -0800 Subject: [PATCH] Update python support (#150) --- .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 a76b7e4..53bf5b1 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'] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index e833c3c..0f07359 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -37,7 +37,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 778ccc0..48a0349 100644 --- a/binding/python/README.md +++ b/binding/python/README.md @@ -10,7 +10,7 @@ hypothesis (e.g. homophones) ## Compatibility -- Python 3.8+ +- Python 3.9+ - Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64) ## Installation diff --git a/binding/python/setup.py b/binding/python/setup.py index 4911b03..7831d5c 100644 --- a/binding/python/setup.py +++ b/binding/python/setup.py @@ -38,7 +38,7 @@ setuptools.setup( name="pvoctopus", - version="2.0.0", + version="2.0.1", author="Picovoice", author_email="hello@picovoice.ai", description="Octopus Speech-to-Index engine.", @@ -55,6 +55,6 @@ "Programming Language :: Python :: 3", "Topic :: Multimedia :: Sound/Audio :: Speech" ], - python_requires='>=3.8', + python_requires='>=3.9', keywords="Speech-to-Index, Voice Search, Keyword Spotting, Speech Recognition, Voice Recognition" ) diff --git a/demo/python/README.md b/demo/python/README.md index 91b29d6..ebef00a 100644 --- a/demo/python/README.md +++ b/demo/python/README.md @@ -10,7 +10,7 @@ Octopus is Picovoice's Speech-to-Index engine. It directly indexes speech withou ## Compatibility -- Python 3.8+ +- Python 3.9+ - Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64). ## AccessKey diff --git a/demo/python/requirements.txt b/demo/python/requirements.txt index c035c47..bb7aef0 100644 --- a/demo/python/requirements.txt +++ b/demo/python/requirements.txt @@ -1,2 +1,2 @@ -pvoctopus==2.0.0 +pvoctopus==2.0.1 tabulate diff --git a/demo/python/setup.py b/demo/python/setup.py index 0026dcf..75121fe 100644 --- a/demo/python/setup.py +++ b/demo/python/setup.py @@ -21,9 +21,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="pvoctopusdemo", - version="2.0.0", + version="2.0.1", author="Picovoice", author_email="hello@picovoice.ai", description="Octopus Speech-to-Index engine demo.", @@ -31,7 +34,7 @@ long_description_content_type="text/markdown", url="https://github.com/Picovoice/octopus", packages=["pvoctopusdemo"], - install_requires=["pvoctopus==2.0.0", "tabulate"], + install_requires=dependencies, include_package_data=True, classifiers=[ "Development Status :: 5 - Production/Stable", @@ -46,6 +49,6 @@ 'octopus_demo=pvoctopusdemo.octopus_demo:main', ], ), - python_requires='>=3.8', + python_requires='>=3.9', keywords="Speech-to-Index, Voice Search, Keyword Spotting, Speech Recognition, Voice Recognition", )