Skip to content
Snippets Groups Projects
Commit 79874813 authored by Dominik Rimpf's avatar Dominik Rimpf :chipmunk: Committed by Janis Streib
Browse files

CHG: remove version config option

parent 2b7a6bcf
No related branches found
No related tags found
No related merge requests found
# NETDB API 3.x Client Library for Python3
## Changes in netdb_client 2.x
From version 2.0 onwards the config option `version` has been dropped. This is because the API Library is built against a specific WebAPI Version and is not cross-compatible with different WebAPI versions.
The existing config files can still be used, but the config option will be ignored.
## Install
### Pre-Built (updated every night)
`pip install https://git.scc.kit.edu/scc-net/netvs/netdb-client-lib/-/jobs/artifacts/master/raw/dist/netdb_client-1.0-py3-none-any.whl?job=build`
......
......@@ -3,15 +3,12 @@ endpoint = prod
[dev]
base_url = www-net-devel.scc.kit.edu
version = 3.0
token = <token>
[test]
base_url = www-net-test.scc.kit.edu
version = 3.0
token = <token>
[prod]
base_url = www-net.scc.kit.edu
version = 3.0
token = <token>
......@@ -33,10 +33,6 @@ class ArgumentParser(argparse.ArgumentParser):
help='webapi server.\n'
'Environment: "NETDB_BASE_URL"\n'
'Config: [$endpoint]: base_url')
self.add_argument('--version',
help='webapi version.\n'
'Environment: "NETDB_VERSION"\n'
'Config: [$endpoint]: version')
self.add_argument('--token', '-t',
help='user API token.\n'
'Environment: "NETDB_TOKEN"\n'
......@@ -85,7 +81,7 @@ class ArgumentParser(argparse.ArgumentParser):
setattr(args, option, value)
# start with endpoint to get the right config section
for option in ['endpoint', 'base_url', 'token', 'version']:
for option in ['endpoint', 'base_url', 'token']:
load_config(option)
return args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment