From ed96728ca548de9f806f0466d506e10f4c535368 Mon Sep 17 00:00:00 2001 From: Austin Raney Date: Fri, 29 Oct 2021 14:52:28 -0400 Subject: [PATCH] move nwm_client_new package version into package. follows convention introduced in #142 --- python/nwm_client_new/setup.cfg | 2 +- python/nwm_client_new/src/hydrotools/nwm_client_new/__init__.py | 2 ++ python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py diff --git a/python/nwm_client_new/setup.cfg b/python/nwm_client_new/setup.cfg index 55c7d6eb..7867c7b6 100644 --- a/python/nwm_client_new/setup.cfg +++ b/python/nwm_client_new/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = hydrotools.nwm_client_new -version = 6.0.0b0 +version = attr: hydrotools.nwm_client_new._version.__version__ author = Jason A. Regina author_email = jason.regina@noaa.gov description = Retrieve National Water Model data from various sources. diff --git a/python/nwm_client_new/src/hydrotools/nwm_client_new/__init__.py b/python/nwm_client_new/src/hydrotools/nwm_client_new/__init__.py index e69de29b..a1826172 100644 --- a/python/nwm_client_new/src/hydrotools/nwm_client_new/__init__.py +++ b/python/nwm_client_new/src/hydrotools/nwm_client_new/__init__.py @@ -0,0 +1,2 @@ +# removing __version__ import will cause build to fail. see: https://github.com/pypa/setuptools/issues/1724#issuecomment-627241822 +from ._version import __version__ diff --git a/python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py b/python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py new file mode 100644 index 00000000..6edd89e9 --- /dev/null +++ b/python/nwm_client_new/src/hydrotools/nwm_client_new/_version.py @@ -0,0 +1 @@ +__version__ = "6.0.0b0"