Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
netdb-client-lib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scc-net
netvs
netdb-client-lib
Commits
fe4701d1
Commit
fe4701d1
authored
Sep 23, 2020
by
Janis Streib
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
INIT
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
netdb_client_lib/__init__.py
netdb_client_lib/__init__.py
+0
-0
pyproject.toml
pyproject.toml
+3
-0
setup.py
setup.py
+30
-0
No files found.
netdb_client_lib/__init__.py
0 → 100644
View file @
fe4701d1
pyproject.toml
0 → 100644
View file @
fe4701d1
[build-system]
# Minimum requirements for the build system to execute.
requires
=
[
"setuptools"
,
"wheel"
,
"net_api_generator @ git+https://git.scc.kit.edu/scc-net/net-suite/api-generator.git@master"
]
setup.py
0 → 100644
View file @
fe4701d1
from
setuptools
import
setup
from
distutils.command.build_py
import
build_py
import
subprocess
import
os
import
py_compile
class
APIGenBuild
(
build_py
):
def
run
(
self
):
gen
=
subprocess
.
run
([
'net-api-generator'
,
'python'
],
check
=
True
,
capture_output
=
True
)
if
not
self
.
dry_run
:
target_dir
=
os
.
path
.
join
(
self
.
build_lib
,
'netdb_client_lib'
)
self
.
mkpath
(
target_dir
)
with
open
(
os
.
path
.
join
(
target_dir
,
'model.py'
),
'wb'
)
as
fobj
:
fobj
.
write
(
gen
.
stdout
)
py_compile
.
compile
(
os
.
path
.
join
(
target_dir
,
'model.py'
))
build_py
.
run
(
self
)
setup
(
name
=
'netdb_client_lib'
,
version
=
'1.0'
,
author
=
'Dr. Meta'
,
description
=
'This is a meta package to install the automatically generated NET-API 3.0 definitions.'
,
install_requires
=
[
'net_api_generator @ git+https://git.scc.kit.edu/scc-net/net-suite/api-generator.git@master'
],
setup_requires
=
[
'net_api_generator @ git+https://git.scc.kit.edu/scc-net/net-suite/api-generator.git@master'
],
packages
=
[
'netdb_client_lib'
],
cmdclass
=
{
'build_py'
:
APIGenBuild
}
)
Write
Preview
Markdown
is supported
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