-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
38 lines (30 loc) · 1.15 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
import setuptools as st
import re
requirements = [
'docopt',
'requests',
'tqdm',
'jsonschema'
]
def _readme() -> str:
with open('README.rst') as readme_file:
return readme_file.read()
def _get_version() -> str:
with open('src/kegg_pull/__init__.py', 'r') as fd:
version: str = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
return version
st.setup(
name='kegg_pull',
version=_get_version(),
package_dir={'': 'src'},
packages=st.find_packages('src', exclude=['dev', 'docs']),
install_requires=requirements,
entry_points={'console_scripts': ['kegg_pull = kegg_pull.__main__:main']},
author='Erik Huckvale',
author_email='[email protected]',
url='https://github.com/MoseleyBioinformaticsLab/KEGGpull',
description='Pulls any and all entries from any and all KEGG databases, pulls KEGG entry IDs, and wraps all the KEGG REST API operations in both Python API and the command line.',
long_description_content_type='text/x-rst',
long_description=_readme())