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

UPD: lib version updated. docs fixed.

parent 5d359e4e
No related branches found
No related tags found
No related merge requests found
...@@ -5,10 +5,10 @@ The existing config files can still be used, but the config option will be ignor ...@@ -5,10 +5,10 @@ The existing config files can still be used, but the config option will be ignor
## Install ## Install
### Pre-Built (updated every night) ### 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` `pip install https://git.scc.kit.edu/scc-net/netvs/netdb-client-lib/-/jobs/artifacts/master/raw/dist/netdb_client-2.0-py3-none-any.whl?job=build`
### Self-Built ### Self-Built
`env NETDB_AUTH=<your API token> pip install git+https://git.scc.kit.edu/scc-net/netvs/netdb-client-lib.git@master` `pip install git+https://git.scc.kit.edu/scc-net/netvs/netdb-client-lib.git@master`
## Usage ## Usage
......
...@@ -4,17 +4,18 @@ import subprocess ...@@ -4,17 +4,18 @@ import subprocess
import os import os
import py_compile import py_compile
class APIGenBuild(build_py): class APIGenBuild(build_py):
def run(self): def run(self):
target_dir = os.path.join(self.build_lib, 'netdb_client') target_dir = os.path.join(self.build_lib, 'netdb_client')
self.mkpath(target_dir) self.mkpath(target_dir)
gen = subprocess.run(['net-api-generator', 'python', '--output-dir='+target_dir], check=True) gen = subprocess.run(['net-api-generator', 'python', f'--output-dir={target_dir}'], check=True)
build_py.run(self) build_py.run(self)
setup( setup(
name='netdb_client', name='netdb_client',
version='1.0', version='2.0',
author='Dr. Meta', author='Dr. Meta',
description='This is a meta package to install the automatically generated NET-API 3.0 definitions.', description='This is a meta package to install the automatically generated NET-API 3.0 definitions.',
url='https://git.scc.kit.edu/scc-net/net-suite/netdb-client-lib', url='https://git.scc.kit.edu/scc-net/net-suite/netdb-client-lib',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment