forked from AlexandrovLab/SigProfilerMatrixGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (63 loc) · 1.9 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
import os
import shutil
from setuptools import setup
VERSION = "1.2.28"
# remove the dist folder first if exists
if os.path.exists("dist"):
shutil.rmtree("dist")
def readme():
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md"), encoding="latin-1") as f:
long_description = f.read()
return long_description
def write_version_py(filename="SigProfilerMatrixGenerator/version.py"):
# Copied from numpy setup.py
cnt = """
# THIS FILE IS GENERATED FROM SIGPROFILEMATRIXGENERATOR SETUP.PY
short_version = '%(version)s'
version = '%(version)s'
Update = 'v1.2.28: Add support for processing SV input for VCF versions 4.1, 4.2, and 4.3'
"""
fh = open(filename, "w")
fh.write(
cnt
% {
"version": VERSION,
}
)
fh.close()
write_version_py()
setup(
name="SigProfilerMatrixGenerator",
version=VERSION,
description="SigProfiler matrix generator tool",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/AlexandrovLab/SigProfilerMatrixGenerator.git",
author="Erik Bergstrom",
author_email="[email protected]",
license="UCSD",
packages=["SigProfilerMatrixGenerator"],
python_requires=">=3.8",
install_requires=[
"matplotlib>=2.2.2",
"sigProfilerPlotting>=1.3.24",
"statsmodels>=0.9.0",
"numpy>=1.18.5,<2.0.0",
"pandas>=0.23.4,<2.0.0",
"scipy>=1.12.0; python_version>='3.9'",
"scipy>=1.1.0, <1.12.0; python_version=='3.8'",
],
entry_points={
"console_scripts": [
"SigProfilerMatrixGenerator=SigProfilerMatrixGenerator.scripts.SigProfilerMatrixGenerator_CLI:main_function",
],
},
extras_require={
"tests": [
"pytest",
],
},
include_package_data=True,
zip_safe=False,
)