Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bbbmon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bbb
bbbmon
Commits
9edb99bb
Commit
9edb99bb
authored
5 years ago
by
David Huss
Browse files
Options
Downloads
Patches
Plain Diff
Hardcode -V (Removes toml dependency"
parent
7df3379d
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
bbbmon/__init__.py
+1
-1
1 addition, 1 deletion
bbbmon/__init__.py
bbbmon/bbbmon.py
+1
-13
1 addition, 13 deletions
bbbmon/bbbmon.py
poetry.lock
+1
-13
1 addition, 13 deletions
poetry.lock
pyproject.toml
+1
-2
1 addition, 2 deletions
pyproject.toml
with
4 additions
and
29 deletions
bbbmon/__init__.py
+
1
−
1
View file @
9edb99bb
__version__
=
'
0.1.2
8
'
__version__
=
'
0.1.2
9
'
This diff is collapsed.
Click to expand it.
bbbmon/bbbmon.py
+
1
−
13
View file @
9edb99bb
...
...
@@ -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__
)
...
...
This diff is collapsed.
Click to expand it.
poetry.lock
+
1
−
13
View file @
9edb99bb
...
...
@@ -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
=
"8
ee24b117e29b83f8fad8dd042da05414fa75b30da90c66c39c5b290a88bd6d7
"
content-hash
=
"8
851135b48e61005132afec4effcda1d961bc0ed464ece3b1c8db9b57c44b663
"
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"
}
,
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
2
View file @
9edb99bb
[tool.poetry]
name
=
"bbbmon"
version
=
"0.1.2
8
"
version
=
"0.1.2
9
"
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]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment