diff options
author | k.kedron <k.kedron@partner.samsung.com> | 2020-03-05 13:12:27 +0100 |
---|---|---|
committer | Ofir Sonsino <ofir.sonsino@intl.att.com> | 2020-06-24 06:01:11 +0000 |
commit | cb30f3a566b73c78c3ea666acfcd3f288098684a (patch) | |
tree | 38cd1acb83ddde2b927485611d130bbeec3c1a4b /catalog-be/src/main/resources/scripts/setup.py | |
parent | bdbfc2e460ccb561c3e174260b2908b974996d4f (diff) |
Refactoring the sdc-BE-init python scripts
Deeper refactoring of python script:
- create the python package with init script
- support for python 3.x
- reuse code
- new design
- support for .json conf file
- update the docker chef script
Issue-ID: SDC-2784
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: I02169eb7d0e3e90851ba1811536d1712c3b4145f
Diffstat (limited to 'catalog-be/src/main/resources/scripts/setup.py')
-rw-r--r-- | catalog-be/src/main/resources/scripts/setup.py | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/catalog-be/src/main/resources/scripts/setup.py b/catalog-be/src/main/resources/scripts/setup.py new file mode 100644 index 0000000000..9df26a7aa6 --- /dev/null +++ b/catalog-be/src/main/resources/scripts/setup.py @@ -0,0 +1,43 @@ +from setuptools import setup, find_packages + +setup( + name='sdcBePy', + version='1.7', + packages=find_packages(), + url='', + license='', + author='', + author_email='', + description='', + package_data={'': ['data/*.json']}, + include_package_data=True, + entry_points={ + "console_scripts": [ + "sdcuserinit=sdcBePy.users.run:main", + "sdcimportall=sdcBePy.tosca.imports.run:main", + "sdcimportdata=sdcBePy.tosca.imports.runNormativeElement:run_import_data", + "sdcimportcapabilities=sdcBePy.tosca.imports.runNormativeElement:run_import_capabilities", + "sdcimportrelationship=sdcBePy.tosca.imports.runNormativeElement:run_import_relationship", + "sdcimportinterfacelifecycle=sdcBePy.tosca.imports.runNormativeElement:run_import_interface_lifecycle", + "sdcimportcategories=sdcBePy.tosca.imports.runNormativeElement:run_import_categories", + "sdcimportgroup=sdcBePy.tosca.imports.runNormativeElement:run_import_group", + "sdcimportpolicy=sdcBePy.tosca.imports.runNormativeElement:run_import_policy", + "sdcimportnormative=sdcBePy.tosca.imports.runNormativeType:run_import_normative", + "sdcimportheat=sdcBePy.tosca.imports.runNormativeType:run_import_heat", + "sdcimportnfv=sdcBePy.tosca.imports.runNormativeType:run_import_nfv", + "sdcimportonap=sdcBePy.tosca.imports.runNormativeType:run_import_onap", + "sdcimportsol=sdcBePy.tosca.imports.runNormativeType:run_import_sol", + "sdcimportannotation=sdcBePy.tosca.imports.runNormativeType:run_import_annotation", + "sdcimportgeneric=sdcBePy.tosca.imports.runGenericNormative:main", + "sdcupgradeall=sdcBePy.tosca.upgrade.run:main", + "sdcupgradenfv=sdcBePy.tosca.upgrade.runUpgradeNormative:run_upgrade_nfv", + "sdcupgradeonap=sdcBePy.tosca.upgrade.runUpgradeNormative:run_upgrade_onap", + "sdcupgradesol=sdcBePy.tosca.upgrade.runUpgradeNormative:run_upgrade_sol", + "sdcupgradeheat1707=sdcBePy.tosca.upgrade.runUpgradeNormative:run_upgrade_heat1707", + "sdcupgradeheat1707_3537=sdcBePy.tosca.upgrade.runUpgradeNormative:run_upgrade_heat1707_3537", + "sdcupgradeheatversion=sdcBePy.tosca.upgrade.runUpgradeNormative:run_upgrade_heat_version", + "sdccheckbackend=sdcBePy.common.healthCheck:main", + "sdcconsumerinit=sdcBePy.consumers.run:main" + ] + }, install_requires=['pycurl'] +) |