-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
72 lines (62 loc) · 1.75 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
from setuptools import setup
import shutil
import os
# remove the dist folder first if exists
if os.path.exists("dist"):
shutil.rmtree("dist")
VERSION = "0.1.9"
def write_version_py(filename="SigProfilerAssignment/version.py"):
# Copied from numpy setup.py
cnt = """
# THIS FILE IS GENERATED FROM SigProfilerAssignment SETUP.PY
short_version = '%(version)s'
version = '%(version)s'
Update = 'v0.1.9: Replace PdfMerger with PdfReader and PdfWriter for pypdf 5.0.0'
"""
fh = open(filename, "w")
fh.write(
cnt
% {
"version": VERSION,
}
)
fh.close()
with open("README.md") as f:
long_description = f.read()
requirements = [
"scipy>=1.6.3",
"numpy>=1.21.2,<2.0.0",
"pandas>=1.2.4,<2.0.0",
"SigProfilerMatrixGenerator>=1.2.28",
"sigProfilerPlotting>=1.3.24",
"reportlab>=3.5.42",
"pypdf>=5.0.0",
"alive_progress>=2.4.1",
"PyMuPDF>=1.21.0", # required for package "fitz"
]
write_version_py()
setup(
name="SigProfilerAssignment",
version=VERSION,
description="Mutational signatures attribution and decomposition tool",
long_description=long_description,
long_description_content_type="text/markdown", # This is important!
url="https://github.com/AlexandrovLab/SigProfilerAssignment.git",
author="Raviteja Vangara",
author_email="rvangara@health.ucsd.edu",
license="UCSD",
packages=["SigProfilerAssignment"],
install_requires=requirements,
extras_require={
"tests": [
"pytest",
],
},
include_package_data=True,
entry_points={
"console_scripts": [
"SigProfilerAssignment=SigProfilerAssignment.SigProfilerAssignment_CLI:main_function",
],
},
zip_safe=False,
)