old_contents: from setuptools import setup
  import os
  from netscan import __version__ as VERSION
  from setuptools.command.test import test as TestCommand
  
  
  class PublishCommand(TestCommand):
  	def run_tests(self):
  		print('Publishing to PyPi ...')
  		os.system("python setup.py bdist_wheel")
  		os.system("twine upload dist/netscan-{}*.whl".format(VERSION))
  
  
  setup(
  	name='netscan',
  	version=VERSION,
  
  	description='A simple Python active and passive network scanner for linux and OSX',
  	long_description=open('README.rst').read(),
  	keywords='network scanner active passive dpkt html',
  
  	# The project's main homepage.
  	url='https://github.com/walchko/netscan2',
  
  	# Author details
  	author='Kevin Walchko',
  	author_email='kevin.walchko@outlook.com',
  
  	# Choose your license
  	license='MIT',
  
  	# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
  	classifiers=[
  		# How mature is this project? Common values are
  		#   3 - Alpha
  		#   4 - Beta
  		#   5 - Production/Stable
  		'Development Status :: 4 - Beta',
  
  		# Indicate who your project is intended for
  		#'Intended Audience :: Developers',
  		#'Topic :: Software Development :: Build Tools',
  
  		# Pick your license as you wish (should match "license" above)
  		'License :: OSI Approved :: MIT License',
  
  		# Specify the Python versions you support here. In particular, ensure
  		# that you indicate whether you support Python 2, Python 3 or both.
  		'Programming Language :: Python :: 2.7',
  
  		# Operating systems this runs on
  		'Operating System :: Unix',
  		'Operating System :: MacOS :: MacOS X',
  		'Operating System :: POSIX',
  
  		# what does this do?
  		'Topic :: Utilities',
  		'Topic :: System :: Shells',
  		'Environment :: Console'
  	],
  	cmdclass={
  		# 'test': NoseTestCommand,
  		'publish': PublishCommand,
  		# 'tag': GitTagCommand,
  		# 'clean': CleanCommand
  	},
  	packages=['netscan'],
  	install_requires=['requests', 'pcapy', 'dpkt', 'netaddr'],
  	scripts=[
  		'bin/ascan.py',
  		'bin/pscan.py',
  		'bin/gethostname.py',
  		'bin/getvendor.py',
  		'bin/ipwhois'
  	]
  	# entry_points={
  	# 	'console_scripts': [
  	# 		'netscan=netscan.netscan:main',
  	# 		'capture=netscan.capture:main',
  	# 		'pscan=netscan.pscan:main',
  	# 		'ascan=netscan.ascan:main',
  	# 		'getvendor=netsan.getvendor:main',
  	# 		'gethostname=netscan.gethostname:main',
  	# 		'ipwhois=netscan.ipwhois:main'
  	# 	],
  	# },
  )
  
new_contents: from setuptools import setup
  import os
  from netscan import __version__ as VERSION
  from setuptools.command.test import test as TestCommand
  
  
  class PublishCommand(TestCommand):
  	def run_tests(self):
  		print('Publishing to PyPi ...')
  		os.system("python setup.py bdist_wheel")
  		os.system("twine upload dist/netscan-{}*.whl".format(VERSION))
  
  
  setup(
  	name='netscan',
  	version=VERSION,
  
  	description='A simple Python active and passive network scanner for linux and OSX',
  	long_description=open('README.rst').read(),
  	keywords='network scanner active passive dpkt html',
  
  	# The project's main homepage.
  	url='https://github.com/walchko/netscan2',
  
  	# Author details
  	author='Kevin Walchko',
  	author_email='kevin.walchko@outlook.com',
  
  	# Choose your license
  	license='MIT',
  
  	# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
  	classifiers=[
  		# How mature is this project? Common values are
  		#   3 - Alpha
  		#   4 - Beta
  		#   5 - Production/Stable
  		'Development Status :: 4 - Beta',
  
  		# Indicate who your project is intended for
  		#'Intended Audience :: Developers',
  		#'Topic :: Software Development :: Build Tools',
  
  		# Pick your license as you wish (should match "license" above)
  		'License :: OSI Approved :: MIT License',
  
  		# Specify the Python versions you support here. In particular, ensure
  		# that you indicate whether you support Python 2, Python 3 or both.
  		'Programming Language :: Python :: 2.7',
  
  		# Operating systems this runs on
  		'Operating System :: Unix',
  		'Operating System :: MacOS :: MacOS X',
  		'Operating System :: POSIX',
  
  		# what does this do?
  		'Topic :: Utilities',
  		'Topic :: System :: Shells',
  		'Environment :: Console'
  	],
  	cmdclass={
  		# 'test': NoseTestCommand,
  		'publish': PublishCommand,
  		# 'tag': GitTagCommand,
  		# 'clean': CleanCommand
  	},
  	packages=['netscan'],
  	install_requires=['requests', 'pcapy', 'dpkt', 'netaddr'],
  	scripts=[
  		'bin/ascan.py',
  		'bin/pscan.py',
  		'bin/gethostname.py',
  		'bin/getvendor.py',
  		'bin/ipwhois.py'
  	]
  	# entry_points={
  	# 	'console_scripts': [
  	# 		'netscan=netscan.netscan:main',
  	# 		'capture=netscan.capture:main',
  	# 		'pscan=netscan.pscan:main',
  	# 		'ascan=netscan.ascan:main',
  	# 		'getvendor=netsan.getvendor:main',
  	# 		'gethostname=netscan.gethostname:main',
  	# 		'ipwhois=netscan.ipwhois:main'
  	# 	],
  	# },
  )
  
subject: Update setup.py