forked from dask/dask-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (65 loc) · 1.95 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
#!/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] >=0.16.1",
"numpy >=1.11.3",
"scipy >=0.19.1",
"pims >=0.4.1",
]
test_requirements = [
"flake8 >=3.4.1",
"pytest >=3.0.5",
"pytest-flake8 >=0.8.1",
"scikit-image >=0.12.3",
]
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="John Kirkham",
author_email="[email protected]",
url="https://github.com/dask/dask-image",
cmdclass=cmdclasses,
packages=setuptools.find_packages(exclude=["tests*"]),
include_package_data=True,
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 :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
tests_require=test_requirements
)