forked from jkreklow/radproc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (51 loc) · 2.22 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
from setuptools import setup
#from setuptools import find_packages
#from distutils.core import setup
import os
version = '0.1.4'
def write_version_py(filename='radproc/version.py'):
content = "# THIS FILE IS GENERATED FROM RADPROC SETUP.PY\nversion = '%s'" % version
with open(filename, 'w') as f:
f.write(content)
def readme():
with open('README.rst') as f:
return f.read()
if __name__ == '__main__':
write_version_py()
CLASSIFIERS = (
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Topic :: Scientific/Engineering :: GIS",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows"
)
with open('requirements.txt', 'r') as f:
INSTALL_REQUIRES = [rq for rq in f.read().split('\n') if rq != '']
setup(
name = 'radproc',
#packages = find_packages(),
packages = ['radproc', 'radproc.sampledata'],
package_data={'radproc': ['sampledata/radolan_proj.prj']},
include_package_data = True,
version = version,
description = 'Library for RADOLAN composite processing, analysis and data exchange with ArcGIS.',
long_description=readme(),
author = 'Jennifer Kreklow',
author_email = '[email protected]',
url = 'https://github.com/jkreklow/radproc/tree/%s' % version, # use the URL to the github repo
download_url = 'https://github.com/jkreklow/radproc/tree/%s/dist/radproc-%s.tar.gz' % (version, version),
license = 'MIT',
keywords = ['RADOLAN', 'weather radar', 'ArcGIS', 'precipitation', 'rainfall'],
classifiers = CLASSIFIERS,
#py_modules = ['radproc.api','radproc.heavyrain', 'radproc.core', 'radproc.wradlib_io', 'radproc.raw', 'radproc.arcgis', 'radproc.dwd_gauge'],
install_requires = INSTALL_REQUIRES
)