<filename>setup.py
#!/usr/bin/env python
import sys
import os
from setuptools import setup

if "publish" in sys.argv[-1]:
    os.system("python setup.py sdist")
    os.system("twine upload dist/*")
    os.system("rm -rf dist/*")
    sys.exit()

# Load the __version__ variable without importing the package
exec(open('coco/version.py').read())

# Command-line tools
entry_points = {'console_scripts': [
    'coco = coco.coco:coco',
    'coco-sex = coco.coco:coco_sex',
    'coco-name = coco.coco:coco_name',
]}

setup(name='astrococo',
      version=__version__,
      description="astronomical coordinate conversion.",
      long_description="",
      author='<NAME>',
      author_email='<EMAIL>',
      license='MIT',
      url='https://github.com/mrtommyb/coco',
      packages=['coco'],
      install_requires=['numpy>=1.8',
                        'astroquery',
                        'astropy'
                        ],
      entry_points=entry_points,
      include_package_data=True,
      classifiers=[
          "Development Status :: 5 - Production/Stable",
          "License :: OSI Approved :: MIT License",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          "Intended Audience :: Science/Research",
          "Topic :: Scientific/Engineering :: Astronomy",
          ],
      )

<filename>setup.py
#!/usr/bin/env python
import sys
import os
from setuptools import setup

if "publish" in sys.argv[-1]:
    os.system("python setup.py sdist")
    os.system("twine upload dist/*")
    os.system("rm -rf dist/*")
    sys.exit()

# Load the __version__ variable without importing the package
exec(open('coco/version.py').read())

# Command-line tools
entry_points = {'console_scripts': [
    'coco = coco.coco:coco',
    'coco-sex = coco.coco:coco_sex',
    'coco-name = coco.coco:coco_name',
]}

setup(name='astrococo',
      version=__version__,
      description="astronomical coordinate conversion.",
      long_description="",
      author='<NAME>',
      author_email='<EMAIL>',
      license='MIT',
      url='https://github.com/mrtommyb/coco',
      packages=['coco'],
      install_requires=['numpy>=1.8',
                        'astroquery',
                        'astropy'
                        ],
      entry_points=entry_points,
      include_package_data=True,
      classifiers=[
          "Development Status :: 5 - Production/Stable",
          "License :: OSI Approved :: MIT License",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          "Intended Audience :: Science/Research",
          "Topic :: Scientific/Engineering :: Astronomy",
          ],
      )

#!/usr/bin/env python # Load the __version__ variable without importing the package # Command-line tools