Commit 4d7ddd46 authored by David Seaward's avatar David Seaward
Browse files

Add simple debug command. Fixes #11 (ignores requirement to write to a file).


Signed-off-by: David Seaward's avatarDavid Seaward <david.seaward@puri.sm>
parent 13f35bd6
......@@ -5,6 +5,7 @@ name = "pypi"
[packages]
click = "<=7.0"
distro = "<=1.3.0"
PyGObject = "<=3.32.0"
requests = "<=2.21.0"
sh = "<=1.12.14"
......
{
"_meta": {
"hash": {
"sha256": "10e56911ebb6b9992f4e33275c9ab04d09aa5aa860a56dd993454c2beee443dd"
"sha256": "1ee4fd005b1190554ab00862afccefe9b38b11222fba8605822797060332e22c"
},
"pipfile-spec": 6,
"requires": {
......@@ -38,6 +38,14 @@
"index": "pypi",
"version": "==7.0"
},
"distro": {
"hashes": [
"sha256:224041cef9600e72d19ae41ba006e71c05c4dc802516da715d7fda55ba3d8742",
"sha256:6ec8e539cf412830e5ccf521aecf879f2c7fcf60ce446e33cd16eef1ed8a0158"
],
"index": "pypi",
"version": "==1.3.0"
},
"idna": {
"hashes": [
"sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407",
......@@ -112,6 +120,14 @@
"index": "pypi",
"version": "==7.0"
},
"distro": {
"hashes": [
"sha256:224041cef9600e72d19ae41ba006e71c05c4dc802516da715d7fda55ba3d8742",
"sha256:6ec8e539cf412830e5ccf521aecf879f2c7fcf60ce446e33cd16eef1ed8a0158"
],
"index": "pypi",
"version": "==1.3.0"
},
"docutils": {
"hashes": [
"sha256:0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af",
......
......@@ -16,7 +16,29 @@ def cli(ctx):
@cli.command()
def tunnel_setup():
def debug():
import pkg_resources
import sys
import platform
import distro
import os
package_version = pkg_resources.require("ldh_client")[0]
python_version = "Python " + sys.version.replace("\n", " ").replace(" ", " ")
platform_version = "Platform " + platform.platform()
distro_version = "Distribution " + distro.name(pretty=True)
path = "$PATH " + os.environ["PATH"].replace(os.environ["HOME"], "~")
print(package_version)
print(python_version)
print(platform_version)
print(distro_version)
print(path)
@cli.command(name="tunnel_setup")
def old_tunnel_setup():
"""This command is deprecated. Please use `liberty setup tunnel` instead."""
print("This command is deprecated. Please use `liberty setup tunnel` instead.")
......
......@@ -21,6 +21,7 @@ install_requires =
PyGObject<=3.32.0
requests<=2.21.0
sh<=1.12.14
distro<=1.3.0
scripts = liberty.py
[options.entry_points]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment