Skip to content

Commit f649de7

Browse files
committed
Add tool.poetry.scripts to provide an executable
1 parent cd74278 commit f649de7

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

databusclient/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
from databusclient import cli
12
from databusclient.client import create_dataset, deploy, create_distribution
3+
4+
def run():
5+
cli.app()

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ black = "^22.6.0"
1717
[tool.poetry.group.dev.dependencies]
1818
pytest = "^7.1.3"
1919

20+
[tool.poetry.scripts]
21+
databusclient = "databusclient:run"
22+
2023
[build-system]
2124
requires = ["poetry-core>=1.0.0"]
2225
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)