Skip to content

Commit

Permalink
chore: Refactor project structure and package configuration
Browse files Browse the repository at this point in the history
- Add new packages and package data to support audio transcription and summarization
- Fix a typo in the file path for the schema file
- Rename `transcribe.yaml` to `schema.yaml` for consistency
- Include a new build target in the Makefile
  • Loading branch information
johnnyhuy committed May 19, 2024
1 parent 3c20e16 commit 3ef3f06
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.PHONY: build

VENV := . venv/bin/activate &&
TAG := $(shell git describe --tags --abbrev=0)
VERSION ?= $(shell git describe --tags --always)
Expand Down
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ dependencies = [
"Bug Tracker" = "https://github.com/echohello-dev/transcribe-me/issues"

[tool.setuptools]
packages = ["transcribe_me"]
packages = [
"transcribe_me",
"transcribe_me.config",
"transcribe_me.audio",
"transcribe_me.summarization",
]

[tool.setuptools.package-data]
"transcribe_me.config" = ["*.yaml"]

[tool.setuptools.dynamic]
version = { attr = "transcribe_me.__version__" }
2 changes: 1 addition & 1 deletion transcribe_me/config/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def load_config() -> Dict[str, Any]:
Returns:
dict: The loaded configuration.
"""
schema_file = os.path.join(os.path.dirname(__file__), "schemas/transcribe.yaml")
schema_file = os.path.join(os.path.dirname(__file__), "schema.yaml")
config_file = DEFAULT_CONFIG_FILE

try:
Expand Down
File renamed without changes.

0 comments on commit 3ef3f06

Please sign in to comment.