-
Notifications
You must be signed in to change notification settings - Fork 43
/
setup.py
69 lines (61 loc) · 1.91 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
"""PVGeo: Geoscientific visualization tools for PyVista.
"""
import os
import platform
import sys
import warnings
import setuptools
__version__ = '3.0.1'
with open("README.md", "r") as f:
long_description = f.read()
# Remove the icon from the README (assumes it is on the first line)
idx = long_description.find('\n')
long_description = '# *PVGeo*\n\n' + long_description[idx::]
# Manage requirements
install_requires = [
'numpy>=1.13',
'scipy>=1.1',
'pandas>=0.23.4',
'espatools>=0.0.8',
'pyvista>=0.20.1',
]
# add vtk if not windows and (not Python 3.x or not x64)
if os.name == 'nt' and (
int(sys.version[0]) < 3 or '64' not in platform.architecture()[0]
):
warnings.warn(
'\nYou will need to install VTK manually.'
+ ' Try using Anaconda. See:\n'
+ 'https://anaconda.org/anaconda/vtk'
)
else:
install_requires.append(['vtk>=8.1'])
setuptools.setup(
name="PVGeo",
version=__version__,
author="Bane Sullivan",
author_email="[email protected]",
description="Geoscientific visualization tools for PyVista",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/OpenGeoVis/PVGeo",
packages=setuptools.find_packages(),
install_requires=install_requires,
python_requires='>=3.8',
extras_require={
'pyproj': ['pyproj>=1.9'],
'omf': ['omf>=0.9.3', 'omfvista>=0.2.0'],
'discretize': ['discretize>=0.3.8'],
'examples': ['pooch'],
},
classifiers=(
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: GIS',
'Intended Audience :: Science/Research',
'Natural Language :: English',
),
)