-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
executable file
·77 lines (70 loc) · 2.58 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
72
73
74
75
76
77
"""Install GeneFlow Workflow Engine."""
import os
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(BASE_DIR, 'README.md'), encoding='utf-8').read()
VERSION = open(os.path.join(BASE_DIR, 'VERSION'), encoding='utf-8').read()
INSTALL_REQUIRES = [
pkg for pkg in open('requirements.txt').readlines()
]
PYTHON_REQUIRES = '>=3.5.*'
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
develop.run(self)
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)
setup(
name='geneflow',
version=VERSION,
description="A light-weight platform-agnostic workflow engine for scientific computing.",
long_description=README,
classifiers=[
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Operating System :: POSIX :: BSD',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering :: Bio-Informatics'
],
keywords='workflow agave bioinformatics',
author='GeneFlow Development Team',
author_email='[email protected]',
url='https://github.com/CDCgov/geneflow2',
license='Apache 2.0',
packages=find_packages('src', exclude=["*.test"]),
package_dir={'': 'src'},
package_data={'': ['data/sql/geneflow.sql',
'data/sql/geneflow-sqlite.sql',
'data/templates/agave-app-def.json.j2.j2',
'data/templates/wrapper-script.sh.j2',
'data/templates/test.sh.j2']},
include_package_data=True,
zip_safe=False,
install_requires=INSTALL_REQUIRES,
extras_require={
'tapis': ['agavepy==1.0.0a11'],
'hpc': ['drmaa']
},
python_requires=PYTHON_REQUIRES,
cmdclass={
'develop': PostDevelopCommand,
'install': PostInstallCommand
},
entry_points={
'console_scripts': [
'geneflow = geneflow.__main__:main',
'gf = geneflow.__main__:main'
]
}
)