From 754170ddda66c96c7c17ab486e072b1c4da4bd9f Mon Sep 17 00:00:00 2001 From: Prakhar54-byte Date: Mon, 6 Jul 2026 02:33:16 +0530 Subject: [PATCH 1/4] feat(cli): add --version flag to command line interface --- databusclient/__init__.py | 3 ++- databusclient/cli.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/databusclient/__init__.py b/databusclient/__init__.py index 7b2c6253..06eda639 100644 --- a/databusclient/__init__.py +++ b/databusclient/__init__.py @@ -5,10 +5,11 @@ ``python -m databusclient``. """ +__version__ = "0.15" + from databusclient import cli from databusclient.api.deploy import create_dataset, create_distribution, deploy -__version__ = "0.15" __all__ = ["create_dataset", "deploy", "create_distribution"] diff --git a/databusclient/cli.py b/databusclient/cli.py index c3bd8f2f..96f2b1ff 100644 --- a/databusclient/cli.py +++ b/databusclient/cli.py @@ -5,6 +5,7 @@ import click +from databusclient import __version__ import databusclient.api.deploy as api_deploy from databusclient.api.delete import delete as api_delete from databusclient.api.download import download as api_download, DownloadAuthError @@ -12,6 +13,7 @@ @click.group() +@click.version_option(version=__version__, prog_name="databusclient") def app(): """Databus Client CLI. From 04de044fd9acbf628bd46ecb25472fd0835786bf Mon Sep 17 00:00:00 2001 From: Integer-Ctrl Date: Mon, 23 Nov 2026 14:42:28 +0100 Subject: [PATCH 2/4] fix: removed static version --- README.md | 1 + databusclient/__init__.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 777ef792..2e4e53bd 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ You can then use the client in the command line: ```bash databusclient --help +databusclient --version databusclient [delete|deploy|download|manifest|workflow] --help ``` diff --git a/databusclient/__init__.py b/databusclient/__init__.py index 0ba394c1..7477afa2 100644 --- a/databusclient/__init__.py +++ b/databusclient/__init__.py @@ -5,11 +5,9 @@ ``python -m databusclient``. """ -__version__ = "0.15" - +from databusclient.version import __version__ from databusclient import cli from databusclient.api.deploy import create_dataset, create_distribution, deploy -from databusclient.version import __version__ __all__ = ["__version__", "create_dataset", "deploy", "create_distribution"] From 164baab5d2e6f870d6e0174c236dbce6ffbd4751 Mon Sep 17 00:00:00 2001 From: Integer-Ctrl Date: Mon, 23 Nov 2026 14:42:57 +0100 Subject: [PATCH 3/4] chore: bump version to 1.3.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 06f61f68..89fc2851 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "databusclient" -version = "1.2.3" +version = "1.3.0" description = "A simple client for submitting, downloading, and deleting data on the DBpedia Databus" authors = ["DBpedia Association"] license = "Apache-2.0 License" From bd4f5e64d4272923738d5d3fba163a59b5ec23f5 Mon Sep 17 00:00:00 2001 From: Fabian Hofer <57919013+Integer-Ctrl@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:54:18 +0100 Subject: [PATCH 4/4] Update version command in README Update version command in README to reflect 1.3.0. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e4e53bd..13983b4f 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ You can then use the client in the command line: ```bash databusclient --help -databusclient --version +databusclient --version # version +1.3.0 databusclient [delete|deploy|download|manifest|workflow] --help ```