nmc_met_io/setup.py

64 lines
1.7 KiB
Python
Raw Normal View History

2019-07-03 14:07:05 +00:00
# _*_ coding: utf-8 _*_
from os import path
from setuptools import find_packages, setup
from codecs import open
name = 'nmc_met_io'
author = __import__(name).__author__
version = __import__(name).__version__
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name=name,
version=version,
description=("Collection of tools for I/O or"
"accessing meteorological data."),
long_description=long_description,
# author
author=author,
author_email='kan.dai@foxmail.com',
# LICENSE
license='GPL3',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
],
packages=find_packages(exclude=['docs', 'tests', 'build', 'dist']),
include_package_data=True,
exclude_package_data={'': ['.gitignore']},
install_requires=['numpy>=1.12.1',
'scipy>=0.19.0',
'xarray>=0.9.6',
'pandas>=0.20.0',
'pyproj>=1.9.5.1',
'protobuf>=3.5.0',
'urllib3>=1.20',
'python-dateutil']
)
# development mode (DOS command):
# python setup.py develop
# python setup.py develop --uninstall
# build mode
# python setup.py build --build-base=D:/test/python/build
# distribution mode:
# python setup.py sdist # create source tar.gz file in /dist
# python setup.py bdist_wheel # create wheel binary in /dist