From fe2f158dc6f0c32ed2049edbb988706531e048b3 Mon Sep 17 00:00:00 2001 From: picoliu Date: Wed, 5 Feb 2025 15:04:10 -0800 Subject: [PATCH] Update demo package setup to read dependency versions from requirement file (#1367) --- demo/python/setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/demo/python/setup.py b/demo/python/setup.py index 966b41151..942c1985e 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="pvporcupinedemo", - version="3.0.4", + version="3.0.5", author="Picovoice", author_email="hello@picovoice.ai", description="Porcupine wake word engine demos", @@ -36,7 +39,7 @@ long_description_content_type="text/markdown", url="https://github.com/Picovoice/porcupine", packages=["pvporcupinedemo"], - install_requires=["pvporcupine==3.0.4", "pvrecorder==1.2.4"], + install_requires=dependencies, include_package_data=True, classifiers=[ "Development Status :: 5 - Production/Stable",