-
Notifications
You must be signed in to change notification settings - Fork 30
/
setup.py
76 lines (66 loc) · 2.33 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.10:
sys.exit("Error: Python 3.10 or later 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)
with open("requirements.txt", "r") as FH:
REQUIREMENTS = FH.readlines()
setuptools.setup(
name='ontobio',
version=version,
author='Chris Mungall',
author_email='cmungall@gmail.com',
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=setuptools.find_packages(),
package_data={"ontobio": ["ontobio/config.yaml"]},
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'
],
include_package_data=True,
# Dependencies
install_requires=[r for r in REQUIREMENTS if not r.startswith("#")],
# 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',
'bin/validate.py',
'bin/materialize.py',
'bin/clear-cache.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',
# ],
#},
)