@@ -0,0 +1,1922 @@
+# -*- coding: utf-8 -*-%0Afrom codecs import open%0Aimport re%0Afrom setuptools import setup%0A%0A%0Adef read_attributes(string, *names):%0A    regex_tpl = r'%5E__%7B%7D__%5Cs*=%5Cs*%5B%5C'%22%5D(%5B%5E%5C'%22%5D*)%5B%5C'%22%5D'%0A%0A    def read(name):%0A        regex = regex_tpl.format(name)%0A        return re.search(regex, string, re.MULTILINE).group(1)%0A%0A    return %5Bread(n) for n in names%5D%0A%0Awith open('main.py', 'r') as fd:%0A    content = fd.read()%0A    name, version, author, email, _license = read_attributes(%0A        content,%0A        'title',%0A        'version',%0A        'author',%0A        'email',%0A        'license'%0A    )%0A%0Awith open('README.rst', 'r', 'utf-8') as f:%0A    readme = f.read()%0A%0A%0Ainstall_requires = %5B%0A    'Flask',%0A    'Flask-SQLAlchemy',%0A    'Flask-WTF',%0A    'cached-property',%0A    'spam-lists'%0A%5D%0A%0Atests_require = %5B'nose-parameterized'%5D%0A%0Asetup(%0A    name=name,%0A    version=version,%0A    description='A url shortener application',%0A    long_description=readme,%0A    author=author,%0A    author_email=email,%0A    url='https://github.com/piotr-rusin/url-shortener',%0A    packages=%5B'url_shortener', 'test', 'test.unit'%5D,%0A    package_data=%7B%0A        'url_shortener': %5B'templates/*.html'%5D,%0A    %7D,%0A    include_package_data=True,%0A    install_requires=install_requires,%0A    license=_license,%0A    classifiers=(%0A        'Development Status :: 4 - Beta',%0A        'Environment :: Web Environment',%0A        'Framework :: Flask',%0A        'Natural Language :: English',%0A        'License :: OSI Approved :: Apache Software License',%0A        'Programming Language :: Python :: 3.4',%0A        'Topic :: Internet :: WWW/HTTP',%0A        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',%0A        'Topic :: Internet :: WWW/HTTP :: Site Management',%0A        'Topic :: Internet :: WWW/HTTP :: Site Management :: Link Checking'%0A    ),%0A    keywords='url-shortener',%0A    tests_require=tests_require,%0A    extras_require=%7B%0A        'test': tests_require,%0A        'dev': %5B'pylint', 'restview'%5D%0A    %7D,%0A)%0A

Add setup.py file