-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
62 lines (49 loc) · 1.5 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
#!/usr/bin/env python
"""Py-CAWS
A package for reading and analyzing data from the Chicago Area Waterways
System (CAWS) project.
"""
DOCLINES = __doc__.split("\n")
import glob
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
NAME = 'pycaws'
MAINTAINER = 'Zach Sherman, Jules Cacho and Robert Jackson'
DESCRIPTION = DOCLINES[0]
LONG_DESCRIPTION = "\n".join(DOCLINES[2:])
LICENSE = 'BSD'
PLATFORMS = "Linux"
MAJOR = 0
MINOR = 1
MICRO = 0
#SCRIPTS = glob.glob('scripts/*')
#TEST_SUITE = 'nose.collector'
#TESTS_REQUIRE = ['nose']
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
def configuration(parent_package='', top_path=None):
""" Configuration of Py-CAWS package. """
config = Configuration(None, parent_package, top_path)
config.set_options(ignore_setup_xxx_py=True,
assume_default_configuration=True,
delegate_options_to_subpackages=True,
quiet=True)
config.add_subpackage('pycaws')
return config
def setup_package():
""" Setup of Py-CAWS package. """
setup(
name=NAME,
maintainer=MAINTAINER,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
version=VERSION,
license=LICENSE,
platforms=PLATFORMS,
configuration=configuration,
include_package_data=True,
#test_suite=TEST_SUITE,
#tests_require=TESTS_REQUIRE,
#scripts=SCRIPTS,
)
if __name__ == '__main__':
setup_package()