From e4d64f10a9d1a5f5e70d4d7d11174dd75c9d762a Mon Sep 17 00:00:00 2001 From: Jerry Peng Date: Thu, 5 Dec 2019 10:28:20 -0800 Subject: [PATCH] Fix module no __version__ attribute error --- VERSION | 2 +- src/smexperiments/__init__.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 8294c18..7693c96 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.2 \ No newline at end of file +0.1.3 \ No newline at end of file diff --git a/src/smexperiments/__init__.py b/src/smexperiments/__init__.py index c60b935..72b3c76 100644 --- a/src/smexperiments/__init__.py +++ b/src/smexperiments/__init__.py @@ -10,3 +10,6 @@ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. +import pkg_resources + +__version__ = pkg_resources.require("sagemaker-experiments")[0].version