-
Notifications
You must be signed in to change notification settings - Fork 117
/
setup.py
88 lines (82 loc) · 2.76 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
import importlib
import sys
from setuptools import find_packages
try:
from skbuild import setup
except ImportError:
sys.stderr.write("""scikit-build is required to build from source or run tox.
Please run:
python -m pip install scikit-build
""")
# from setuptools import setup
sys.exit(1)
with open('README.rst') as readme_file:
readme = readme_file.read()
setup(
name='histomicstk',
use_scm_version={'local_scheme': 'no-local-version',
'fallback_version': '0.0.0'},
description='A Python toolkit for Histopathology Image Analysis',
long_description=readme,
long_description_content_type='text/x-rst',
author='Kitware, Inc.',
author_email='[email protected]',
url='https://github.com/DigitalSlideArchive/HistomicsTK',
packages=find_packages(exclude=['tests', '*_test*']),
package_dir={
'histomicstk': 'histomicstk',
},
include_package_data=True,
install_requires=[
'girder-client',
# scientific packages
'nimfa',
'numpy',
'scipy',
'Pillow',
'pandas',
'scikit-image',
'scikit-learn',
'imageio',
'shapely',
'sqlalchemy',
'matplotlib',
'pyvips',
# dask packages
'dask[dataframe]<2024.11.0',
'distributed',
# large image; for non-linux systems only install the PIL tile source
# by default.
'large-image[sources];sys.platform=="linux" or sys.platform=="linux2"',
'large-image[common];sys.platform!="linux" and sys.platform!="linux2"',
'large-image-converter;sys.platform=="linux" or sys.platform=="linux2"',
'girder-slicer-cli-web',
# cli
'ctk-cli',
] + (
# Only require opencv if it isn't installed. This can allow alternate
# forms to be in the environment (such as a headed form) without
# causing conflicts
[
'opencv-python-headless',
] if not importlib.util.find_spec('cv2') else []
),
license='Apache Software License 2.0',
keywords='histomicstk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Software Development :: Libraries :: Python Modules',
],
zip_safe=False,
entry_points={
'console_scripts': ['histomicstk = histomicstk.cli.__main__:main'],
},
python_requires='>=3.9',
)