-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·71 lines (60 loc) · 2.07 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -*- coding: utf-8 -*-
"""
Setup Script for GRASP
"""
import os
import codecs
from subprocess import call
import setuptools
from setuptools import setup
from setuptools.command.install import install
log = setuptools.distutils.log
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
# Initialize the config on install
class CustomInstall(install):
"""Run the config initialization on install."""
def run(self):
"""Run install script."""
install.run(self)
if not os.path.exists(os.path.expanduser('~/.grasp')):
install.run(self)
call(['grasp', 'config', '--init'])
setup(
name='grasp',
version='0.4.0b1',
description='A Simple GRASP (grasp.nhlbi.nih.gov) API based on SQLAlchemy and Pandas',
long_description=long_description,
url='https://github.com/MikeDacre/grasp',
include_package_data=True,
author='Michael Dacre',
author_email='[email protected]',
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Environment :: Console',
'Operating System :: Linux',
'Natural Language :: English',
'Topic :: Database',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='grasp sqlalchemy',
install_requires=['sqlalchemy', 'pandas', 'tqdm', 'python-dateutil',
'py-flags', 'myvariant', 'tabulate'],
packages=['grasp'],
entry_points={
'console_scripts': [
'grasp = grasp.__main__:main',
]
},
cmdclass={'install': CustomInstall},
)