-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
executable file
·60 lines (56 loc) · 1.78 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
import pathlib
import setuptools
import sys
py_ver = sys.version.split(".")[:2]
python_version = py_ver[0] + "." + py_ver[1]
if python_version == "3.8":
dependencies = [
"scipy<1.10",
"pywavelets<1.5",
"contourpy<1.2",
"h5py<3.10",
"pillow",
"matplotlib<3.8",
"scikit-image<0.19",
"numpy<1.21",
]
else:
dependencies = [
"scikit-image",
"scipy",
"h5py",
"pillow",
"matplotlib",
"numpy"
]
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
setuptools.setup(
name="discorpy",
version="1.6.0",
author="Nghia Vo",
author_email="[email protected]",
description='Correction for radial distortion and perspective distortion '
'in Python',
long_description=README,
long_description_content_type="text/markdown",
keywords=['Distortion correction', 'Tomography', 'Radial lens distortion',
'Camera calibration', 'Perspective distortion'],
url="https://github.com/DiamondLightSource/discorpy",
download_url='https://github.com/DiamondLightSource/discorpy.git',
license="Apache 2.0",
platforms="Any",
packages=setuptools.find_packages(include=["discorpy", "discorpy.*"],
exclude=['test*', 'doc*', 'data*',
'example*']),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Image Processing"
],
install_requires=dependencies,
python_requires='>=3.8',
)