Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ build-backend = "hatchling.build"

[tool.hatch.version]
source = "vcs"
path = "src/speech_prep/_version.py"

[tool.ruff]
target-version = "py39"
Expand Down
6 changes: 6 additions & 0 deletions scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function usage() {
echo " check-all - Run all checks"
echo " tests - Run tests"
echo " hooks - Run all pre-commit hooks on all files"
echo " clean - Clean up build artifacts (dist/, build/, *.egg-info/)"
echo ""
exit 1
}
Expand Down Expand Up @@ -56,6 +57,11 @@ case "$1" in
echo "🪝 Running all pre-commit hooks on all files..."
uv run pre-commit run --all-files
;;
clean)
echo "🧹 Cleaning up build artifacts..."
rm -rf dist/ build/ *.egg-info/
echo "✅ Cleanup completed!"
;;
*)
usage
;;
Expand Down
10 changes: 9 additions & 1 deletion src/speech_prep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
including silence detection and removal, speed adjustment, and format conversion.
"""

from ._version import __version__
from .core import SoundFile
from .exceptions import (
AudioPropertiesError,
Expand All @@ -15,6 +14,15 @@
SpeechPrepError,
)

# Import version from hatch-vcs
try:
from importlib.metadata import version as get_metadata_version

__version__ = get_metadata_version("speech-prep")
except ImportError:
# Development or not installed
__version__ = "0.0.0"

__all__ = [
"SoundFile",
"SpeechPrepError",
Expand Down
4 changes: 0 additions & 4 deletions src/speech_prep/_version.py

This file was deleted.