-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
setup.py
81 lines (67 loc) · 1.99 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import setuptools
from setuptools import setup
from setuptools.command.test import test as TestCommand
import versioneer
class PyTest(TestCommand):
description = "Run test suite with pytest"
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
sys.exit(pytest.main(self.test_args))
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("HISTORY.rst") as history_file:
history = history_file.read()
requirements = [
"dask[array] >=2024.4.1",
"dask[dataframe] >=2024.4.1",
"numpy >=1.18",
"scipy >=1.7.0",
"pims >=0.4.1",
"tifffile >=2018.10.18",
"pandas >=2.0.0",
]
test_requirements = [
"flake8 >=3.4.1",
"pytest >=3.0.5",
"pytest-flake8 >=0.8.1",
"pytest-timeout >=1.0.0",
]
cmdclasses = {
"test": PyTest,
}
cmdclasses.update(versioneer.get_cmdclass())
setup(
name="dask-image",
version=versioneer.get_version(),
description="Distributed image processing",
long_description=readme + "\n\n" + history,
author="dask-image contributors",
url="https://github.com/dask/dask-image",
cmdclass=cmdclasses,
packages=setuptools.find_packages(exclude=["tests*"]),
include_package_data=True,
python_requires='>=3.9',
install_requires=requirements,
license="BSD 3-Clause",
zip_safe=False,
keywords="dask-image",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
tests_require=test_requirements
)