-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
81 lines (71 loc) · 2.23 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
import sys
import setuptools
if sys.version_info[0] == 2:
numpy_version = "numpy>=1.16"
scipy_version = "scipy>=1.2.3"
pillow_version = "pillow<=6.2.2"
matplotlib_version = "matplotlib<=2.2.5"
imageio_version = "imageio<=2.6.1"
else:
numpy_version = "numpy>=1.17,<=1.23.5"
scipy_version = "scipy>=1.5.3"
pillow_version = "pillow<=9.2"
matplotlib_version = "matplotlib>=3.2.2"
imageio_version = "imageio>=2.21.1"
with open("README.rst") as f:
long_description = f.read()
class Test(setuptools.Command):
user_options = [
("pytest-args=", "a", "arguments to pass to py.test")
]
def initialize_options(self):
self.pytest_args = []
def finalize_options(self):
pass
def run(self):
import pytest
errno = pytest.main(self.pytest_args + ['--ignore', 'utils/'])
sys.exit(errno)
setuptools.setup(
author="Filip Mroz",
author_email="[email protected]",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Scientific/Engineering"
],
cmdclass={
"test": Test
},
include_package_data=True,
install_requires=[
numpy_version,
scipy_version,
pillow_version,
matplotlib_version,
imageio_version,
"pathlib"
],
keywords=["brightfield", "yeast", "segmentation", "adapting"],
license="BSD",
long_description=long_description,
name="CellStar",
description="Algorithm for round cells identification in the brightfield microscopy images.",
packages=setuptools.find_packages(exclude=[
"tests", "utils"
]),
setup_requires=[
"pytest"
],
url="https://github.com/Fafa87/cellstar",
version="2.0.3"
)