Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EUDAT-TOOLS
SVMON
pysvmon
Commits
8206b922
Commit
8206b922
authored
Aug 11, 2021
by
Agustin Pane
Browse files
(Feature) - Improve missing imports logs
parent
d25bb678
Changes
3
Show whitespace changes
Inline
Side-by-side
setup.py
View file @
8206b922
...
...
@@ -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'
,
...
...
svmon_client/remoteConfig.py
View file @
8206b922
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
:
...
...
svmon_client/report.py
View file @
8206b922
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment