-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (59 loc) · 1.94 KB
/
setup.py
File metadata and controls
70 lines (59 loc) · 1.94 KB
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import re
from setuptools import setup, find_packages
if sys.argv[-1] == 'publish':
os.system('python3 setup.py sdist')
os.system('twine upload dist/*')
sys.exit()
def readme():
with open('README.rst') as readme_file:
return readme_file.read()
def find_version():
with open('jpredapi/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
return version
REQUIRES = [
"docopt >= 0.6.2",
"requests >= 2.13.0",
"retrying >= 1.3.3"
]
setup(
name='jpredapi',
version=find_version(),
author='Andrey Smelter',
author_email='andrey.smelter@gmail.com',
description='Python library for submitting jobs to JPRED - A Protein Secondary Structure Prediction Server',
keywords='JPred REST API',
license='MIT',
url='https://github.com/MoseleyBioinformaticsLab/jpredapi',
packages=find_packages(),
platforms='any',
long_description=readme(),
install_requires=REQUIRES,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Software Development :: Libraries :: Python Modules',
],
entry_points={
'console_scripts': [
'jpredapi = jpredapi.__main__:main'
]
}
)