Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#-------------------------------------------------------------------------------
# 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()