forked from genouest/biomaj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
84 lines (77 loc) · 2.92 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
78
79
80
81
82
83
84
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
from distutils.command.install import install
import os
class post_install(install):
def run(self):
install.run(self)
from biomaj.schema_version import SchemaVersion
SchemaVersion.migrate_pendings()
here = os.path.abspath(os.path.dirname(__file__))
try:
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
except UnicodeDecodeError:
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt'), encoding='utf-8') as f:
CHANGES = f.read()
config = {
'description': 'BioMAJ',
'long_description': README + '\n\n' + CHANGES,
'author': 'Olivier Sallou',
'url': 'http://biomaj.genouest.org',
'download_url': 'http://biomaj.genouest.org',
'author_email': '[email protected]',
'version': '3.1.0',
'classifiers': [
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4'
],
'install_requires': [
'biomaj_cli',
'biomaj_core',
'biomaj_user',
'biomaj_download',
'biomaj_process',
'pymongo>=3.2',
'pycurl',
'py-bcrypt',
'drmaa',
'future',
'tabulate',
'requests',
'redis',
'elasticsearch',
'influxdb'
],
'tests_require': ['nose', 'mock'],
'test_suite': 'nose.collector',
'packages': find_packages(),
'include_package_data': True,
'scripts': ['scripts/biomaj_migrate_database.py'],
'name': 'biomaj',
'cmdclass': {'install': post_install},
}
setup(**config)