Skip to content

Commit 3a1c341

Browse files
committed
Fix missing VERSION
1 parent ceab124 commit 3a1c341

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,24 @@
22
from pathlib import Path
33
from setuptools import setup
44

5-
_DIR = Path(__file__).parent
6-
_MODULE_DIR = _DIR / "wyoming"
7-
_VERSION = (_MODULE_DIR / "VERSION").read_text(encoding="utf-8").strip()
5+
this_dir = Path(__file__).parent
6+
module_dir = this_dir / "wyoming"
7+
version_path = module_dir / "VERSION"
8+
version = version_path.read_text(encoding="utf-8").strip()
9+
810

911
# -----------------------------------------------------------------------------
1012

1113
setup(
1214
name="wyoming",
13-
version=_VERSION,
15+
version=version,
1416
description="Protocol for Rhasspy Voice Assistant",
1517
url="http://github.com/rhasspy/wyoming",
1618
author="Michael Hansen",
1719
author_email="[email protected]",
1820
license="MIT",
1921
packages=["wyoming", "wyoming.util"],
22+
package_data={"wyoming": [str(p.relative_to(module_dir)) for p in (version_path,)]},
2023
classifiers=[
2124
"Development Status :: 3 - Alpha",
2225
"Intended Audience :: Developers",

wyoming/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.1
1+
1.5.2

0 commit comments

Comments
 (0)