Skip to content

Commit

Permalink
Adding method needed for backward compatibility reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
anibalinn committed Dec 5, 2024
1 parent 457ff07 commit d4218bd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions behavex/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='behavex',
version='4.0.9rc4',
version='4.0.9rc5',
license="MIT",
platforms=['any'],
python_requires='>=3.5',
Expand Down

0 comments on commit d4218bd

Please sign in to comment.