#! /usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from setuptools import setup, find_packages
from codecs import open
from os import path, system
from re import compile as re_compile

# For convenience.
if sys.argv[-1] == "publish":
    system("python setup.py sdist upload")
    sys.exit()

def read(filename):
    kwds = {"encoding": "utf-8"} if sys.version_info[0] >= 3 else {}
    with open(filename, **kwds) as fp:
        contents = fp.read()
    return contents

# Get the version information.
here = path.abspath(path.dirname(__file__))
vre = re_compile("__version__ = \"(.*?)\"")
version = vre.findall(read(path.join(here, "code", "__init__.py")))[0]


setup(
    name="AnniesLasso",
    version=version,
    #author="",
    #author_email="",  # <-- Direct complaints to this address.
    description="The Cannon 2: Compressed sensing edition",
    long_description=read(path.join(here, "README.md")),
    url="https://github.com/davidwhogg/AnniesLasso",
    license="MIT",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3.4",
        "Topic :: Scientific/Engineering :: Astronomy",
        "Topic :: Scientific/Engineering :: Physics"
    ],
    keywords="Cannon Annies Lasso",
    packages=find_packages(exclude=["documents", "tests"]),
    install_requires=["numpy", "scipy", "six"],
    extras_require={
        "test": ["coverage"]
    },
    package_data={
        "": ["LICENSE"],
    },
    include_package_data=True,
    data_files=None,
    entry_points=None
)
@@ -635,20 +635,27 @@
 (here, %22
-code
+AnniesLasso
 %22, %22__in
@@ -1739,8 +1739,9 @@
 s=None%0A)
+%0A

Build fix