From 756339ee7dce6c28be8c691182d3ea8d1d5e0ecb Mon Sep 17 00:00:00 2001 From: Gianpaolo Caprara Date: Tue, 3 Dec 2019 20:41:21 +0100 Subject: [PATCH] Change version to 0.0.4 --- RobotFrameworkElasticSearchLibrary/__init__.py | 2 -- RobotFrameworkElasticSearchLibrary/version.py | 2 ++ setup.py | 10 +++++++++- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 RobotFrameworkElasticSearchLibrary/version.py diff --git a/RobotFrameworkElasticSearchLibrary/__init__.py b/RobotFrameworkElasticSearchLibrary/__init__.py index 61b3bc8..d0dfb97 100644 --- a/RobotFrameworkElasticSearchLibrary/__init__.py +++ b/RobotFrameworkElasticSearchLibrary/__init__.py @@ -1,5 +1,3 @@ -# Version of the RobotFrameworkElasticSearchLibrary package -__version__ = "0.0.2" from typing import Dict, Optional diff --git a/RobotFrameworkElasticSearchLibrary/version.py b/RobotFrameworkElasticSearchLibrary/version.py new file mode 100644 index 0000000..97de229 --- /dev/null +++ b/RobotFrameworkElasticSearchLibrary/version.py @@ -0,0 +1,2 @@ +# Version of the RobotFrameworkElasticSearchLibrary package +__version__ = "0.0.4" diff --git a/setup.py b/setup.py index 2dd161e..618119c 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,14 @@ import pathlib +from distutils import dirname from setuptools import setup -from RobotFrameworkElasticSearchLibrary import __version__ +import os + + +version_file = os.path.join(dirname(os.path.abspath(__file__)), 'RobotFrameworkElasticSearchLibrary', 'version.py') + +with open(version_file) as file: + code = compile(file.read(), version_file, 'exec') + exec(code) # The directory containing this file HERE = pathlib.Path(__file__).parent