forked from pangeo-data/xESMF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (57 loc) · 1.68 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
import os
from setuptools import find_packages, setup
DISTNAME = 'xesmf'
DESCRIPTION = 'Universal Regridder for Geospatial Data'
AUTHOR = 'Jiawei Zhuang'
AUTHOR_EMAIL = '[email protected]'
URL = 'https://github.com/pangeo-data/xESMF'
LICENSE = 'MIT'
PYTHON_REQUIRES = '>=3.6'
USE_SCM_VERSION = {
'write_to': 'xesmf/_version.py',
'write_to_template': '__version__ = "{version}"',
'tag_regex': r'^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$',
}
# https://github.com/rtfd/readthedocs.org/issues/5512#issuecomment-475024373
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
INSTALL_REQUIRES = []
else:
INSTALL_REQUIRES = [
'esmpy>=8.0.0',
'xarray!=0.16.1',
'numpy>=1.16',
'scipy',
'shapely',
'cf-xarray>=0.3.1',
]
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT 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',
]
def readme():
with open('README.rst') as f:
return f.read()
setup(
name=DISTNAME,
license=LICENSE,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
classifiers=CLASSIFIERS,
description=DESCRIPTION,
long_description=readme(),
long_description_content_type='text/x-rst',
python_requires=PYTHON_REQUIRES,
install_requires=INSTALL_REQUIRES,
url=URL,
packages=find_packages(),
use_scm_version=USE_SCM_VERSION,
)