diff --git a/bbbmon/__init__.py b/bbbmon/__init__.py index 45ad887460b6268f58910cb586be2d32498dd55d..6f8839bbb734e9d9119580e05e36b06d149111cb 100644 --- a/bbbmon/__init__.py +++ b/bbbmon/__init__.py @@ -1 +1 @@ -__version__ = '0.1.28' +__version__ = '0.1.29' diff --git a/bbbmon/bbbmon.py b/bbbmon/bbbmon.py index ba93b825eb7cfcd54a4a3eb910888e284e708dc7..890d2837354a8f1624bd2bf9443e1ce11db712d7 100755 --- a/bbbmon/bbbmon.py +++ b/bbbmon/bbbmon.py @@ -4,7 +4,6 @@ import os import time import json import click -import toml from pathlib import Path from click_help_colors import HelpColorsGroup @@ -21,17 +20,6 @@ from bbbmon.printing import * CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) - -def get_version(): - """ - Read version - """ - path = Path(__file__).resolve().parents[1] / 'pyproject.toml' - pyproject = toml.loads(open(str(path)).read()) - return pyproject['tool']['poetry']['version'] - - - class AliasedGroup(HelpColorsGroup): """ Subclass of Group to allow abbreviating commands like this: @@ -65,7 +53,7 @@ def main(userconfig, watch, version): Internally bbbmon relies on the offical bbb-API, which means you need to have the server's secret in order to create a valid request. Create a new configuration with: bbbmon config --new """ - __version__ = get_version() + __version__ = "0.1.29" if version: print(__version__) diff --git a/poetry.lock b/poetry.lock index 33b27bea6d5ffad29e1de9f60c4c85ff2e2e44b8..e6334bfc870a3de151b5b9078332ef641b291a01 100644 --- a/poetry.lock +++ b/poetry.lock @@ -212,14 +212,6 @@ optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" version = "1.15.0" -[[package]] -category = "main" -description = "Python Library for Tom's Obvious, Minimal Language" -name = "toml" -optional = false -python-versions = "*" -version = "0.10.1" - [[package]] category = "main" description = "HTTP library with thread-safe connection pooling, file post, and more." @@ -255,7 +247,7 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"] testing = ["pathlib2", "unittest2", "jaraco.itertools", "func-timeout"] [metadata] -content-hash = "8ee24b117e29b83f8fad8dd042da05414fa75b30da90c66c39c5b290a88bd6d7" +content-hash = "8851135b48e61005132afec4effcda1d961bc0ed464ece3b1c8db9b57c44b663" python-versions = "^3.5" [metadata.files] @@ -331,10 +323,6 @@ six = [ {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, {file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, ] -toml = [ - {file = "toml-0.10.1-py2.py3-none-any.whl", hash = "sha256:bda89d5935c2eac546d648028b9901107a595863cb36bae0c73ac804a9b4ce88"}, - {file = "toml-0.10.1.tar.gz", hash = "sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f"}, -] urllib3 = [ {file = "urllib3-1.25.9-py2.py3-none-any.whl", hash = "sha256:88206b0eb87e6d677d424843ac5209e3fb9d0190d0ee169599165ec25e9d9115"}, {file = "urllib3-1.25.9.tar.gz", hash = "sha256:3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527"}, diff --git a/pyproject.toml b/pyproject.toml index a4103919ac94031b0c5d01b59a4d9c21b99529d8..a486c20a1d6b1be9e147bbc4b67a3561c0af920d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bbbmon" -version = "0.1.28" +version = "0.1.29" description = "A small CLI utility to monitor bbb usage" authors = ["David Huss <david.huss@hfbk-hamburg.de>"] maintainers = ["David Huss <david.huss@hfbk-hamburg.de>"] @@ -23,7 +23,6 @@ classifiers = [ python = "^3.5" requests = "^2.23.0" click = "^7.1.2" -toml = "^0.10.1" click-help-colors = "^0.8" [tool.poetry.dev-dependencies]