forked from MPAS-Dev/MPAS-Analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·68 lines (63 loc) · 2.86 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
#!/usr/bin/env python
# This software is open source software available under the BSD-3 license.
#
# Copyright (c) 2020 Triad National Security, LLC. All rights reserved.
# Copyright (c) 2020 Lawrence Livermore National Security, LLC. All rights
# reserved.
# Copyright (c) 2020 UT-Battelle, LLC. All rights reserved.
#
# Additional copyright and license information can be found in the LICENSE file
# distributed with this code, or at
# https://raw.githubusercontent.com/MPAS-Dev/MPAS-Analysis/master/LICENSE
from setuptools import setup, find_packages
import warnings
isrelease = True
version = '1.2.7'
if not isrelease:
import subprocess
try:
pipe = subprocess.Popen(
["git", "describe", "--always", "--match", "v[0-9]*"],
stdout=subprocess.PIPE)
(version, stderr) = pipe.communicate()
except BaseException:
warnings.warn("WARNING: Couldn't get git revision, using generic "
"version string")
setup(name='mpas_analysis',
version=version,
description='Analysis for Model for Prediction Across Scales (MPAS) '
'simulations.',
url='https://github.com/MPAS-Dev/MPAS-Analysis',
author='MPAS-Analysis Developers',
author_email='[email protected]',
license='BSD',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering',
],
packages=find_packages(),
package_data={'mpas_analysis': ['config.default',
'obs/analysis_input_files',
'obs/sose_10000km_input_files',
'obs/observational_datasets.xml'],
'mpas_analysis.shared.html': ['templates/*'],
'mpas_analysis.test': ['test*/*', 'test*/*/*'],
'mpas_analysis.shared.plot':
['ScientificColourMaps5/*/*.txt',
'SciVisColorColormaps/*.xml']},
install_requires=['numpy', 'scipy', 'matplotlib', 'netCDF4', 'xarray',
'dask', 'lxml',
'pyproj', 'pillow', 'cmocean', 'progressbar2',
'requests', 'shapely', 'cartopy', 'geometric_features'],
entry_points={'console_scripts':
['mpas_analysis = mpas_analysis.__main__:main',
'download_analysis_data = '
'mpas_analysis.download_data:download_analysis_data']})