/
setup.py
73 lines (62 loc) · 1.96 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
#!/usr/bin/env python
import os
import warnings
from setuptools import setup
from textwrap import dedent
from datetime import datetime
# Use a date-stamp format for versioning
now = datetime.now()
VERSION = now.strftime("%Y-%m-%d")
NAME = 'darpy'
LICENSE = 'BSD 3-Clause'
AUTHOR = 'Daniel Rothenberg'
AUTHOR_EMAIL = 'darothen@mit.edu'
URL = 'https://github.com/darothen/darpy'
CLASSIFIERS = [
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering',
]
DESCRIPTION = "Personal research and analysis toolkit climate data"
LONG_DESCRIPTION = """
**darpy** is a collection of analysis and plotting tools used in the research
work of Daniel Rothenberg.
"""
def _write_version_file():
fn = os.path.join(os.path.dirname(__file__), 'darpy', 'version.py')
version_str = dedent("""
version = "{}"
""")
# Write version file
with open(fn, 'w') as version_file:
version_file.write(version_str.format(VERSION))
# Write version and install
_write_version_file()
setup(name=NAME,
version=VERSION,
license=LICENSE,
author=AUTHOR, author_email=AUTHOR_EMAIL,
classifiers=CLASSIFIERS,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
url=URL,
packages=['darpy', ],
package_data={
'darpy': ['data/masks.nc',
'data/CESM_default_vars.p',
'data/ne_110m_ocean.shp',
'data/ne_110m_land.shp',
'data/quaas_regions.nc',
'data/landsea.nc',
'data/usa.geojson'],
},
scripts=['scripts/calc_aerosol',
'scripts/quick_plot',
'scripts/simple_cat',
'scripts/interp_pres',
'scripts/interp_field',
'scripts/reduce_dims',
'scripts/global_avg', ],
)