Skip to content

Commit 45cc36d

Browse files
authored
Merge pull request #1 from white-gecko/feature/addExecutable
Add tool.poetry.scripts to provide an executable
2 parents cd74278 + 522c869 commit 45cc36d

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

databusclient/__init__.py

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

databusclient/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ def deploy(
3636

3737
@app.command()
3838
def download(collection: str):
39-
typer.echo(f"TODO")
39+
typer.echo("TODO")

databusclient/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import requests
44
import hashlib
55
import json
6-
from urllib.parse import urldefrag
76

87
__debug = False
98

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)