Skip to content

Commit

Permalink
Update __init__.py to reference new version formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zbruick committed Sep 13, 2019
1 parent d04740c commit 28b799a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions metpy/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2015 MetPy Developers.
# Copyright (c) 2015,2019 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Tools for reading, calculating, and plotting with weather data."""
Expand All @@ -11,11 +11,10 @@
# Must occur before below imports
warnings.filterwarnings('ignore', 'numpy.dtype size changed')

from ._version import get_versions # noqa: E402
from ._version import version # noqa: E402
from .xarray import * # noqa: F401, F403
__version__ = get_versions()['version']
del get_versions

__version__ = version
del version
try:
# Added in Python 3.2, will log anything warning or higher to stderr
logging.lastResort
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -55,7 +55,7 @@ def clean_scheme(version):
'_static/unidata_150x150.png'],
'metpy': ['static-data-manifest.txt']},
use_scm_version={'write_to': 'metpy/_version.py',
'write_to_template': "version = '{version}'"},
'write_to_template': "version = '{version}'"},
setup_requires=['setuptools_scm'],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*',
install_requires=['matplotlib>=2.0.0', 'numpy>=1.12.0', 'scipy>=0.17.0',
Expand Down

0 comments on commit 28b799a

Please sign in to comment.