diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000000000000000000000000000000000000..f94ab90e803208b5a75f12f7eeee4655f1bee17f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include inventory_provider/logging_default_config.json +include inventory_provider/config.sample.json diff --git a/ims-data-example.py b/scripts/ims-data-example.py similarity index 70% rename from ims-data-example.py rename to scripts/ims-data-example.py index 445cb6414d5e47cbaf5ba505eb6a72d359b5987c..d2c4dabe9cc7bd1f6b848306145c1da2c1a012e8 100644 --- a/ims-data-example.py +++ b/scripts/ims-data-example.py @@ -1,12 +1,16 @@ import json 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 import config from inventory_provider import ims_data 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: params = config.load(f) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000000000000000000000000000000000000..d4d01479f7a3c79842f9b489a14aee4c9272a1dd --- /dev/null +++ b/setup.py @@ -0,0 +1,18 @@ +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, +) +