Ears for coding agents: let AI hear, review and make sound. CPU-only, open source.
release: 0.4.0
Leonxlnx591fa3e02803
diff --git a/earshot/__init__.py b/earshot/__init__.pyindex 00b0045..7a38c2c 100644--- a/earshot/__init__.py+++ b/earshot/__init__.py@@ -12,7 +12,7 @@ or explicitly: `from earshot import api` / `from earshot.describe import describ"""import importlib-__version__ = '0.3.0'+__version__ = '0.4.0'# modules that are callable as their main function (see _callable.py)_CALLABLE = {'describe', 'match', 'compare', 'realness', 'timeline', 'sheet', 'critique', 'profile'}diff --git a/pyproject.toml b/pyproject.tomlindex 49d7de7..411fd50 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "earshot"-version = "0.3.0"+version = "0.4.0"description = "Ears for coding agents: describe, match, search, compare, time-align and critique sound files an agent cannot hear."readme = "README.md"requires-python = ">=3.10"diff --git a/tests/test_core.py b/tests/test_core.pyindex e4aa446..2ea814b 100644--- a/tests/test_core.py+++ b/tests/test_core.py@@ -174,3 +174,17 @@ def test_critique_flags_windows_at_the_window_threshold():_, flagged, tw = critique._realness_windows(f)assert tw == t and [q['p_real'] for q in flagged] == [t['lo'] - 0.01]assert critique._p(0.766, {'lo': 0.4, 'hi': 0.77}) == '0.766' and critique._p(0.81, {'lo': 0.4, 'hi': 0.77}) == '0.81'+++# ------------------------------------------------------------------------------------------------- version+def test_one_version_everywhere():+ """the package, pyproject and the newest changelog entry name one version"""+ import re++ import earshot+ root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))+ with open(os.path.join(root, 'pyproject.toml'), encoding='utf-8') as fh:+ pyproject = re.search(r'^version = "([^"]+)"', fh.read(), re.M).group(1)+ with open(os.path.join(root, 'CHANGELOG.md'), encoding='utf-8') as fh:+ top = re.search(r'^## (\S+)', fh.read(), re.M).group(1)+ assert earshot.__version__ == pyproject == top == '0.4.0'