Esempio n. 1
0
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='*****@*****.**',
        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