From e644da892499d04da37d1fd8829e8483ecca152e Mon Sep 17 00:00:00 2001 From: duhaime Date: Mon, 25 Nov 2019 11:14:49 -0500 Subject: [PATCH] supply a single source for the version number --- keras_preprocessing/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keras_preprocessing/__init__.py b/keras_preprocessing/__init__.py index 31fd376b..6464985c 100644 --- a/keras_preprocessing/__init__.py +++ b/keras_preprocessing/__init__.py @@ -3,6 +3,7 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function +import pkg_resources _KERAS_BACKEND = None _KERAS_UTILS = None @@ -40,4 +41,4 @@ def get_keras_submodule(name): return _KERAS_UTILS -__version__ = '1.1.0' +__version__ = pkg_resources.get_distribution('keras_preprocessing').version