From 278a85d606e20d150eae391b0094a6bf628484c0 Mon Sep 17 00:00:00 2001 From: "Srivats P." Date: Sat, 14 Jun 2014 17:02:40 +0530 Subject: [PATCH] CLI: renamed the python sdist as 'python-ostinato'; marked development status as Beta; classified it for use with python 2.7 only --- binding/README.txt | 8 ++++---- binding/setup.py | 12 +++++++----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/binding/README.txt b/binding/README.txt index e709125..30540b0 100644 --- a/binding/README.txt +++ b/binding/README.txt @@ -1,7 +1,7 @@ -======== -Ostinato -======== +=============== +python-ostinato +=============== -Ostinato provides a scripting interface to the Ostinato Packet/Traffic Generator and Analyzer +python-ostinato provides python bindings for the Ostinato Packet/Traffic Generator and Analyzer Documentation is available in the wiki at http://ostinato.org diff --git a/binding/setup.py b/binding/setup.py index 97dac8b..1089132 100644 --- a/binding/setup.py +++ b/binding/setup.py @@ -28,8 +28,8 @@ def read(fname): def ensure_cwd(): if os.path.split(os.getcwd())[1] != 'binding': - print 'ERROR: This script needs to be run from the binding directory' - print 'Current Working Directory is %s' % os.getcwd() + print('ERROR: This script needs to be run from the binding directory') + print('Current Working Directory is %s' % os.getcwd()) sys.exit(1) class sdist(_sdist): @@ -49,14 +49,15 @@ class sdist_clean(Command): def run(self): ensure_cwd() shutil.rmtree('dist', ignore_errors = True) - shutil.rmtree('ostinato.egg-info', ignore_errors = True) + shutil.rmtree('python-ostinato.egg-info', ignore_errors = True) + shutil.rmtree('python_ostinato.egg-info', ignore_errors = True) # ------- script starts from here ------- # with open(os.path.join(os.path.dirname(__file__), 'pkg_info.json')) as f: pkg_info = json.load(f) -setup(name = 'ostinato', +setup(name = 'python-ostinato', version = pkg_info['version'], author = 'Srivats P', author_email = 'pstavirs@gmail.com', @@ -70,7 +71,8 @@ setup(name = 'ostinato', package_data = {'ostinato': ['pkg_info.json', 'LICENSE.txt']}, platforms = ['Any'], classifiers = [ - 'Development Status :: 5 - Production/Stable', + 'Development Status :: 4 - Beta', + 'Programming Language :: Python :: 2.7', 'Intended Audience :: Telecommunications Industry', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Topic :: Software Development :: Testing :: Traffic Generation',