-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
54 lines (44 loc) · 1.56 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
from setuptools import find_packages, setup
# Dependencies required to use your package
INSTALL_REQS = ['ipr >=3.0.0, <4.0.0', 'pandas', 'graphkb', 'matplotlib', 'seaborn']
# Dependencies required for development
DEV_REQS = ['flake8', 'black', 'mypy']
# Dependencies required only for running tests
TEST_REQS = ['pytest', 'pytest-cov']
# Dependencies required for deploying to an index server
DEPLOYMENT_REQS = ['twine', 'wheel', 'm2r']
long_description = ''
long_description_content_type = 'text/markdown'
try:
import re
import m2r
long_description = m2r.parse_from_file('README.md')
long_description = re.sub(
r'.. code-block::.*', '.. code::', long_description
) # pyshop has issues with fenced code blocks
long_description_content_type = 'text/rst'
except ImportError:
with open('README.md', 'r') as fh:
long_description = fh.read()
setup(
name='pori_cbioportal',
version='0.1.1',
packages=find_packages(),
install_requires=INSTALL_REQS,
extras_require={
'dev': TEST_REQS + DEPLOYMENT_REQS + DEV_REQS,
'deploy': DEPLOYMENT_REQS,
'test': TEST_REQS,
},
long_description=long_description,
long_description_content_type=long_description_content_type,
python_requires='>=3',
author='creisle',
author_email='[email protected]',
maintainer='creisle',
maintainer_email='[email protected]',
dependency_links=[],
test_suite='tests',
tests_require=TEST_REQS,
entry_points={'console_scripts': ['pori_cbioportal=pori_cbioportal.main:command_interface']},
)