From d4218bd714476f85a52f21d2b8fad5fd638e9754 Mon Sep 17 00:00:00 2001 From: anibalinn Date: Thu, 5 Dec 2024 11:47:54 -0300 Subject: [PATCH] Adding method needed for backward compatibility reasons --- .github/workflows/python-package.yml | 2 +- behavex/utils.py | 6 ++++++ pyproject.toml | 2 +- setup.py | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index eef2b24..646169b 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -32,7 +32,7 @@ jobs: run: | python -m pip install --upgrade pip python setup.py sdist - pip install dist/behavex-4.0.9rc4.tar.gz + pip install dist/behavex-4.0.9rc5.tar.gz - name: Verify behavex command shell: bash diff --git a/behavex/utils.py b/behavex/utils.py index 8b38786..32af33d 100644 --- a/behavex/utils.py +++ b/behavex/utils.py @@ -303,6 +303,12 @@ def execution(): retry_file_operation(behave_folder, lambda: os.makedirs(behave_folder)) + +# Implemented for backward compatibility with other libraries that use this function +def try_operate_descriptor(dest_path, execution, return_value=False): + return retry_file_operation(dest_path, execution, return_value) + + def set_env_variable(key, value): if value: os.environ[key] = str(value) diff --git a/pyproject.toml b/pyproject.toml index 0d35071..4abd6fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "behavex" -version = "4.0.9rc4" +version = "4.0.9rc5" description = "Agile testing framework on top of Behave (BDD)." readme = "README.md" license = { text = "MIT" } diff --git a/setup.py b/setup.py index 7726d70..bd49152 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='behavex', - version='4.0.9rc4', + version='4.0.9rc5', license="MIT", platforms=['any'], python_requires='>=3.5',