Skip to content

Commit beb2aaf

Browse files
Add entry point support for older CLI installations
- Introduced support for the `_entrypoint` attribute in the CLI module to accommodate older installations and metadata. - Enhanced the dynamic attribute resolution in `__getattr__` for improved compatibility with various CLI usage scenarios.
1 parent 11a7c77 commit beb2aaf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

auralogger/cli/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ def __getattr__(name: str) -> Any:
1616
from auralogger.cli.cli import print_usage
1717

1818
return print_usage
19+
# Console scripts may target ``auralogger.cli:_entrypoint`` (older installs / metadata).
20+
if name == "_entrypoint":
21+
from auralogger.cli.cli import _entrypoint
22+
23+
return _entrypoint
1924
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

0 commit comments

Comments
 (0)