-
Notifications
You must be signed in to change notification settings - Fork 72
/
setup.py
101 lines (83 loc) · 2.87 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import codecs
import os
import re
import setuptools.dist
import cpa.util.version
def read(*directories):
pathname = os.path.abspath(os.path.dirname(__file__))
return codecs.open(os.path.join(pathname, *directories), "r").read()
def find_version(*pathnames):
data = read(*pathnames)
matched = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", data, re.M)
if matched:
return matched.group(1)
raise RuntimeError("Unable to find version string.")
def package_data():
resources = []
for root, _, filenames in os.walk(os.path.join("cellprofiler", "data")):
resources += [
os.path.relpath(os.path.join(root, filename), "cellprofiler")
for filename in filenames
]
for root, _, filenames in os.walk(os.path.join("cellprofiler", "gui")):
resources += [
os.path.relpath(os.path.join(root, filename), "cellprofiler")
for filename in filenames
if ".html" in filename
]
return {"cellprofiler": resources}
setuptools.setup(
app=['CellProfiler-Analyst.py'],
author="Broad Institute",
author_email="imagingadmin@broadinstitute.org",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Scientific/Engineering",
],
# entry_points={"console_scripts": ["cellprofiler-analyst=CellProfiler-Analyst.__main__:main"]},
extras_require={
"build": ["pyinstaller"],
},
install_requires=[
"boto3==1.17.15",
"botocore==1.20.15",
"imagecodecs>=2021.2.26",
"imageio>=2.9.0",
"joblib>=1.0.1",
"matplotlib==3.3.4",
"mock>=4.0.3",
"mysqlclient>=2.0.3",
"numpy>=1.20.1",
"pandas>=1.2.2",
"Pillow>=8.1.0",
"progressbar>=2.5",
"python-bioformats>=4.0.4",
"python-javabridge>=4.0.3",
"pytz>=2021.1",
"requests>=2.25.1",
"scikit-learn>=0.24.1",
"scipy>=1.6.1",
"seaborn>=0.11.1",
"tifffile>=2021.3.31",
"verlib==0.1",
"wxPython==4.1.0",
],
license="BSD",
name="CellProfiler-Analyst",
package_data=package_data(),
include_package_data=True,
packages=setuptools.find_packages(exclude=["tests*"]),
python_requires=">=3.8",
setup_requires=["pytest"],
url="https://github.com/CellProfiler/CellProfiler-Analyst",
version=cpa.util.version.__version__,
windows=[{'script': 'CellProfiler-Analyst.py',
'icon_resources': [(1, '.\cpa\icons\cpa.ico')]}],
)