-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (66 loc) · 2.33 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
#!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages, Extension
import sys
from pathlib import Path
import numpy
# with open('README.rst') as readme_file:
# readme = readme_file.read()
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()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = ['numpy < 2.0', 'scipy >= 1.1.0', 'pandas >= 0.24', 'statsmodels',
'KDEpy', 'pybedtools', 'pyBigWig', 'h5py', 'matplotlib', 'cython']
setup_requirements = ['pytest-runner']
test_requirements = ['pytest>=3']
try:
from Cython.Build import cythonize
extensions = cythonize([
Extension("fseq2.idr_2_0_3.inv_cdf",
["fseq2/idr_2_0_3/inv_cdf.pyx", ],
include_dirs=[numpy.get_include()]),
])
except ImportError:
extensions = [
Extension("fseq2.idr_2_0_3.inv_cdf",
["fseq2/idr_2_0_3/inv_cdf.c", ],
include_dirs=[numpy.get_include()]),
]
setup(
author="Nanxiang Zhao (Samuel)",
author_email='samzhao@umich.edu',
python_requires='>=3.9',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
description="Improving the feature density based peak caller with dynamic statistics.",
long_description=readme(),
long_description_content_type="text/markdown",
scripts=['bin/fseq2'],
install_requires=requirements,
license="GNU General Public License v3",
include_package_data=True,
keywords='fseq2',
name='fseq2',
packages=find_packages(include=['fseq2', 'fseq2.*']),
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/Boyle-Lab/F-Seq2',
version='2.0.4',
zip_safe=False,
ext_modules = extensions
)