-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
65 lines (61 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
from distutils.core import setup
from setuptools import find_namespace_packages
from setuptools.command.install import install
from sistr.version import __version__
from sistr.sistr_cmd import setup_sistr_dbs
classifiers = """
Development Status :: Release
Environment :: Console
License :: OSI Approved :: Apache Software License
Intended Audience :: Science/Research
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Bio-Informatics
Programming Language :: Python
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: Implementation :: CPython
Operating System :: POSIX :: Linux
""".strip().split('\n')
class CustomInstallCommand(install):
"""Pre-installation of SISTR databases for installation mode"""
def run(self):
install.run(self)
self.do_egg_install()
print("SISTR DB Setup ...")
setup_sistr_dbs()
print("Done")
setup(
name='sistr_cmd',
version=__version__,
packages=find_namespace_packages(exclude=['tests']),
url='https://github.com/phac-nml/sistr_cmd',
license='Apache 2.0',
author='Peter Kruczkiewicz',
author_email='[email protected]',
description=('Serovar predictions from Salmonella whole-genome sequence assemblies by determination of antigen gene'
'and cgMLST gene alleles using BLAST. Mash MinHash can also be used for serovar prediction.'),
keywords='Salmonella serotyping genotyping cgMLST BLAST Mash MinHash',
classifiers=classifiers,
package_dir={'sistr':'sistr'},
include_package_data=True,
cmdclass={
'install': CustomInstallCommand
},
install_requires=[
'numpy>=1.11.1,<2',
'tables>=3.3.0,<4',
'pandas>=0.22.0,<3',
'pycurl>=7.43.0,<8',
'scipy>=1.1.0,<2',
],
extras_require={
'test': ['pytest>=2.9.2',],
},
entry_points={
'console_scripts': [
'sistr=sistr.sistr_cmd:main',
'sistr_init=sistr.sistr_cmd:setup_sistr_dbs'
],
},
)