# coding: utf-8

import os
import re

from setuptools import setup, Command

here = os.path.abspath(os.path.dirname(__file__))

version = "0.0.0"
with open(os.path.join(here, "CHANGES.txt")) as changes:
    for line in changes:
        version = line.strip()
        if re.search('^[0-9]+\.[0-9]+(\.[0-9]+)?$', version):
            break


class VersionCommand(Command):
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        print(version)


setup(
    name='prettyconf',
    version=version,
    description='Separation of settings from code.',
    author="Osvaldo Santana Neto", author_email="prettyconf@osantana.me",
    license="MIT",
    packages=['prettyconf'],
    platforms='any',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Framework :: Django',
        'Framework :: Flask',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries',
    ],
    url='http://github.com/osantana/prettyconf',
    download_url='https://github.com/osantana/prettyconf/tarball/{}'.format(version),
    cmdclass={'version': VersionCommand},
    test_suite="tests",
)

@@ -1174,9 +1174,271 @@
  :: 
-3
+2',%0A        'Programming Language :: Python :: 2.7',%0A        'Programming Language :: Python :: 3',%0A        'Programming Language :: Python :: 3.4',%0A        'Programming Language :: Python :: 3.5',%0A        'Programming Language :: Python :: Implementation :: PyPy
 ',%0A 

Update trove classifiers to include detailed python version support