-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
81 lines (75 loc) · 2.96 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
80
81
""" This is the setup.py script for setting up the package and fulfilling any
necessary requirements.
References:
https://github.com/pypa/sampleproject/blob/master/setup.py
https://github.com/biopython/biopython/blob/master/setup.py
http://python-packaging.readthedocs.io/en/latest/index.html
"""
# Modules Used
from setuptools import setup, find_packages
from codecs import open # To use a consistent encoding
from os import path
import os
import sys
import pkg_resources
from importlib import import_module
# Set the home path of the setup script/package
home = path.abspath(path.dirname(__file__))
name = 'OrthoEvol'
def readme():
"""Get the long description from the README file."""
with open(path.join(home, 'README.rst'), encoding='utf-8') as f:
return f.read()
# Setup the package by adding information to these parameters
setup(
name=name,
author='Rob Gilmore & Shaurita Hutchins',
author_email='datasnakes@gmail.com',
description="This package aids in the analysis of orthologous genes.",
version='1.0.0b1',
long_description=readme(),
url='https://github.com/datasnakes/OrthoEvolution',
license='MIT',
keywords='bioinformatics science evolution orthology psychiatry genetics',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
'Programming Language :: Python :: 3',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Natural Language :: English',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Framework :: Flask',
'Framework :: Cookiecutter'
],
# Packages will be automatically found if not in this list.
packages=find_packages(exclude=['docs', 'examples', 'tests']),
include_package_data=True,
python_requires='~=3.5',
entry_points={
'console_scripts': [
'orthoevol=OrthoEvol.Orthologs.command_line:main'
]
},
project_urls={
'Docs': 'https://orthoevolution.readthedocs.io/',
'Releases': 'https://github.com/datasnakes/OrthoEvolution/releases',
'Bug Reports': 'https://github.com/datasnakes/OrthoEvolution/issues',
'Source': 'https://github.com/datasnakes/OrthoEvolution/',
},
zip_safe=False,
setup_requires=['pytest-runner'],
tests_require=['pytest']
)
# Set up the permissions for the BioSQL Perl scripts
scripts = import_module("OrthoEvol.Manager.biosql.biosql_repo.scripts")
biosql_scripts = pkg_resources.resource_filename(scripts.__name__, "")
for file in os.listdir(biosql_scripts):
if '.pl' in file:
script_path = os.path.join(biosql_scripts, file)
os.chmod(script_path, mode=755)