feat(packaging): add pyproject.toml and console_scripts entrypoint for pip distribution
This commit is contained in:
+5
-1
@@ -16,5 +16,9 @@ try:
|
||||
except ImportError:
|
||||
from src.cli import run_cli
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main() -> None:
|
||||
sys.exit(run_cli())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
@@ -452,3 +452,8 @@ def run_cli(args: Optional[List[str]] = None) -> int:
|
||||
print(catalog.format("errors.unknown_command", command=command))
|
||||
return 1
|
||||
|
||||
|
||||
def main() -> None:
|
||||
"""Standard console_scripts entry point."""
|
||||
sys.exit(run_cli())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user