-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·79 lines (65 loc) · 2.26 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
77
78
79
#!/usr/bin/env python
"""
This is a setup script for pyJASPAR: a tool for DNA sequence background generation
This code is free software; you can redistribute it and/or modify it under the terms of the
BSD License (see the file LICENSE included with the distribution).
@author: Aziz Khan
@email: [email protected]
"""
import os
from distutils.core import setup
from setuptools import find_packages
#from pyjaspar import __version__ as VERSION
import codecs
CLASSIFIERS = [
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Software Development :: Libraries :: Python Modules',
]
install_requires = [
'wheel',
'biopython',
]
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
#def readme():
# with open('README.rst') as f:
# return f.read()
def readme(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="pyjaspar",
description="A serverless interface to Biopython to access different versions of JASPAR database",
version=get_version("pyjaspar/__init__.py"),
author="Aziz Khan",
license='GPL',
platforms='linux/unix',
author_email="[email protected]",
url="https://github.com/asntech/pyjaspar",
long_description=readme("README.rst"),
long_description_content_type='text/x-rst',
package_dir={'pyjaspar': 'pyjaspar'},
packages=['pyjaspar',
'pyjaspar.data'
],
package_data={'pyjaspar': ['pyjaspar/data/*.sqlite',]},
include_package_data=True,
install_requires = install_requires,
classifiers=CLASSIFIERS,
)