fix: requirements-dev.txt to reduce vulnerabilities
The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-SETUPTOOLS-3113904
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
* Fix type checking within client
Signed-off-by: Manuel Schönlaub <manuel.schoenlaub@gmail.com>
* Make linter happy
Signed-off-by: Manuel Schönlaub <manuel.schoenlaub@gmail.com>
* Migrate Hook Hints to Mapping
Signed-off-by: Manuel Schönlaub <manuel.schoenlaub@gmail.com>
* Fix type annotations in FlagEvaluationDetails
Signed-off-by: Manuel Schönlaub <manuel.schoenlaub@gmail.com>
* Fix last hint typing
Signed-off-by: Manuel Schönlaub <manuel.schonlaub@prodigygame.com>
* Rework typing
Signed-off-by: Manuel Schönlaub <manuel.schonlaub@prodigygame.com>
Signed-off-by: Manuel Schönlaub <manuel.schoenlaub@gmail.com>
Signed-off-by: Manuel Schönlaub <manuel.schonlaub@prodigygame.com>
feature/release-please: Add needs to release job
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
feature/release-please: Run a single container for sdk release
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.3.0: Update docs on merging contexts to reflect spec
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.5.0: Ensure error message is optional and error code required when an error has been found
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.5.0: Remove returns in exception docstrings
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Add float and int flag methods
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Add the ability for a provider to have hooks
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Flag evaluation options added for hook merging
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Move numeric type methods to a private method within the client
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.2.0: Add tests for new numeric methods
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.2.0: Overwrite init on FlagEvaluationOptions
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.2.0: Overwrite init on FlagEvaluationOptions
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.2.0: Remove init on FlagEvaluationOptions
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.2.0: Ensure before_hooks are evaluated in the opposite order
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.2.0: Remove number flag evaluation in favour of strongly typed counterparts
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.2.0: Check flag type after provider response
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.2.0: Remove unnecessary static method
Signed-off-by: Matthew Elwell <matthew.elwell@flagsmith.com>
* feature/spec-0.2.0: Update docstring parameter name
Signed-off-by: Matthew Elwell <matthew.elwell@flagsmith.com>
* feature/spec-0.2.0: Fix typing of int and float methods
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/spec-0.2.0: Change provider methods to resolves rather than gets
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Co-authored-by: Matthew Elwell <matthew.elwell@flagsmith.com>
- performs validation of options as dictionary before pulling hooks and hints
- introduces immutable dictionary extension of dict following naming from 3.12 release
- documented "upgrade" process for MappingProxyType
Signed-off-by: Tom Carrio <tom@carrio.dev>
* fix/unit-tests: Improve unit test coverage to ensure spec is followed
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Add test coverage around hooks
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Parametrize test_should_use_no_op_provider_if_none_provided
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Parametrize all flag type methods in open feature client
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Parametrize all flag type methods in open feature client
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Add fixture to clear global provider after each tests
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Mock hooks in tests
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Update docstring on clear_provider method
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: remove setup method in client tests
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/unit-tests: Remove invalid flag type check in private method _create_provider_evaluation and move to public method
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* provider-metadata: Add metadata to providers
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/provider-metadata: Test extending metadata class
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* feature/provider-metadata: Change no op metadata
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/flag-error-message: Move flag evaluation details to a dataclass and add error message to the class
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/flag-error-message: Rename flag_key in FlagEvaluationDetails to match spec
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/flag-error-message: Rename flag_key in provider.py to match spec
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/flag-error-message: Rename flag_key in open_feature_client.py
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/flag-error-message: Rename flag_key in open_feature_client.py
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* fix/flag-error-message: handle error_message doesn't exist exception
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: install python build
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: Rename open feature python package
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: Add code coverage to pipeline
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: Update actions to match other sdks
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: Update readme with relevant badges
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: Update readme with relevant badges
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: Fix merge pipeline to add all linting and tests
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: Use python 3.10 in release step
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: Use python 3.10 in requirements.txt
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Implementation of hooks for python Open Feature
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Fix tests broken as a result of providing hook support
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Add api level evaluation context support
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Change typing on iterables to be compatible with python 3.8
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Add docstring for evaluate_flag_details method
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Add docstring for evaluate_flag_details method
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: docstring change requested in review
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: add docstrings and comments to
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Use correct exception in error hooks in the client
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Set empty evaluation context in no op provider to None
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: package the main branch and deploy on pypi
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: package the main branch and deploy on pypi
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: use set package directory in pypi distribution
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Implementation of hooks for python Open Feature
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Fix tests broken as a result of providing hook support
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Add api level evaluation context support
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Change typing on iterables to be compatible with python 3.8
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Add docstring for evaluate_flag_details method
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Add docstring for evaluate_flag_details method
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: docstring change requested in review
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: add docstrings and comments to
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Use correct exception in error hooks in the client
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Set empty evaluation context in no op provider to None
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* pypi-packaging: package the main branch and deploy on pypi
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Implementation of hooks for python Open Feature
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Fix tests broken as a result of providing hook support
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Add api level evaluation context support
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Change typing on iterables to be compatible with python 3.8
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Add docstring for evaluate_flag_details method
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Add docstring for evaluate_flag_details method
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: docstring change requested in review
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: add docstrings and comments to
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Use correct exception in error hooks in the client
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
* hooks: Set empty evaluation context in no op provider to None
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>