-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
32 lines (29 loc) · 916 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from setuptools import setup, find_packages
import sys
import os
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'schematool'))
from constants import Constants
# from subprocess import Popen, PIPE
# import sys
# def call_git_describe(abbrev=0):
# try:
# p = Popen(['git', 'describe', '--abbrev=%d' % abbrev],
# stdout=PIPE, stderr=PIPE)
# p.stderr.close()
# line = p.stdout.readlines()[0]
# return line.strip()
# except:
# print 'Cannot get version.'
# sys.exit(1)
setup(
name='schema-tool',
author='AppNexus',
author_email='engineering@appnexus.com',
url='http://appnexus.com',
description='A schema tool to manage alters and migrations.',
version=Constants.VERSION,
packages=find_packages(),
entry_points = {
'console_scripts': ['schema=schematool.schema:main'],
}
)