/
setup.py
71 lines (66 loc) · 2.12 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
import sys
import numpy
from setuptools import setup, find_packages
from distutils.extension import Extension
try:
from Cython.Build import cythonize
except ImportError:
use_cython = False
else:
use_cython = True
cmdclass = {}
ext_modules = []
if use_cython:
ext_modules += [Extension("pyprophet._optimized", ["pyprophet/_optimized.pyx"])]
ext_modules = cythonize(ext_modules)
else:
ext_modules += [Extension("pyprophet._optimized", ["pyprophet/_optimized.c"])]
# read the contents of README for PyPI
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(name='pyprophet',
version="2.2.5",
author="The PyProphet Developers",
author_email="rocksportrocker@gmail.com",
description="PyProphet: Semi-supervised learning and scoring of OpenSWATH results.",
long_description=long_description,
long_description_content_type='text/markdown',
license="BSD",
url="https://github.com/PyProphet/pyprophet",
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
include_dirs=[numpy.get_include()],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Chemistry',
],
zip_safe=False,
install_requires=[
"Click",
"numpy >= 1.9.0",
"scipy",
"pandas >= 0.17",
"cython",
"numexpr >= 2.1",
"scikit-learn >= 0.17",
"xgboost",
"hyperopt",
"statsmodels >= 0.8.0",
"matplotlib",
"tabulate",
"pypdf"
],
entry_points={
'console_scripts': [
"pyprophet=pyprophet.main:cli",
]
},
ext_modules=ext_modules,
)