-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
65 lines (54 loc) · 2 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 19 18:38:46 2020
@author: usingh
"""
import setuptools
import os
import sys
#exit if python 2
if sys.version_info.major != 3:
raise EnvironmentError("""This version of PlncPRO requires python 3.5 or higher. Please upgrade your python.\n To use PlncPRO with py2 please download older version from ccbb.jnu.ac.in/plncpro/index.html""")
#read description
with open("README.md", "r") as fh:
long_description = fh.read()
#read version info
#cwd =os.path.abspath(os.path.dirname("__file__"))
#version = {}
#with open(os.path.join(cwd, "plncpro", "version.py")) as fp:
# exec(fp.read(), version)
#version = version["__version__"]
#if version is None:
# print("Error: version is missing. Exiting...", file=sys.stderr)
# sys.exit(1)
setuptools.setup(
name="plncpro",
#version=version,
version=open("plncpro/_version.py").readlines()[-1].split()[-1].strip("\"'"),
author="Urminder Singh",
author_email="usingh@iastate.edu",
description="PlncPRO (Plant Long Non-Coding rna Prediction by Random fOrests) is a program to classify coding (mRNAs) and long non-coding transcripts (lncRNAs).",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/urmi-21/PLncPRO",
packages=setuptools.find_packages(),
include_package_data=True,
package_data={#add framefinder files
"": ["*.model", "framefinder", "plncpro_format_ff.sh"]
},
scripts=['plncpro/scripts/plncpro_format_ff.sh'],
entry_points={
'console_scripts': [
'plncpro = plncpro.__main__:main'
]
},
install_requires=[line.rstrip() for line in open("requirements.txt", "rt")],
tests_require=["pytest"],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
],
python_requires='>=3.5',
)