/
setup.py
66 lines (59 loc) · 1.85 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
#-------------------------------------------------------------------------------
# Name:
# Purpose:
#
# Author: Morten Wergeland Hansen
# Modified:
#
# Created:
# Last modified:
# Copyright: (c) NERSC
# License:
#-------------------------------------------------------------------------------
import sys, shutil
from setuptools import setup, find_packages
readme_file = 'README.md'
try:
long_description = open(readme_file).read()
except IOError:
sys.stderr.write("[ERROR] Cannot find file specified as "
"``long_description`` (%s)\n" % readme_file)
sys.exit(1)
install_requires = ['requests']
NAME = 'nerscmetadata'
def run_setup():
setup(name=NAME,
version='0.1.4',
description='Metadata conventions for geospatial data at NERSC',
long_description=long_description,
zip_safe=False,
author=('Morten W. Hansen', 'Anton Korosov', 'Aleksander Vines',),
author_email='mortenh@nersc.no',
url='#',
download_url='#',
packages = find_packages(),
package_data = {NAME: ['json/*.json']},
include_package_data=True,
install_requires = install_requires,
test_suite='nerscmetadata.tests',
classifiers = [
'Development Status :: 0 - Beta',
'Environment :: Web Environment',
'Framework :: ',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'
],
)
try:
# write json files to have local data
from nerscmetadata.gcmd_keywords import write_json
write_json('instruments')
write_json('platforms')
write_json('data_centers')
write_json('locations')
except:
pass
run_setup()