Skip to content

Commit

Permalink
Merge pull request #142 from aaraney/move_versioning_inside_package
Browse files Browse the repository at this point in the history
Move package/subpackage version inside package source
  • Loading branch information
jarq6c authored Oct 29, 2021
2 parents 14a70cf + 0871dd7 commit 5a55567
Show file tree
Hide file tree
Showing 24 changed files with 35 additions and 8 deletions.
2 changes: 1 addition & 1 deletion python/_restclient/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = hydrotools._restclient
version = 3.0.4
version = attr: hydrotools._restclient._version.__version__
author = Austin Raney
author_email = [email protected]
description = General REST api client with built in request caching and retries.
Expand Down
3 changes: 3 additions & 0 deletions python/_restclient/src/hydrotools/_restclient/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# removing __version__ import will cause build to fail. see: https://github.com/pypa/setuptools/issues/1724#issuecomment-627241822
from ._version import __version__

from ._restclient import RestClient
from .utilities import Alias, AliasGroup
from .urllib import Url, Variadic
Expand Down
1 change: 1 addition & 0 deletions python/_restclient/src/hydrotools/_restclient/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "3.0.4"
2 changes: 1 addition & 1 deletion python/caches/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = hydrotools.caches
version = 0.1.3
version = attr: hydrotools.caches._version.__version__
author = Jason A. Regina
author_email = [email protected]
description = Variety of object caching utilities for OWPHydroTools.
Expand Down
2 changes: 2 additions & 0 deletions python/caches/src/hydrotools/caches/__init__.py
Original file line number Diff line number Diff line change
@@ -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__
1 change: 1 addition & 0 deletions python/caches/src/hydrotools/caches/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.1.3"
2 changes: 1 addition & 1 deletion python/events/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = hydrotools.events
version = 1.1.5
version = attr: hydrotools.events.event_detection._version.__version__
author = Jason A. Regina
author_email = [email protected]
description = Various methods to support event-based evaluations.
Expand Down
Original file line number Diff line number Diff line change
@@ -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__
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.1.5"
2 changes: 1 addition & 1 deletion python/gcp_client/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = hydrotools.gcp_client
version = 4.1.2
version = attr: hydrotools.gcp_client._version.__version__
author = Jason A. Regina
author_email = [email protected]
description = Retrieve National Water Model data from Google Cloud Platform.
Expand Down
3 changes: 3 additions & 0 deletions python/gcp_client/src/hydrotools/gcp_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# removing __version__ import will cause build to fail. see: https://github.com/pypa/setuptools/issues/1724#issuecomment-627241822
from ._version import __version__

from .gcp import NWMDataService
import warnings

Expand Down
1 change: 1 addition & 0 deletions python/gcp_client/src/hydrotools/gcp_client/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "4.1.2"
2 changes: 1 addition & 1 deletion python/metrics/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = hydrotools.metrics
version = 1.0.3
version = attr: hydrotools.metrics._version.__version__
author = Jason A. Regina
author_email = [email protected]
description = Variety of standard model evaluation metrics.
Expand Down
2 changes: 2 additions & 0 deletions python/metrics/src/hydrotools/metrics/__init__.py
Original file line number Diff line number Diff line change
@@ -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__
1 change: 1 addition & 0 deletions python/metrics/src/hydrotools/metrics/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.0.3"
2 changes: 1 addition & 1 deletion python/nwis_client/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = hydrotools.nwis_client
version = 3.0.6
version = attr: hydrotools.nwis_client._version.__version__
author = Austin Raney
author_email = [email protected]
description = A convenient interface to the USGS NWIS Instantaneous Values (IV) REST Service API.
Expand Down
3 changes: 3 additions & 0 deletions python/nwis_client/src/hydrotools/nwis_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# removing __version__ import will cause build to fail. see: https://github.com/pypa/setuptools/issues/1724#issuecomment-627241822
from ._version import __version__

from .iv import IVDataService
1 change: 1 addition & 0 deletions python/nwis_client/src/hydrotools/nwis_client/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "3.0.6"
2 changes: 1 addition & 1 deletion python/nwm_client/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = hydrotools.nwm_client
version = 5.0.1
version = attr: hydrotools.nwm_client._version.__version__
author = Jason A. Regina
author_email = [email protected]
description = Retrieve National Water Model data from various sources.
Expand Down
2 changes: 2 additions & 0 deletions python/nwm_client/src/hydrotools/nwm_client/__init__.py
Original file line number Diff line number Diff line change
@@ -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__
1 change: 1 addition & 0 deletions python/nwm_client/src/hydrotools/nwm_client/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "5.0.1"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = hydrotools
version = 2.1.2
version = attr: hydrotools._version.__version__
author = Jason A. Regina and Austin Raney
author_email = [email protected]
description = Suite of tools for retrieving USGS NWIS observations and evaluating National Water Model (NWM) data.
Expand Down
2 changes: 2 additions & 0 deletions src/hydrotools/__init__.py
Original file line number Diff line number Diff line change
@@ -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__
1 change: 1 addition & 0 deletions src/hydrotools/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "2.1.2"

0 comments on commit 5a55567

Please sign in to comment.