forked from biolink/ontobio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (67 loc) · 2.25 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
import os
import sys
import re
import subprocess
import setuptools
if sys.version_info.major < 3:
sys.exit("Error: Python 3 is required")
directory = os.path.dirname(os.path.abspath(__file__))
# version
init_path = os.path.join(directory, 'ontobio', '__init__.py')
with open(init_path) as read_file:
text = read_file.read()
pattern = re.compile(r"^__version__ = ['\"]([^'\"]*)['\"]", re.MULTILINE)
version = pattern.search(text).group(1)
setuptools.setup(
name='ontobio',
version=version,
author='Chris Mungall',
author_email='[email protected]',
url='https://github.com/biolink/ontobio',
description='Library for working with OBO Library Ontologies and associations',
long_description=open("README.rst").read(),
license='BSD',
#packages=['ontobio'],
packages=setuptools.find_packages(),
keywords='ontology graph obo owl sparql networkx network',
classifiers=[
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Information Analysis',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Visualization'
],
# Dependencies
install_requires=[
'networkx==1.11',
'jsobject',
'pyyaml',
'pysolr',
'requests',
'sparqlwrapper',
'cachier',
'prefixcommons',
'marshmallow',
'scipy',
'pandas',
'click'
],
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
extras_require={
'dev': ['plotly'],
'test': ['pytest'],
},
scripts=['bin/ogr.py', 'bin/ontobio-assoc.py', 'bin/ontobio-parse-assocs.py', 'bin/ontobio-lexmap.py', 'bin/rdfgen.py']
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
#entry_points={
# 'console_scripts': [
# 'sample=sample:main',
# ],
#},
)