Skip to content
Snippets Groups Projects
Commit 9edb99bb authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Hardcode -V (Removes toml dependency"

parent 7df3379d
Branches
No related tags found
No related merge requests found
__version__ = '0.1.28' __version__ = '0.1.29'
...@@ -4,7 +4,6 @@ import os ...@@ -4,7 +4,6 @@ import os
import time import time
import json import json
import click import click
import toml
from pathlib import Path from pathlib import Path
from click_help_colors import HelpColorsGroup from click_help_colors import HelpColorsGroup
...@@ -21,17 +20,6 @@ from bbbmon.printing import * ...@@ -21,17 +20,6 @@ from bbbmon.printing import *
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) 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): class AliasedGroup(HelpColorsGroup):
""" """
Subclass of Group to allow abbreviating commands like this: Subclass of Group to allow abbreviating commands like this:
...@@ -65,7 +53,7 @@ def main(userconfig, watch, version): ...@@ -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 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: if version:
print(__version__) print(__version__)
......
...@@ -212,14 +212,6 @@ optional = false ...@@ -212,14 +212,6 @@ optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
version = "1.15.0" 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]] [[package]]
category = "main" category = "main"
description = "HTTP library with thread-safe connection pooling, file post, and more." 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)"] ...@@ -255,7 +247,7 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"]
testing = ["pathlib2", "unittest2", "jaraco.itertools", "func-timeout"] testing = ["pathlib2", "unittest2", "jaraco.itertools", "func-timeout"]
[metadata] [metadata]
content-hash = "8ee24b117e29b83f8fad8dd042da05414fa75b30da90c66c39c5b290a88bd6d7" content-hash = "8851135b48e61005132afec4effcda1d961bc0ed464ece3b1c8db9b57c44b663"
python-versions = "^3.5" python-versions = "^3.5"
[metadata.files] [metadata.files]
...@@ -331,10 +323,6 @@ six = [ ...@@ -331,10 +323,6 @@ six = [
{file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, {file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"},
{file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, {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 = [ urllib3 = [
{file = "urllib3-1.25.9-py2.py3-none-any.whl", hash = "sha256:88206b0eb87e6d677d424843ac5209e3fb9d0190d0ee169599165ec25e9d9115"}, {file = "urllib3-1.25.9-py2.py3-none-any.whl", hash = "sha256:88206b0eb87e6d677d424843ac5209e3fb9d0190d0ee169599165ec25e9d9115"},
{file = "urllib3-1.25.9.tar.gz", hash = "sha256:3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527"}, {file = "urllib3-1.25.9.tar.gz", hash = "sha256:3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527"},
......
[tool.poetry] [tool.poetry]
name = "bbbmon" name = "bbbmon"
version = "0.1.28" version = "0.1.29"
description = "A small CLI utility to monitor bbb usage" description = "A small CLI utility to monitor bbb usage"
authors = ["David Huss <david.huss@hfbk-hamburg.de>"] authors = ["David Huss <david.huss@hfbk-hamburg.de>"]
maintainers = ["David Huss <david.huss@hfbk-hamburg.de>"] maintainers = ["David Huss <david.huss@hfbk-hamburg.de>"]
...@@ -23,7 +23,6 @@ classifiers = [ ...@@ -23,7 +23,6 @@ classifiers = [
python = "^3.5" python = "^3.5"
requests = "^2.23.0" requests = "^2.23.0"
click = "^7.1.2" click = "^7.1.2"
toml = "^0.10.1"
click-help-colors = "^0.8" click-help-colors = "^0.8"
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment