From 3a1c341cdcf5371e46fbf99572df9aa327e41e58 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 18 Jan 2024 14:43:48 -0600 Subject: [PATCH] Fix missing VERSION --- setup.py | 11 +++++++---- wyoming/VERSION | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 945cb46..d64dca6 100644 --- a/setup.py +++ b/setup.py @@ -2,21 +2,24 @@ from pathlib import Path from setuptools import setup -_DIR = Path(__file__).parent -_MODULE_DIR = _DIR / "wyoming" -_VERSION = (_MODULE_DIR / "VERSION").read_text(encoding="utf-8").strip() +this_dir = Path(__file__).parent +module_dir = this_dir / "wyoming" +version_path = module_dir / "VERSION" +version = version_path.read_text(encoding="utf-8").strip() + # ----------------------------------------------------------------------------- setup( name="wyoming", - version=_VERSION, + version=version, description="Protocol for Rhasspy Voice Assistant", url="http://github.com/rhasspy/wyoming", author="Michael Hansen", author_email="mike@rhasspy.org", license="MIT", packages=["wyoming", "wyoming.util"], + package_data={"wyoming": [str(p.relative_to(module_dir)) for p in (version_path,)]}, classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", diff --git a/wyoming/VERSION b/wyoming/VERSION index 26ca594..4cda8f1 100644 --- a/wyoming/VERSION +++ b/wyoming/VERSION @@ -1 +1 @@ -1.5.1 +1.5.2