forked from macarthur-lab/obo_parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (59 loc) · 1.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
import os
import sys
try:
from setuptools import setup
except ImportError:
print("WARNING: setuptools not installed. Will try using distutils instead..")
from distutils.core import setup
command = sys.argv[-1]
if command == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
elif command == "coverage":
try:
import coverage
except:
sys.exit("coverage.py not installed (pip install --user coverage)")
setup_py_path = os.path.abspath(__file__)
os.system('coverage run -m unittest discover')
os.system('coverage html')
os.system('open htmlcov/index.html')
print("Done computing coverage")
sys.exit()
long_description = ''
if command not in ['test', 'coverage']:
long_description = open('README.rst').read()
setup(
name='obo_parser',
version="0.9",
description='.obo format parser',
long_description=long_description,
author='Ben Weisburd',
author_email='[email protected]',
url='https://github.com/macarthur-lab/obo_parser',
py_modules=['obo_parser'],
include_package_data=True,
zip_safe=False,
install_requires=[
'tqdm',
'future',
],
license="MIT",
keywords='obo, bioinformatics, parser',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
test_suite='tests',
)