CLI: renamed the python sdist as 'python-ostinato'; marked development status as Beta; classified it for use with python 2.7 only

This commit is contained in:
Srivats P. 2014-06-14 17:02:40 +05:30
parent 288380227e
commit 278a85d606
2 changed files with 11 additions and 9 deletions

View File

@ -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 Documentation is available in the wiki at http://ostinato.org

View File

@ -28,8 +28,8 @@ def read(fname):
def ensure_cwd(): def ensure_cwd():
if os.path.split(os.getcwd())[1] != 'binding': if os.path.split(os.getcwd())[1] != 'binding':
print 'ERROR: This script needs to be run from the binding directory' print('ERROR: This script needs to be run from the binding directory')
print 'Current Working Directory is %s' % os.getcwd() print('Current Working Directory is %s' % os.getcwd())
sys.exit(1) sys.exit(1)
class sdist(_sdist): class sdist(_sdist):
@ -49,14 +49,15 @@ class sdist_clean(Command):
def run(self): def run(self):
ensure_cwd() ensure_cwd()
shutil.rmtree('dist', ignore_errors = True) 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 ------- # # ------- script starts from here ------- #
with open(os.path.join(os.path.dirname(__file__), 'pkg_info.json')) as f: with open(os.path.join(os.path.dirname(__file__), 'pkg_info.json')) as f:
pkg_info = json.load(f) pkg_info = json.load(f)
setup(name = 'ostinato', setup(name = 'python-ostinato',
version = pkg_info['version'], version = pkg_info['version'],
author = 'Srivats P', author = 'Srivats P',
author_email = 'pstavirs@gmail.com', author_email = 'pstavirs@gmail.com',
@ -70,7 +71,8 @@ setup(name = 'ostinato',
package_data = {'ostinato': ['pkg_info.json', 'LICENSE.txt']}, package_data = {'ostinato': ['pkg_info.json', 'LICENSE.txt']},
platforms = ['Any'], platforms = ['Any'],
classifiers = [ classifiers = [
'Development Status :: 5 - Production/Stable', 'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'Intended Audience :: Telecommunications Industry', 'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Topic :: Software Development :: Testing :: Traffic Generation', 'Topic :: Software Development :: Testing :: Traffic Generation',