Commit Graph

372 Commits

Author SHA1 Message Date
github-actions[bot] 511262d971
chore(main): release 0.0.9 (#70)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-27 09:37:51 -05:00
renovate[bot] 1665225db4
chore(deps): update dependency lazy-object-proxy to v1.9.0 (#83)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-19 12:16:54 +04:00
renovate[bot] eb755524ee
chore(deps): update dependency isort to v5.11.4 (#82)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-19 11:24:13 +04:00
renovate[bot] ee22bd12c4
chore(deps): update dependency black to v22.12.0 (#80)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-19 11:07:32 +04:00
Michael Beemer 5615da66ab
chore: Configure Renovate auto merge (#76)
Configure Renovate auto merge

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2023-01-04 10:37:54 -05:00
Michael Beemer e3c36d7b03
chore: Add alternative pip file names to renovate config (#73) 2023-01-03 22:23:01 -05:00
Tom Carrio 3a33551fdb
fix: reverse the merged before hooks (#71) 2023-01-03 21:51:08 -05:00
Tom Carrio 643d9fa34f
docs: add NoOpProvider import to config sample (#68) 2023-01-03 10:04:41 -05:00
github-actions[bot] 504a3af5c0
chore(main): release 0.0.8 (#67)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-28 00:41:35 -05:00
Tom Carrio 9276d35798
feat: defaults to NoOpProvider (#66)
* feat: defaults to NoOpProvider

ensures a provider will always be returned

Signed-off-by: Tom Carrio <tom@carrio.dev>

* test: update for default provider being safe with default

Signed-off-by: Tom Carrio <tom@carrio.dev>

* chore: fix misspelling in test case

Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Signed-off-by: Tom Carrio <tom@carrio.dev>

Signed-off-by: Tom Carrio <tom@carrio.dev>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2022-12-27 21:40:20 -05:00
github-actions[bot] 3e2c10212a
chore(main): release 0.0.7 (#65)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-19 13:59:40 -05:00
Thomas Poignant 85db1e0a74
fix: Get Object should return both list and dict (#64)
* Get Object should return both list and dict

Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
2022-12-19 13:14:41 -05:00
github-actions[bot] 00400facf4
chore(main): release 0.0.6 (#60)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-02 09:33:53 -05:00
Tom Carrio 6f6186ed91
feat: process flag evaluation options in client (#31)
Signed-off-by: Tom Carrio <tom@carrio.dev>
Co-authored-by: Meg McRoberts <mmcroberts@cloudbees.com>
Co-authored-by: Matthew Elwell <mjelwell89@gmail.com>
2022-12-02 08:07:39 -05:00
github-actions[bot] 4eee603ee1
chore(main): release 0.0.5 (#58)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-11-22 08:27:33 -05:00
Michael Beemer b62e526f6d
chore: updated release please readme config
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2022-11-22 08:25:38 -05:00
Alex Jones 3dc3a9dd70
chore: Security upgrade setuptools from 39.0.1 to 65.5.1 (#46)
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>
2022-11-21 17:39:59 -05:00
Manuel Schönlaub 50f5a484a0
fix: Fix type checking (#25)
* 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>
2022-11-21 17:39:37 -05:00
renovate[bot] f60b44e014
chore(deps): update python docker tag to v3.11 (#55)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-21 13:24:21 -05:00
Michael Beemer dc6ed6f6d7
docs: Update pip install instructions (#57)
Update pip install instructions

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2022-11-21 09:52:55 -05:00
Michael Beemer bfb13d701e
chore: update readme to include latest pip version (#54)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2022-11-17 07:51:33 +04:00
github-actions[bot] 47e1d3fd61
chore(main): release 0.0.4 (#53)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-11-15 16:30:58 +04:00
Andrew Helsby fb7655aa3a
feat: Add needs to release job (#52)
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>
2022-11-15 16:29:45 +04:00
github-actions[bot] a9d46f935b
chore(main): release 0.0.3 (#51)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-11-15 16:04:29 +04:00
Andrew Helsby 87c62cfae7
feat: Run a single container for sdk release (#50)
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>
2022-11-15 15:59:13 +04:00
github-actions[bot] 0847b0b26c
chore(main): release 0.0.2 (#49)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-11-15 15:41:16 +04:00
Andrew Helsby 2c44d55af3
feat: Fix release workflow (#48)
feature/release-please: Fix release workflow

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
2022-11-15 15:37:07 +04:00
Andrew Helsby 5bc057192d
feat: Add release please to handle releases (#45)
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
2022-11-15 14:51:20 +04:00
Andrew Helsby 04a4323310
feat: specification-0.5.0 (#44)
* 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>
2022-11-11 11:06:22 +00:00
Andrew Helsby 311b8eef53
feat: spec-0.2.0 (#38)
* 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>
2022-11-09 15:05:35 +00:00
Robert Grassian 06d0494331
fix: eval context fixes and new error types (#43)
* eval context fixes and new error types

Signed-off-by: Robert Grassian <robert.grassian@split.io>

* cleanup

Signed-off-by: Robert Grassian <robert.grassian@split.io>

* remove eval context setter

Signed-off-by: Robert Grassian <robert.grassian@split.io>

Signed-off-by: Robert Grassian <robert.grassian@split.io>
2022-11-08 16:35:56 +00:00
Snyk bot 1e82122978
fix: requirements-dev.txt to reduce vulnerabilities (#37)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
2022-11-03 19:50:56 -04:00
Andrew Helsby df0c033083
fix: Unit tests (#28)
* 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>
2022-11-02 16:24:16 +04:00
renovate[bot] 820419a86e
chore(deps): update actions/cache action to v3 (#34)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-02 12:47:25 +04:00
renovate[bot] ad45ff754e
chore(deps): update actions/checkout action to v3 (#35)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-02 12:47:00 +04:00
renovate[bot] 2ea6366556
chore(deps): add renovate.json (#29)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-02 12:21:34 +04:00
Michael Beemer c2d214a809
docs: add badge showing supported Python version range 2022-10-29 12:42:55 -04:00
Tom Carrio f845d9e418 docs: add badge showing supported Python version range
Signed-off-by: Tom Carrio <tom@carrio.dev>
2022-10-29 02:01:54 -04:00
Andrew Helsby b39cced329
feat: Add metadata to providers (#26)
* 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>
2022-10-18 16:34:06 +04:00
Andrew Helsby b44224be0d
fix: Move flag evaluation details to a dataclass (#27)
* 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>
2022-10-18 15:23:24 +04:00
Andrew Helsby 7ef8667f12
Pypi publish (#22)
* 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>
2022-10-13 15:39:47 +04:00
Michael Beemer 1727554df0
Merge pull request #14 from mschoenlaub/spec-0.4.0
Remove EvaluationOptions from  method signatures
2022-10-07 12:23:38 -04:00
Manuel Schönlaub 059ef20d8d Remove superflous docstring
Signed-off-by: Manuel Schönlaub <manuel.schoenlaub@gmail.com>
2022-10-07 10:08:26 -06:00
Manuel Schönlaub 25119766f9 Reintroduce flag_evaluation_options in client
Signed-off-by: Manuel Schönlaub <manuel.schoenlaub@gmail.com>
2022-10-07 09:53:04 -06:00
Andrew Helsby 0f004afbe0
pypi-packaging: install python build (#20)
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
2022-10-07 16:46:33 +04:00
Michael Beemer c4381cae09
Merge pull request #15 from agardnerIT/fix/apache-license
fix license to allow pypi upload
2022-10-03 13:11:05 -04:00
Michael Beemer b72e45e177
Merge pull request #16 from agardnerIT/fix/readme_default_values
add default_value(s) to readme
2022-10-03 13:09:54 -04:00
agardnerit 0ccedd8030 add default_value(s) to readme
Signed-off-by: agardnerit <adam@agardner.net>
2022-10-02 12:27:26 +10:00
agardnerit e5df0a8856 fix license to allow pypi upload
Signed-off-by: agardnerit <adam@agardner.net>
2022-10-02 11:54:40 +10:00
Manuel Schönlaub 0ace3cd001 Remove EvaluationOptions from method signatures
Signed-off-by: Manuel Schönlaub <manuel.schoenlaub@gmail.com>
2022-09-30 14:48:11 -06:00