From 97efa7cdf6ea87ec654ca3c6027dbe44b993b176 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Mon, 4 Sep 2017 15:57:23 +0800 Subject: bugfix: leverage data_files to stop hacking setup.py 1) leverage data_files to distribute ui related files, and dispatch them under /usr/local/share/opnfv_testapi 2) delete hacking coding, no more extra processes 3) utilize MANIFEST.in to include 3rd_party when producing a source distribution Change-Id: Idb83a02be11f6b24610191e9f85e0db80d92e972 Signed-off-by: SerenaFeng --- testapi/setup.cfg | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'testapi/setup.cfg') diff --git a/testapi/setup.cfg b/testapi/setup.cfg index ab1ef55..030e05a 100644 --- a/testapi/setup.cfg +++ b/testapi/setup.cfg @@ -23,18 +23,10 @@ setup-hooks = [files] packages = opnfv_testapi -package_data = - opnfv_testapi = - static/*.* - static/*/*.* - static/*/*/*.* - static/*/*/*/*.* - static/*/*/*/*/*.* - static/*/*/*/*/*/*.* - static/*/*/*/*/*/*/*.* + data_files = - /etc/opnfv_testapi = - etc/config.ini + etc/opnfv_testapi = etc/config.ini + /usr/local/share/opnfv_testapi = 3rd_party/static/* [entry_points] console_scripts = @@ -44,4 +36,3 @@ console_scripts = tag_build = tag_date = 0 tag_svn_revision = 0 - -- cgit 1.2.3-korg