Skip to content

Commit

Permalink
import __version__ in __init__.py. needed by setuptools for ast parsi…
Browse files Browse the repository at this point in the history
…ng. see setuptools #1724 for more information
  • Loading branch information
aaraney committed Oct 26, 2021
1 parent e23ce19 commit 0871dd7
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 0 deletions.
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
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__
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__
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
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__
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
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__
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__

0 comments on commit 0871dd7

Please sign in to comment.