forked from YvZheng/pycwr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zy
committed
Oct 11, 2019
1 parent
95d4052
commit 2912f33
Showing
3 changed files
with
33 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]}, | ||
) |