-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
78 lines (67 loc) · 2.75 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
74
75
76
77
78
#!/usr/bin/env python
from __future__ import division, absolute_import, print_function
"""
jams: JAMS Python Utilities
JAMS is a general package offering miscellaneous functions in different
categories, such as reading different file formats, julian date routines, or
meteorological functions.
It has several subpackages offering constants, working with Eddy covariance
data and EddySoft, offering special functions, or objective functions be used
with scipy.optimize.fmin or scipy.optimize.curvefit, and much more.
Copyright (c) 2009-2021 Matthias Cuntz, Juliane Mai, Stephan Thober, Arndt
Piayda
"""
# DOCLINES = __doc__.split("\n") # __doc__ does not work
readme = open('README.md').read()
import sys
if sys.version_info[:2] < (2, 6) or (3, 0) <= sys.version_info[0:2] < (3, 2):
raise RuntimeError("Python version 2.6, 2.7 or >= 3.2 required.")
CLASSIFIERS = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Science/Research
Intended Audience :: Developers
Intended Audience :: End Users/Desktop
License :: OSI Approved :: MIT License
Natural Language :: English
Operating System :: MacOS
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: POSIX :: Linux
Operating System :: Unix
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 3
Topic :: Scientific/Engineering
Topic :: Software Development
Topic :: Utilities
"""
MAJOR = 21
MINOR = 0
ISRELEASED = True
VERSION = '{:d}.{:d}'.format(MAJOR, MINOR)
from setuptools import setup, find_packages
metadata = dict(
name = 'jams',
version=VERSION,
maintainer = "Matthias Cuntz",
maintainer_email = "mc (at) macu (dot) de",
# description = DOCLINES[0],
description = "JAMS Python Utilities",
# long_description = "\n".join(DOCLINES[2:]),
long_description = readme,
keywords = ['utilities', 'array manipulation', 'ascii files',
'date and time', 'hydrology', 'isotopes', 'meteorology', ],
url = "https://github.com/mcuntz/jams_python/",
author = "JAMS = Matthias Cuntz, Juliane Mai, Stephan Thober, Arndt Piayda",
license = 'MIT - see LICENSE',
classifiers = [_f for _f in CLASSIFIERS.split('\n') if _f],
platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
packages = find_packages(exclude=['templates', 'tests*']),
include_package_data = True,
scripts = ['bin/delta_isogsm2.py', 'bin/dfgui.py', 'bin/get_era5.py', 'bin/get_era_interim.py', 'bin/get_isogsm2.py', 'bin/makehtml'],
# install_requires=['numpy>=1.11.0', 'scipy>=0.9.0', 'netCDF4>=1.1.4', 'matplotlib>=1.4.3']
install_requires = ['numpy', 'scipy', 'netcdf4', 'matplotlib'],
)
setup(**metadata)