Source

sadisplay / setup.py

# -*- coding: utf-8 -*-
import re
import os
from setuptools import setup


here = os.path.dirname(os.path.abspath(__file__))
version_re = re.compile(r"__version__ = (\'.*?\')")
f = open(os.path.join(os.path.join(here, 'sadisplay'), '__init__.py'))
version = None
for line in f:
    match = version_re.search(line)
    if match:
        version = eval(match.group(1))
        break
else:
    raise Exception("Cannot find version in sadisplay.py")
f.close()


setup(
    name='sadisplay',
    version=version,
    url='http://bitbucket.org/estin/sadisplay',
    license='BSD',
    author='Evgeniy Tatarkin',
    author_email='tatarkin.evg@gmail.com',
    description='SqlAlchemy schema display script',
    long_description=open(os.path.join(here, 'README.rst')).read(),
    packages=['sadisplay'],
    zip_safe=False,
    platforms='any',
    install_requires=[
        'SQLAlchemy >= 0.5',
    ],
    entry_points={
        'console_scripts':
            ['sadisplay = sadisplay.reflect:run', ]
    },
    classifiers=[
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
    ]
)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.