forked from adadiehl/mapGL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
89 lines (79 loc) · 2.55 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
82
83
84
85
86
87
88
89
import sys
if sys.version_info < (2, 7):
sys.exit("ERROR: mapGL requires Python 2.7 or greater")
elif sys.version_info > (3, ) and sys.version_info < (3, 3):
sys.exit("ERROR: mapGL requires Python 3.3 or greater")
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from pathlib import Path
from glob import glob
def readme():
if sys.version_info > (3, ):
with open(Path(__file__).parent.resolve() / 'README.md', encoding='utf-8') as md:
return md.read()
else:
with open('README.md') as md:
return md.read()
def main():
metadata = dict(
name="mapGL",
version="1.3.0",
author="Adam Diehl",
author_email="[email protected]",
description="Prediction of lineage-specific gain and loss of sequence elements using phylogenetic maximum parsimony.",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/adadiehl/mapGL",
packages = find_packages(),
package_data = {
'mapGL': [
"LICENSE",
"CODE_OF_CONDUCT.md"
]
},
setup_requires=[
'numpy',
'bx-python',
#'six',
#'cython'
],
install_requires=[
'numpy',
'six',
'bx-python',
],
entry_points={
'console_scripts': [
'mapGL.py = map_GL.mapGL:main'
]
},
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Natural Language :: English"
],
keywords = "phylogenetics, evolution, ancestral reconstruction",
include_package_data=True,
zip_safe=False,
)
setup(**metadata)
# ---- Monkey patches -------------------------------------------------------
def monkey_patch_numpy():
# Numpy pushes its tests into every importers namespace, yeccch.
try:
import numpy
numpy.test = None
except:
pass
if __name__ == "__main__":
monkey_patch_numpy()
main()