nmc_met_io/setup.py

79 lines
2.3 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,
2020-07-29 15:28:48 +00:00
description=("Collection of tools for I/O or accessing meteorological data."),
2019-07-03 14:07:05 +00:00
long_description=long_description,
2020-07-29 15:28:48 +00:00
long_description_content_type='text/markdown',
url='https://github.com/nmcdev/nmc_met_io',
2019-07-03 14:07:05 +00:00
# author
author=author,
author_email='kan.dai@foxmail.com',
# LICENSE
license='GPL3',
classifiers=[
2020-07-29 15:28:48 +00:00
'Development Status :: 4 - Beta',
2019-07-03 14:07:05 +00:00
'Intended Audience :: Developers',
2020-07-29 15:28:48 +00:00
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Atmospheric Science',
2019-07-03 14:07:05 +00:00
'Programming Language :: Python :: 3',
2020-07-29 15:28:48 +00:00
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows'],
python_requires='>=3.6',
2020-03-30 08:53:39 +00:00
zip_safe = False,
2020-07-29 15:28:48 +00:00
platforms = ["all"],
2020-07-29 15:28:48 +00:00
packages=find_packages(exclude=[
2020-10-01 01:39:03 +00:00
'documents', 'docs', 'examples', 'notebooks', 'tests', 'build', 'dist']),
2019-07-03 14:07:05 +00:00
include_package_data=True,
exclude_package_data={'': ['.gitignore']},
2020-07-29 15:28:48 +00:00
install_requires=[
'numpy>=1.17.0',
'scipy>=1.4.0',
'pandas>=1.0.0',
'xarray>=0.16.0',
'protobuf>=3.12.0',
'urllib3>=1.25.9',
'tqdm>=4.47.0',
2022-02-26 02:29:32 +00:00
'python-dateutil>=2.8.1']
2019-07-03 14:07:05 +00:00
)
# 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:
2020-07-29 15:28:48 +00:00
# python setup.py sdist build # create source tar.gz file in /dist
# twine upload --skip-existing dist/* # upload package to pypi