Skip to content

Commit

Permalink
Fix missing VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Jan 18, 2024
1 parent ceab124 commit 3a1c341
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
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",
Expand Down
2 changes: 1 addition & 1 deletion wyoming/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.1
1.5.2

0 comments on commit 3a1c341

Please sign in to comment.