#!/usr/bin/env python3
import re
import sys

from setuptools import setup, Command, find_packages


INIT_FILE = 'orbital/__init__.py'
init_data = open(INIT_FILE).read()

metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_data))

AUTHOR_EMAIL = metadata['author']
VERSION = metadata['version']
LICENSE = metadata['license']
DESCRIPTION = metadata['description']

AUTHOR, EMAIL = re.match(r'(.*) <(.*)>', AUTHOR_EMAIL).groups()

requires = ['numpy', 'scipy', 'astropy', 'matplotlib']


class PyTest(Command):
    """Allow 'python setup.py test' to run without first installing pytest"""
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        import subprocess
        import sys
        errno = subprocess.call([sys.executable, 'runtests.py'])
        raise SystemExit(errno)

setup(name='OrbitalPy',
      version=VERSION,
      description=DESCRIPTION,
      long_description=open('README').read(),
      author=AUTHOR,
      author_email=EMAIL,
      url='https://github.com/RazerM/orbital',
      packages=find_packages(),
      cmdclass={'test': PyTest},
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Intended Audience :: Science/Research',
          'Topic :: Scientific/Engineering :: Astronomy',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.0',
          'Programming Language :: Python :: 3.1',
          'Programming Language :: Python :: 3.2',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4'
      ],
      license=LICENSE,
      install_requires=requires)

@@ -872,16 +872,21 @@
 %0A%0Asetup(
+%0A    
 name='Or
@@ -899,18 +899,16 @@
 y',%0A    
-  
 version=
@@ -920,18 +920,16 @@
 ON,%0A    
- 
- 
 descript
@@ -945,18 +945,16 @@
 IPTION,%0A
-  
     long
@@ -989,26 +989,24 @@
 read(),%0A    
- 
- 
 author=AUTHO
@@ -1008,18 +1008,16 @@
 AUTHOR,%0A
-  
     auth
@@ -1036,18 +1036,16 @@
 IL,%0A    
- 
- 
 url='htt
@@ -1081,18 +1081,16 @@
 l',%0A    
-  
 packages
@@ -1111,18 +1111,16 @@
 (),%0A    
- 
- 
 cmdclass
@@ -1142,18 +1142,16 @@
 t%7D,%0A    
-  
 classifi
@@ -1164,18 +1164,16 @@
         
- 
- 
 'Develop
@@ -1199,18 +1199,16 @@
 Alpha',%0A
-  
         
@@ -1256,18 +1256,16 @@
         
- 
- 
 'Topic :
@@ -1304,18 +1304,16 @@
 onomy',%0A
-  
         
@@ -1354,34 +1354,32 @@
 cense',%0A        
-  
 'Programming Lan
@@ -1401,218 +1401,14 @@
  :: 
-3',%0A          'Programming Language :: Python :: 3.0',%0A          'Programming Language :: Python :: 3.1',%0A          'Programming Language :: Python :: 3.2',%0A          'Programming Language :: Python :: 3.3
+2.7
 ',%0A
-  
     
@@ -1451,23 +1451,18 @@
 :: 3
-.4'%0A  
+',%0A
     %5D,%0A
-  
     
@@ -1478,18 +1478,16 @@
 ICENSE,%0A
-  
     inst

Make PyPI classifiers clearer