From e5038b4d087d0044ab19ae5e4b8b68770166c32c Mon Sep 17 00:00:00 2001
From: vermeul <swen@ethz.ch>
Date: Mon, 24 Oct 2022 15:59:04 +0200
Subject: [PATCH] build: bump version to 1.34.0, add --version

---
 pybis/src/python/pybis/__init__.py | 2 +-
 pybis/src/python/pybis/cli.py      | 8 +-------
 pybis/src/python/setup.cfg         | 2 +-
 3 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/pybis/src/python/pybis/__init__.py b/pybis/src/python/pybis/__init__.py
index 6f395d2daca..e4897d0efc0 100644
--- a/pybis/src/python/pybis/__init__.py
+++ b/pybis/src/python/pybis/__init__.py
@@ -1,7 +1,7 @@
 name = "pybis"
 __author__ = "Swen Vermeul • ID SIS • ETH Zürich"
 __email__ = "swen@ethz.ch"
-__version__ = "1.33.2"
+__version__ = "1.34.0"
 
 from . import pybis
 from .pybis import DataSet
diff --git a/pybis/src/python/pybis/cli.py b/pybis/src/python/pybis/cli.py
index a1210fa4eff..3447052c727 100644
--- a/pybis/src/python/pybis/cli.py
+++ b/pybis/src/python/pybis/cli.py
@@ -2,9 +2,6 @@ import os
 import syslog
 from datetime import datetime
 
-# import logging
-# import logging.handlers
-
 import click
 from dateutil.relativedelta import relativedelta
 from tabulate import tabulate
@@ -12,10 +9,6 @@ from tabulate import tabulate
 from . import pybis
 
 syslog.openlog("pyBIS")
-# pybis_logger = logging.getLogger("pyBIS")
-# pybis_logger.setLevel(logging.INFO)
-# handler = logging.handlers.SysLogHandler(address="/dev/log")
-# pybis_logger.addHandler(handler)
 
 
 def openbis_conn_options(func):
@@ -112,6 +105,7 @@ def get_openbis(
 
 
 @click.group()
+@click.version_option()
 def cli():
     """pybis - command line access to openBIS"""
 
diff --git a/pybis/src/python/setup.cfg b/pybis/src/python/setup.cfg
index a964880f886..cf9c067a767 100644
--- a/pybis/src/python/setup.cfg
+++ b/pybis/src/python/setup.cfg
@@ -1,6 +1,6 @@
 [metadata]
 name = PyBIS
-version = 1.34.0rc1
+version = 1.34.0
 author = Swen Vermeul • ID SIS • ETH Zürich
 author_email = swen@ethz.ch
 license = Apache Software License Version 2.0
-- 
GitLab