Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Resource Manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
Resource Manager
Commits
7782f44d
Commit
7782f44d
authored
2 years ago
by
JORGE SASIAIN
Browse files
Options
Downloads
Patches
Plain Diff
NAT-29: Add setup.py and related clean up
parent
59e4a62a
Branches
Branches containing commit
Tags
0.42
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
MANIFEST.in
+2
-0
2 additions, 0 deletions
MANIFEST.in
scripts/ims-data-example.py
+5
-1
5 additions, 1 deletion
scripts/ims-data-example.py
setup.py
+18
-0
18 additions, 0 deletions
setup.py
with
25 additions
and
1 deletion
MANIFEST.in
0 → 100644
+
2
−
0
View file @
7782f44d
include inventory_provider/logging_default_config.json
include inventory_provider/config.sample.json
This diff is collapsed.
Click to expand it.
ims-data-example.py
→
scripts/
ims-data-example.py
+
5
−
1
View file @
7782f44d
import
json
import
json
import
os
import
os
import
sys
currentdir
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
parentdir
=
os
.
path
.
dirname
(
currentdir
)
sys
.
path
.
append
(
parentdir
)
from
inventory_provider.ims
import
IMS
from
inventory_provider.ims
import
IMS
from
inventory_provider
import
config
from
inventory_provider
import
config
from
inventory_provider
import
ims_data
from
inventory_provider
import
ims_data
CONFIG_FILENAME
=
os
.
path
.
abspath
(
os
.
path
.
join
(
CONFIG_FILENAME
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
config.sample.json
'
))
os
.
path
.
dirname
(
__file__
),
'
..
'
,
'
inventory_provider
'
,
'
config.sample.json
'
))
with
open
(
CONFIG_FILENAME
)
as
f
:
with
open
(
CONFIG_FILENAME
)
as
f
:
params
=
config
.
load
(
f
)
params
=
config
.
load
(
f
)
...
...
This diff is collapsed.
Click to expand it.
setup.py
0 → 100644
+
18
−
0
View file @
7782f44d
from
setuptools
import
setup
,
find_packages
setup
(
name
=
'
iventory_provider
'
,
version
=
'
TBD
'
,
author
=
'
TBD
'
,
author_email
=
'
TBD
'
,
description
=
'
inventory provider repository
'
,
url
=
(
'
TBD
'
),
packages
=
find_packages
(),
install_requires
=
[
'
jsonschema==3.2.0
'
,
'
requests==2.22.0
'
],
scripts
=
[
'
scripts/ims-data-example.py
'
],
include_package_data
=
True
,
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment