summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2017-07-25 15:44:30 +0800
committershangxdy <shang.xiaodong@zte.com.cn>2017-07-25 15:58:45 +0800
commitc88bb062a593f22a2d1960572fccb8648b574444 (patch)
tree3604bfe188579efc871e259cc00d96e20548fb43
parent9949c43eaa7258e83976291a3957a7e17b51e712 (diff)
Setup parser as a entire project
Modify the setup file JIRA: PARSER-125 Change-Id: I4f3f5e2c0a5ce22f6602954fdfbd1b610410dfc0 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
-rw-r--r--setup.cfg30
-rw-r--r--setup.py8
-rw-r--r--tosca2heat/heat-translator/setup.cfg12
-rw-r--r--tosca2heat/tosca-parser/setup.cfg15
4 files changed, 51 insertions, 14 deletions
diff --git a/setup.cfg b/setup.cfg
index 58941f7..8cca69d 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,7 @@
[metadata]
-name = parser
+name = nfv-parser
+version = 0.5
+url = https://wiki.opnfv.org/display/parser
summary = OPNFV Parser Project
author = OPNFV
author-email = opnfv-tech-discuss@lists.opnfv.org
@@ -16,3 +18,29 @@ classifier =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
+[files]
+packages =
+ toscaparser
+ heat-translator
+ policy2tosca
+ verigraph
+ apigateway
+
+[entry_points]
+console_scripts =
+ nfv-parser = apigateway.cmd.api:main
+
+[compile_catalog]
+directory = nfv-parser/locale
+domain = nfv-parser
+
+[update_catalog]
+domain = nfv-parser
+output_dir = nfv-parser/locale
+input_file = nfv-parser/locale/nfv-parser.pot
+
+[extract_messages]
+keywords = _ gettext ngettext l_ lazy_gettext
+mapping_file = babel.cfg
+output_file = nfv-parser/locale/nfv-parser.pot
+
diff --git a/setup.py b/setup.py
index b341513..c53ce4f 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,10 @@
import setuptools
+try:
+ import multiprocessing # noqa
+except ImportError:
+ pass
+
setuptools.setup(
- )
+ setup_requires=['pbr>=2.0.0'],
+ pbr=True)
diff --git a/tosca2heat/heat-translator/setup.cfg b/tosca2heat/heat-translator/setup.cfg
index ebea57b..489d56d 100644
--- a/tosca2heat/heat-translator/setup.cfg
+++ b/tosca2heat/heat-translator/setup.cfg
@@ -1,13 +1,15 @@
[metadata]
name = heat-translator
-summary = Tool to translate non-heat templates to Heat Orchestration Template.
+version = 0.5
+url = https://wiki.opnfv.org/display/parser
+summary = Tool to translate non-heat templates to Heat Orchestration Template in nfv.
description-file =
README.md
-author = OpenStack
-author-email = openstack-dev@lists.openstack.org
-home-page = http://docs.openstack.org/developer/heat-translator/
+author = OPNFV
+author-email = opnfv-dev@lists.opnfv.org
+home-page = https://wiki.opnfv.org/display/parser
classifier =
- Environment :: OpenStack
+ Environment :: OPNFV
Intended Audience :: Information Technology
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
diff --git a/tosca2heat/tosca-parser/setup.cfg b/tosca2heat/tosca-parser/setup.cfg
index 1196aa1..eb14810 100644
--- a/tosca2heat/tosca-parser/setup.cfg
+++ b/tosca2heat/tosca-parser/setup.cfg
@@ -1,14 +1,15 @@
[metadata]
-name = tosca-parser
-url = https://launchpad.net/tosca-parser
-summary = Parser for TOSCA Simple Profile in YAML.
+name = nfv-toscaparser
+version = 0.5
+url = https://wiki.opnfv.org/display/parser
+summary = Parser for nfv tosca and TOSCA Simple Profile in YAML.
description-file =
README.md
-author = OpenStack
-author-email = openstack-dev@lists.openstack.org
-home-page = http://docs.openstack.org/developer/tosca-parser/
+author = OPNFV
+author-email = opnfv-dev@lists.opnfv.org
+home-page = https://wiki.opnfv.org/display/parser
classifier =
- Environment :: OpenStack
+ Environment :: OPNFV
Intended Audience :: Information Technology
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License