Debian Codegraph @

setup.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2 import re
3 import os
4
5 try:
6 from setuptools import setup
7 except ImportError:
8 from distutils.core import setup
9
10 here = os.path.dirname(os.path.abspath(__file__))
11 version_re = re.compile(r"__version__ = (\'.*?\')")
12 with open(os.path.join(os.path.join(here, 'sadisplay'), '__init__.py')) as f:
13 version = None
14 for line in f:
15 match = version_re.search(line)
16 if match:
17 version = eval(match.group(1))
18 break
19 else:
20 raise Exception("Cannot find version in sadisplay.py")
21
22 setup(
23 name='sadisplay',
24 version=version,
25 url='http://bitbucket.org/estin/sadisplay',
26 license='BSD',
27 author='Evgeniy Tatarkin',
28 author_email='[email protected]',
29 description='SqlAlchemy schema display script',
30 long_description=open(os.path.join(here, 'README.rst')).read(),
31 packages=[
32 'sadisplay',
33 ],
34 zip_safe=False,
35 platforms='any',
36 install_requires=[
37 'SQLAlchemy >= 0.5',
38 ],
39 entry_points={
40 'console_scripts': [
41 'sadisplay = sadisplay.reflect:run',
42 ],
43 },
44 classifiers=[
45 'Intended Audience :: Developers',
46 'License :: OSI Approved :: BSD License',
47 'Operating System :: OS Independent',
48 'Programming Language :: Python',
49 'Programming Language :: Python :: 3',
50 ], )