From acf339f2840d0fe7a46187a0597704cf5b486214 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Tue, 13 Dec 2016 12:31:39 +0100 Subject: Make SFC installable as a python module New directory structure: /sfc /sfc/lib/ /sfc/tests /sfc/tests/functest JIRA: SFC-60 After installing sfc, the imports would be: import sfc.tests.functest.x import sfc.lib.x Change-Id: Ib15172239aefdef65056d6598210a1b28a4b2eff Signed-off-by: jose.lausuch --- setup.py | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index e602f9f6..07de7888 100644 --- a/setup.py +++ b/setup.py @@ -1,25 +1,20 @@ -import os -from setuptools import setup +############################################################################## +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## -# Utility function to read the README file. -# Used for the long_description. It's nice, because now 1) we have a top level -# README file and 2) it's easier to type in the README file than to put a raw -# string in below ... +from setuptools import setup, find_packages -def read(fname): - return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( - name="vnf manager simulator", - version="1.0", - author="Manuel Buil, Brady A. Johnson", - author_email="manuel.buil@ericsson.com, brady.allen.johnson@ericsson.com", - description=("A script which simulates an orchestrator"), - license="Apache License Version 2.0", - keywords="example documentation tutorial", - url="https://gerrit.opnfv.org/gerrit/#/c/2519", - packages=[".."], - scripts=[".."], - long_description=read('README'), + name="sfc", + version="danube", + packages=find_packages(), + include_package_data=True, + package_data={ + }, + url="https://www.opnfv.org" ) -- cgit 1.2.3-korg