Commit 0b96e328 authored by Agustin Pane's avatar Agustin Pane
Browse files

(Release) - V2.2.6

parent a60c9ff5
......@@ -4,7 +4,7 @@ from setuptools import setup
setup(
name='svmon_python_client',
version='2.2.5',
version='2.2.6',
packages=['svmon_client'],
scripts=['svmon'],
package_data={'' : ['*.json','*.pem']},
......@@ -16,6 +16,10 @@ maintainer='Agustin Pane',
maintainer_email='agustin.pane@kit.edu',
license='MIT License',
platforms=["all"],
install_requires=[
'python-dotenv',
'requests',
],
url='https://gitlab.eudat.eu/EUDAT-TOOLS/SVMON/pysvmon',
classifiers=[
'Development Status :: 4 - Beta',
......
from dotenv import load_dotenv
import sys
import os
import requests as request
import json
from platform import python_version
try:
from dotenv import load_dotenv
except ImportError:
if(python_version() >= '3.0'):
sys.exit("You need dotenv! install it from http://pypi.python.org/pypi/python-dotenv or run python3 -m pip install python-dotenv.")
else:
sys.exit("You need dotenv! install it from http://pypi.python.org/pypi/python-dotenv or run python -m pip install python-dotenv.")
try:
import requests as request
except ImportError:
if(python_version() >= '3.0'):
sys.exit("You need dotenv! install it from http://pypi.python.org/pypi/requests or run python3 -m pip install requests.")
else:
sys.exit("You need requests install it from http://pypi.python.org/pypi/requests or run python -m pip install requests")
class RemoteConfig:
......
......@@ -4,10 +4,19 @@
import os
import json
import subprocess
import sys
from . import services
from . import json_operations
from dotenv import load_dotenv
from svmon_client import remoteConfig
from platform import python_version
try:
from dotenv import load_dotenv
except ImportError:
if(python_version() >= '3.0'):
sys.exit("You need dotenv! install it from http://pypi.python.org/pypi/python-dotenv or run python3 -m pip install python-dotenv.")
else:
sys.exit("You need dotenv! install it from http://pypi.python.org/pypi/python-dotenv or run python -m pip install python-dotenv.")
class SVMONReport:
......
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