-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
82 lines (68 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
75
76
77
78
79
80
81
82
import os
import shutil
from setuptools import setup
from setuptools.command.install import install
# remove the dist folder first if exists
if os.path.exists("dist"):
shutil.rmtree("dist")
def readme():
with open("README.rst") as f:
return f.read()
VERSION = "1.3.24"
def write_version_py(filename="sigProfilerPlotting/version.py"):
# Copied from numpy setup.py
cnt = """
# THIS FILE IS GENERATED FROM SIGPROFILERPLOTTING SETUP.PY
short_version = '%(version)s'
version = '%(version)s'
update = 'Upgrade v1.3.24: Make output path handling more robust with os.path.join() and add environmental variable SIGPROFILERPLOTTING_VOLUME'
"""
fh = open(filename, "w")
fh.write(
cnt
% {
"version": VERSION,
}
)
fh.close()
write_version_py()
with open("README.md") as f:
readme = f.read()
setup(
name="sigProfilerPlotting",
version=VERSION,
description="SigProfiler plotting tool",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/alexandrovlab/SigProfilerPlotting",
author="Erik Bergstrom",
author_email="[email protected]",
license="UCSD",
packages=[
"sigProfilerPlotting",
"sigProfilerPlotting.reference_formats",
"sigProfilerPlotting.fonts",
"sigProfilerPlotting.controllers",
],
install_requires=[
"matplotlib>=3.4.3",
"pandas>=1.2.4,<2.0.0",
"scikit-learn>=1.1.3",
"pillow>=10.0.0",
],
extras_require={
"tests": [
"pytest",
"scikit-image>=0.21.0",
"numpy>=1.21.2",
],
},
entry_points={
"console_scripts": [
"SigProfilerPlotting=sigProfilerPlotting.sigProfilerPlotting_CLI:main_function",
],
},
package_data={"": ["fonts/*.ttf"]},
include_package_data=True,
zip_safe=False,
)