Skip to content

Commit

Permalink
add setup.py suggested by bugsuse
Browse files Browse the repository at this point in the history
  • Loading branch information
zy committed Oct 11, 2019
1 parent 95d4052 commit 2912f33
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 16 deletions.
4 changes: 2 additions & 2 deletions NuistRadar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from . import core, draw, io, interp
__all__ = ["core", "draw", "io", "interp"]
from . import core, draw, io, interp, configure
__all__ = ["core", "draw", "io", "interp", "configure"]
2 changes: 2 additions & 0 deletions NuistRadar/configure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import default_config, location_config, pyart_config, pyart_default_config, pyart_lazydict
__all__ = ["default_config", "location_config", "pyart_lazydict", "pyart_default_config", "pyart_config"]
43 changes: 29 additions & 14 deletions NuistRadar/setup.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
# -*- coding: utf-8 -*-
"""
added by bugsuse(https://github.com/bugsuse)
suggested by bugsuse(https://github.com/bugsuse)
"""
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration

config = Configuration('NuistRadar', parent_package, top_path)
config.add_subpackage('configure')
config.add_subpackage('io') # io first to detect if RSL is missing.
config.add_subpackage('core')
config.add_subpackage('draw')
config.add_subpackage('interp')
config.add_data_dir('data')
return config
from setuptools import find_packages, setup

if __name__ == '__main__':
from numpy.distutils.core import setup
setup(**configuration(top_path='').todict())
DISTNAME = "NuistRadar"
LICENSE = "GPL"
AUTHOR = "Yu Zheng"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/YvZheng"
PYTHON_REQUIRES = ">=3.6"
INSTALL_REQUIRES = ["matplotlib==2.2.3", "pyproj==1.9.6", "Cartopy==0.17.0", "xarray==0.12.1",\
"numpy==1.17.2+mkl", "scipy==1.1.0", "pandas==0.23.4", "PyQt5==5.13.1", "netCDF4==1.5.2"]
DESCRIPTION = "China Weather Radar tools"
LONG_DESCRIPTION = """The Weather Radar Toolkit, support most of China's radar formats
(WSR98D, CINRAD/SA/SB/CB, CINRAD/CC/CCJ, CINRAD/SC/CD)"""

setup(
name=DISTNAME,
version="0.1",
license=LICENSE,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
python_requires=PYTHON_REQUIRES,
install_requires=INSTALL_REQUIRES,
url=URL,
include_package_data = True,
packages=find_packages(),
package_data={"": ["data/*", "tests/data/*", "SetupRadar.py", "__init_.py", "draw/colormap/balance-rgb.txt"]},
)

0 comments on commit 2912f33

Please sign in to comment.