-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·55 lines (48 loc) · 1.89 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys, os
import re
from setuptools import setup
from setuptools.command.install import install as _install
from subprocess import call
version_file = 'matchbox_api_utils/_version.py'
exec(open(version_file).read())
def _post_install(dir):
call([sys.executable, 'postinstall.py'])
class install(_install):
def run(self):
_install.do_egg_install(self)
self.execute(_post_install, (self.install_lib,),
msg="Running post install task")
def readme():
with open('README.rst') as fh:
return fh.read()
config = {
'name' : 'matchbox_api_utils',
'description' : ('MATCHBox API Utlilites Package'),
'long_description' : readme(),
'version' : __version__,
'author' : 'Dave Sims',
'author_email' : '[email protected]',
'download_url' : 'https://github.com/drmrgd/matchbox_api_utils.git',
'url' : 'https://github.com/drmrgd/matchbox_api_utils.git',
'test_suite' : 'nose.collector',
'tests_require' : ['nose'],
'packages' : ['matchbox_api_utils'],
'python_requires' : '>=3.6',
'install_requires' : ['requests',
'asyncio',
'termcolor'
],
'scripts' : ['bin/map_msn_psn.py',
'bin/matchbox_json_dump.py',
'bin/match_variant_frequency.py',
'bin/matchbox_patient_summary.py',
'bin/match_arm_enrollment_summary.py',
],
'include_package_data' : True,
'zip_safe' : False,
'license' : 'MIT',
'cmdclass' : {'install' : install}
}
setup(**config)